Cargo Features

rspack_resolver has no features set by default.

[dependencies]
rspack_resolver = { version = "0.3.5", features = ["package_json_raw_json_api", "yarn_pnp", "codspeed", "document-features"] }
package_json_raw_json_api

Enables the PackageJson::raw_json API, which returns the package.json with serde_json::Value.

yarn_pnp = pnp

Yarn Plug'n'Play

Affects file_system::FileSystemOs, options::ResolveOptions.pnp_manifest

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