Cargo Features
[dependencies]
rspack_resolver = { version = "0.4.1", default-features = false, features = ["package_json_raw_json_api", "yarn_pnp", "codspeed", "document-features"] }
- default = yarn_pnp
-
The
yarn_pnp
feature is set by default wheneverrspack_resolver
is added without
somewhere in the dependency tree.default-features = false - package_json_raw_json_api
-
Enables the PackageJson::raw_json API, which returns the
package.json
withserde_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 ^1.0.0
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