Crate sass_embedded_host_rust

Crate sass_embedded_host_rust 

Source
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

Re-exports§

pub use url;

Structs§

CompileResult
https://sass-lang.com/documentation/js-api/interfaces/CompileResult
Embedded
Exception
ImporterOptions
ImporterResult
https://sass-lang.com/documentation/js-api/interfaces/ImporterResult
LoggerDebugOptions
LoggerWarnOptions
Options
https://sass-lang.com/documentation/js-api/interfaces/Options
OptionsBuilder
Sass
Silent
SourceSpan
A chunk of a source file.
StringOptions
StringOptionsBuilder
Url
A parsed URL record.

Enums§

OutputStyle
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.
SassImporter
Syntax
Possible syntaxes for a Sass stylesheet.

Traits§

FileImporter
https://sass-lang.com/documentation/js-api/interfaces/FileImporter
Importer
https://sass-lang.com/documentation/js-api/interfaces/Importer
Logger

Type Aliases§

Result
SassLogger