Skip to content

🦐 A Rust library that will communicate with Embedded Dart Sass using the Embedded Sass protocol.

Notifications You must be signed in to change notification settings

ahabhgk/sass-embedded-host-rust

Repository files navigation

sass-embedded-host-rust

🦀 A Rust library that will communicate with Embedded Dart Sass using the Embedded Sass protocol.

use sass_embedded::{Sass, StringOptions};

let mut sass = Sass::new("path/to/sass_embedded").unwrap();
let res = sass.compile_string("a {b: c}", StringOptions::default()).unwrap();
println!("{:?}", res);

For more details, checkout docs.rs and examples.

Contributing

  1. Install the Protocol Buffer Compiler.
  2. Run npm install && npm run setup.
  3. Find issues and welcome PRs.