Crate grass[−][src]
Expand description
grass
An implementation of Sass in pure rust.
Spec progress as of 2021-07-25:
Passing | Failing | Total |
---|---|---|
4018 | 2238 | 6256 |
Use as library
fn main() -> Result<(), Box<grass::Error>> { let sass = grass::from_string("a { b { color: &; } }".to_string(), &grass::Options::default())?; assert_eq!(sass, "a b {\n color: a b;\n}\n"); Ok(()) }
Use as binary
cargo install grass grass input.scss
Structs
SassError
s can be either a structured error
specific to grass
or an io::Error
.
Configuration for Sass compilation