#sass #protocols #communicate #dart #embedded #host #legacy

yanked sass-embedded-host-rust

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

0.1.0 Aug 11, 2022
0.0.1 Aug 11, 2022

#26 in #sass

MIT license

63KB
2K SLoC

sass-embedded-host-rust

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

Contributing

  1. Install the Protocol Buffer Compiler.
  2. Run cd scripts && npm install && node setup.mjs.
  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_host_rust::{Sass, StringOptions};

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

features

Dependencies

~7–15MB
~211K SLoC