Cargo Features

cssparser has no features set by default.

[dependencies]
cssparser = { version = "0.35.0", features = ["dummy_match_byte", "bench", "skip_long_tests", "serde", "malloc_size_of"] }
dummy_match_byte
bench
skip_long_tests

Useful for skipping tests when execution is slow, e.g., under miri

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

malloc_size_of implicit feature

Enables malloc_size_of

malloc_size_of:

A an allocator-agnostic crate for measuring the heap size of a value