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;
Modules
- Support for “legacy” features.
Structs
- More information: Sass documentation
- 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: Sass documentation
- 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.
- More information: Sass documentation
- Options that can be passed to [Sass::compile_string].
- A builder for StringOptions.
- A parsed URL record.
Enums
- More information: Sass documentation
- Enum wrapper for BoxImporter and BoxFileImporter.
- More information: Sass documentation
Traits
- More information: Sass documentation
- More information: Sass documentation
- More information: Sass documentation
Type Definitions
- A type alias for Box
. - A type alias for Box
. - A type alias for Box
. - An alias for std::result::Result<T, Exception>.