Expand description
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
Re-exports§
pub use url;
Structs§
- Compile
Result - https://sass-lang.com/documentation/js-api/interfaces/CompileResult
- Embedded
- Exception
- Importer
Options - Importer
Result - https://sass-lang.com/documentation/js-api/interfaces/ImporterResult
- Logger
Debug Options - Logger
Warn Options - Options
- https://sass-lang.com/documentation/js-api/interfaces/Options
- Options
Builder - Sass
- Silent
- Source
Span - A chunk of a source file.
- String
Options - String
Options Builder - Url
- A parsed URL record.
Enums§
- Output
Style - Possible ways to format the CSS output. The compiler is not required to support all possible options; if the host requests an unsupported style, the compiler should choose the closest supported style.
- Sass
Importer - Syntax
- Possible syntaxes for a Sass stylesheet.
Traits§
- File
Importer - https://sass-lang.com/documentation/js-api/interfaces/FileImporter
- Importer
- https://sass-lang.com/documentation/js-api/interfaces/Importer
- Logger