Cargo Features
[dependencies]
rspack_resolver = { version = "0.6.5", default-features = false, features = ["package_json_raw_json_api", "yarn_pnp", "codspeed", "enable_instrument", "document-features"] }
- default = yarn_pnp
-
The
yarn_pnpfeature is set by default wheneverrspack_resolveris added withoutsomewhere in the dependency tree.default-features = false - package_json_raw_json_api
-
Enables the PackageJson::raw_json API, which returns the
package.jsonwithserde_json::Value. - yarn_pnp default = pnp
-
Affects
file_system::FileSystemOptions.enable_pnp,options::ResolveOptions.enable_pnp… - codspeed dev
-
For codspeed benchmark
Enables codspeed of criterion2 ^2.0.0
- enable_instrument
-
For remove tracing calls in release build
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.
- pnp yarn_pnp
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml