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