[package]
edition = "2024"
rust-version = "1.88.0"
name = "oxc_sourcemap"
version = "6.0.2"
authors = ["Boshen <boshenc@gmail.com>"]
build = "build.rs"
include = [
"build.rs",
"/src",
"/benches",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Basic sourcemap handling for Rust"
readme = "README.md"
keywords = [
"javascript",
"sourcemap",
"sourcemaps",
]
categories = []
license = "MIT"
repository = "https://github.com/oxc-project/oxc-sourcemap"
[package.metadata.cargo-shear]
ignored = ["napi"]
[features]
codspeed = ["criterion2/codspeed"]
default = []
napi = [
"dep:napi",
"dep:napi-derive",
"dep:napi-build",
]
[lib]
name = "oxc_sourcemap"
crate-type = [
"lib",
"cdylib",
]
path = "src/lib.rs"
doctest = false
[[bench]]
name = "simple"
path = "benches/simple.rs"
harness = false
[dependencies.base64-simd]
version = "0.8"
[dependencies.json-escape-simd]
version = "3"
[dependencies.napi]
version = "3"
optional = true
[dependencies.napi-derive]
version = "3"
optional = true
[dependencies.rustc-hash]
version = "2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dev-dependencies.criterion2]
version = "3.0.2"
default-features = false
[dev-dependencies.insta]
version = "1.43.2"
features = ["glob"]
[build-dependencies.napi-build]
version = "2"
optional = true
[lints.clippy]
allow_attributes = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
get_unwrap = "warn"
impl_trait_in_params = "warn"
infinite_loop = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
todo = "warn"
undocumented_unsafe_blocks = "allow"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
non_ascii_idents = "warn"
unit-bindings = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(coverage)",
"cfg(coverage_nightly)",
]
[profile.bench]
lto = true
codegen-units = 1