Crate grass[][src]

Expand description

grass

An implementation of Sass in pure rust.

Spec progress as of 2021-07-25:

PassingFailingTotal
401822386256

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

SassErrors can be either a structured error specific to grass or an io::Error.

Configuration for Sass compilation

Enums

Functions

Compile CSS from a path

Compile CSS from a string

Type Definitions