#com-interface #sass #interface #protocols #api #dart-sass

sass-embedded

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

10 releases (5 breaking)

0.7.1 May 5, 2023
0.6.2 Oct 25, 2022
0.6.1 Sep 22, 2022
0.5.2 Sep 1, 2022
0.2.0 Aug 15, 2022

#1298 in Web programming

Download history 464/week @ 2024-12-25 327/week @ 2025-01-01 461/week @ 2025-01-08 151/week @ 2025-01-15 127/week @ 2025-01-22 107/week @ 2025-01-29 199/week @ 2025-02-05 538/week @ 2025-02-12 260/week @ 2025-02-19 200/week @ 2025-02-26 206/week @ 2025-03-05 227/week @ 2025-03-12 85/week @ 2025-03-19 54/week @ 2025-03-26 644/week @ 2025-04-02 527/week @ 2025-04-09

1,318 downloads per month

MIT license

145KB
3K SLoC

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);

features


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.

Dependencies

~4–11MB
~110K SLoC