Cargo Features
[dependencies]
lightningcss = { version = "1.0.0-alpha.61", 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
is added without
somewhere in the dependency tree.default-features = false - browserslist cli? = browserslist-rs
- bundler default = dashmap, rayon, sourcemap
-
Affects
lightningcss::bundler
… - cli = atty, browserslist, clap, jemallocator, serde_json
-
Required by the binary
- grid default
-
Affects
properties::grid
… - jsonschema = schemars, serde
-
Enables jsonschema of parcel_selectors
- nodejs default
-
Enables serde
- serde jsonschema? = into_owned
-
Enables serde, serde of smallvec, serde of cssparser ^0.33.0 and parcel_selectors
- sourcemap default bundler = parcel_sourcemap
-
Affects
printer::PrinterOptions.source_map
… - visitor substitute_variables?
-
Affects
lightningcss::visitor
… - into_owned serde? substitute_variables? = static-self
-
Enables into_owned of parcel_selectors, 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?
- 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