# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "rspack_resolver" version = "0.3.5" authors = ["Rspack"] build = false include = [ "/src", "/examples", "/benches", ] autobins = false autoexamples = false autotests = false autobenches = false description = "ESM / CJS module resolution" homepage = "https://github.com/web-infra-dev/rspack-resolver" readme = "README.md" keywords = [ "node", "resolve", "cjs", "esm", "enhanced-resolve", ] categories = ["development-tools"] license = "MIT" repository = "https://github.com/web-infra-dev/rspack-resolver" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] opt-level = 3 lto = "fat" codegen-units = 1 debug = 0 panic = "abort" strip = "symbols" [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.cfg-if] version = "1.0" [dependencies.dashmap] version = "6.0.1" [dependencies.document-features] version = "0.2.8" optional = true [dependencies.dunce] version = "1.0.4" [dependencies.indexmap] version = "2.2.6" features = ["serde"] [dependencies.json-strip-comments] version = "1.0.2" [dependencies.once_cell] version = "1.19.0" [dependencies.pnp] version = "0.9.0" optional = true [dependencies.rustc-hash] version = "2.0.0" features = ["std"] default-features = false [dependencies.serde] version = "1.0.203" features = ["derive"] [dependencies.serde_json] version = "1.0.117" features = ["preserve_order"] [dependencies.simdutf8] version = "0.1.4" features = ["aarch64_neon"] [dependencies.thiserror] version = "1.0.61" [dependencies.tracing] version = "0.1.40" [dev-dependencies.criterion2] version = "1.0.0" default-features = false [dev-dependencies.normalize-path] version = "0.2.1" [dev-dependencies.rayon] version = "1.10.0" [dev-dependencies.vfs] version = "0.12.0" [features] codspeed = ["criterion2/codspeed"] default = [] package_json_raw_json_api = [] yarn_pnp = ["pnp"] [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