Cargo Features

[dependencies]
lightningcss_rs = { version = "0.1.0", default-features = false, features = ["browserslist", "bundler", "cli", "grid", "jsonschema", "nodejs", "serde", "sourcemap", "visitor", "into_owned", "substitute_variables"] }
default = bundler, grid, nodejs, sourcemap

These default features are set whenever lightningcss_rs is added without default-features = false somewhere in the dependency tree.

browserslist cli? = browserslist-rs
bundler default = dashmap, rayon, sourcemap

Affects lightningcss_rs::bundler

cli = atty, browserslist, clap, jemallocator, serde_json

Required by the lightningcss binary

grid default

Affects properties::grid

jsonschema = schemars, serde

Enables jsonschema of parcel_selectors ^0.27.0

nodejs default

Enables serde

serde jsonschema? = into_owned

Enables serde, serde of smallvec, serde of cssparser ^0.33.0 and parcel_selectors ^0.27.0

sourcemap default bundler = parcel_sourcemap

Affects printer::PrinterOptions.source_map

visitor substitute_variables?

Affects lightningcss_rs::visitor

into_owned serde? substitute_variables? = static-self

Enables into_owned of parcel_selectors ^0.27.0, smallvec of static-self

substitute_variables = into_owned, visitor

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

parcel_sourcemap sourcemap
atty cli?

Enables atty

CLI deps

clap cli?

Enables clap ^3.0.6

browserslist-rs browserslist?

Enables browserslist-rs ^0.16.0

rayon bundler
dashmap bundler

Enables dashmap ^5.0.0

serde_json cli?
schemars jsonschema?
static-self into_owned?
jemallocator mac cli?

Enables jemallocator ^0.3.2