[package]
edition = "2021"
rust-version = "1.70"
name = "rspack_resolver"
version = "0.6.8"
authors = ["Rspack"]
build = false
include = [
"/src",
"/examples",
"/benches",
"!/benches/pnpm-lock.yaml",
"!/benches/node_modules",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ESM / CJS module resolution"
homepage = "https://github.com/rstackjs/rspack-resolver"
readme = "README.md"
keywords = [
"node",
"resolve",
"cjs",
"esm",
"enhanced-resolve",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/rstackjs/rspack-resolver"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["yarn_pnp"]
enable_instrument = []
package_json_raw_json_api = []
yarn_pnp = ["pnp"]
[lib]
name = "rspack_resolver"
path = "src/lib.rs"
doctest = false
[[example]]
name = "resolver"
path = "examples/resolver.rs"
[[bench]]
name = "resolver"
path = "benches/resolver.rs"
harness = false
[dependencies.async-trait]
version = "0.1.89"
[dependencies.cfg-if]
version = "1.0"
[dependencies.dashmap]
version = "6.1.0"
[dependencies.document-features]
version = "0.2.8"
optional = true
[dependencies.dunce]
version = "1.0.5"
[dependencies.futures]
version = "0.3.31"
[dependencies.indexmap]
version = "2.12.0"
features = ["serde"]
[dependencies.json-strip-comments]
version = "3.0.1"
[dependencies.pnp]
version = "0.12.5"
optional = true
[dependencies.rustc-hash]
version = "2.1.1"
features = ["std"]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
features = ["preserve_order"]
[dependencies.simd-json]
version = "0.17.0"
features = [
"serde_impl",
"runtime-detection",
]
default-features = false
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tracing]
version = "0.1.41"
[dev-dependencies.criterion]
version = "4.3.0"
features = ["async_tokio"]
default-features = false
package = "codspeed-criterion-compat"
[dev-dependencies.normalize-path]
version = "0.2.1"
[dev-dependencies.rayon]
version = "1.11.0"
[dev-dependencies.regex]
version = "1.12.2"
[dev-dependencies.vfs]
version = "0.12.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.48.0"
features = [
"sync",
"rt-multi-thread",
"macros",
"fs",
]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1.48.0"
features = [
"sync",
"rt",
"macros",
]
default-features = false
[lints.clippy]
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
impl_trait_in_params = "warn"
missing_const_for_fn = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
struct_excessive_bools = "allow"
todo = "warn"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.profiling]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
inherits = "release"
strip = false
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
strip = "symbols"