0.1.0 |
|
---|---|
0.0.1 |
|
#28 in #sass
63KB
2K
SLoC
sass-embedded-host-rust
🦀 A Rust library that will communicate with Embedded Dart Sass using the Embedded Sass Protocol.
Contributing
- Install the Protocol Buffer Compiler.
- Run
cd scripts && npm install && node setup.mjs
. - 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
legacy
: support for sass's legacy APIs
Dependencies
~6–14MB
~201K SLoC