Cargo Features
[dependencies]
oxc_resolver = { version = "4.0.1", default-features = false, features = ["fs_cache", "package_json_raw_json_api", "yarn_pnp", "codspeed", "document-features"] }
- default = fs_cache
-
The
fs_cache
feature is set by default wheneveroxc_resolver
is added without
somewhere in the dependency tree.default-features = false - fs_cache default
-
Provides the
FsCache
implementation.Enables serde
derive for Deserialize from package.json
and serde_json
preserve_order: package_json.exports requires order such as
["require", "import", "default"]
Affects
oxc_resolver::FsResolution
,oxc_resolver::Resolver
,package_json_serde::PackageJsonSerde
… - package_json_raw_json_api
-
Enables the PackageJsonSerde::raw_json API, which returns the
package.json
withserde_json::Value
. - yarn_pnp = pnp
-
Affects
file_system::FileSystemOs
,options::ResolveOptions.pnp_manifest
… - codspeed dev
-
For codspeed benchmark
Enables codspeed of criterion2
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