#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

#5 in #scss

Download history 467/week @ 2024-01-05 333/week @ 2024-01-12 335/week @ 2024-01-19 350/week @ 2024-01-26 340/week @ 2024-02-02 178/week @ 2024-02-09 273/week @ 2024-02-16 201/week @ 2024-02-23 252/week @ 2024-03-01 489/week @ 2024-03-08 483/week @ 2024-03-15 647/week @ 2024-03-22 576/week @ 2024-03-29 419/week @ 2024-04-05 521/week @ 2024-04-12 551/week @ 2024-04-19

2,160 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

~4–12MB
~149K SLoC