Crate sass_embedded
source · [−]Expand description
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
legacy
: support for sass’s legacy APIs
Re-exports
pub use url;
Structs
More information
The sass-embedded compiler for rust host.
An exception for this crate, thrown because a Sass compilation failed or io::Error
.
Options for Importer::canonicalize or Importer::load.
More information
Options for Logger::debug.
Options for Logger::warn.
Options that can be passed to [Sass::compile].
A builder for Options.
The sass-embedded compiler for rust host.
A Logger that silently ignores all warnings and debug messages.
A chunk of a source file.
Options that can be passed to [Sass::compile_string].
A builder for StringOptions.
A parsed URL record.
Enums
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.
Possible syntaxes for a Sass stylesheet.
Traits
Type Definitions
An alias for std::result::Result<T, Exception>.
A type alias for Box