Files
oxc-project__oxc/apps/oxlint/Cargo.toml
Boshen 00e1b762e0 refactor(diagnostics): vendor oxc-miette (#25499)
We no longer need to maintain the `oxc-miette` repo as most of the code is now removed, the remaining code is minimal and can be vendored.
2026-08-11 08:04:02 +00:00

92 lines
2.9 KiB
TOML

[package]
name = "oxlint"
version = "1.78.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
publish = false
repository.workspace = true
rust-version.workspace = true
description.workspace = true
[lints]
workspace = true
[lib]
crate-type = ["cdylib", "lib"]
path = "src/lib.rs"
doctest = false
[[bin]]
name = "oxlint"
path = "src/main.rs"
test = false
doctest = false
[dependencies]
oxc_allocator = { workspace = true, features = ["fixed_size"] }
oxc_ast = { workspace = true }
oxc_ast_visit = { workspace = true, features = ["serialize"] }
oxc_config = { workspace = true }
oxc_diagnostics = { workspace = true }
oxc_estree_tokens = { workspace = true }
oxc_language_server = { workspace = true }
oxc_linter = { workspace = true }
oxc_napi = { workspace = true }
oxc_parser = { workspace = true }
oxc_semantic = { workspace = true }
oxc_span = { workspace = true }
oxc_str = { workspace = true }
bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] }
cow-utils = { workspace = true }
ignore = { workspace = true, features = ["simd-accel"] }
napi = { workspace = true, features = ["async"], optional = true }
tracing = { workspace = true }
napi-derive = { workspace = true, optional = true }
rayon = { workspace = true }
rustc-hash = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature
tower-lsp-server = { workspace = true, features = ["proposed"] }
[target.'cfg(not(any(target_os = "linux", target_os = "freebsd", target_arch = "arm", target_arch = "riscv64", target_family = "wasm")))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = ["skip_collect_on_exit"] }
[target.'cfg(all(target_os = "linux", not(target_arch = "arm"), not(target_arch = "aarch64"), not(target_arch = "riscv64")))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = [
"skip_collect_on_exit",
"local_dynamic_tls",
] }
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
mimalloc-safe = { workspace = true, optional = true, features = [
"skip_collect_on_exit",
"local_dynamic_tls",
"no_opt_arch",
] }
[build-dependencies]
napi-build = { workspace = true }
[dev-dependencies]
insta = { workspace = true }
lazy-regex = { workspace = true }
[features]
default = ["napi"]
napi = ["dep:napi", "dep:napi-derive"]
allocator = ["dep:mimalloc-safe"]
# For use in NAPI tests.
# - Enables test reporter.
# - Sorts file paths before linting if oxlint is run with `--threads 1`.
testing = ["oxc_linter/force_test_reporter"]
ruledocs = ["oxc_linter/ruledocs"]