pest-css-parser

Crates.iopest-css-parser
lib.rspest-css-parser
version0.1.7
sourcesrc
created_at2023-05-12 01:06:45.469831
updated_at2023-05-13 05:56:32.033036
descriptionA stylesheet (css) parser using pest
homepagehttps://github.com/DotWith/pest-css-parser/
repositoryhttps://github.com/DotWith/pest-css-parser/
max_upload_size
id862609
size40,008
DotWith (DotWith)

documentation

https://docs.rs/pest-css-parser

README

Pest-CSS-Parser

crates.io docs.rs

Rust parser for css files using pest.

Usage

let input = r#"
    span {
        display: inline;
    }
"#;
let stylesheet = StyleSheet::parse(input).unwrap();
assert_eq!(stylesheet.rules.len(), 1);

Examples

Task list

  • Write documentation
  • Create a writer
Commit count: 6

cargo fmt