#sass #scss #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

#1304 in Web programming

Download history 555/week @ 2024-07-22 599/week @ 2024-07-29 410/week @ 2024-08-05 195/week @ 2024-08-12 360/week @ 2024-08-19 326/week @ 2024-08-26 265/week @ 2024-09-02 474/week @ 2024-09-09 338/week @ 2024-09-16 351/week @ 2024-09-23 176/week @ 2024-09-30 519/week @ 2024-10-07 509/week @ 2024-10-14 628/week @ 2024-10-21 349/week @ 2024-10-28 1033/week @ 2024-11-04

2,613 downloads per month

MIT license

145KB
3K SLoC

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.

lib.rs:

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

Dependencies

~5–12MB
~132K SLoC