[package]
edition = "2024"
rust-version = "1.92"
name = "oxc_coverage_instrument"
version = "0.3.13"
authors = ["Bart Waardenburg <bart@fallow.tools>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Istanbul-compatible JavaScript/TypeScript coverage instrumentation using the Oxc AST"
homepage = "https://github.com/fallow-rs/oxc-coverage-instrument"
readme = "README.md"
keywords = [
"oxc",
"istanbul",
"coverage",
"javascript",
"typescript",
]
categories = [
"development-tools::testing",
"web-programming",
]
license = "MIT"
repository = "https://github.com/fallow-rs/oxc-coverage-instrument"
[lib]
name = "oxc_coverage_instrument"
path = "src/lib.rs"
[[example]]
name = "instrument"
path = "examples/instrument.rs"
[[example]]
name = "profile"
path = "examples/profile.rs"
[[example]]
name = "profile_detail"
path = "examples/profile_detail.rs"
[[test]]
name = "benchmark_test"
path = "tests/benchmark_test.rs"
[[test]]
name = "conformance_suite_test"
path = "tests/conformance_suite_test.rs"
[[test]]
name = "conformance_test"
path = "tests/conformance_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "real_world_test"
path = "tests/real_world_test.rs"
[[test]]
name = "snapshot_test"
path = "tests/snapshot_test.rs"
[[bench]]
name = "instrument"
path = "benches/instrument.rs"
harness = false
[dependencies.oxc_allocator]
version = "0.126"
[dependencies.oxc_ast]
version = "0.126"
[dependencies.oxc_codegen]
version = "0.126"
[dependencies.oxc_parser]
version = "0.126"
[dependencies.oxc_semantic]
version = "0.126"
[dependencies.oxc_sourcemap]
version = "6.1"
[dependencies.oxc_span]
version = "0.126"
[dependencies.oxc_syntax]
version = "0.126"
[dependencies.oxc_traverse]
version = "0.126"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.insta]
version = "1"
features = ["json"]
[lints.clippy]
allow_attributes_without_reason = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
excessive_nesting = "warn"
exit = "warn"
fn_params_excessive_bools = "allow"
get_unwrap = "warn"
if_not_else = "allow"
items_after_statements = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_closure_for_method_calls = "allow"
rest_pat_in_fully_bound_structs = "warn"
self_named_module_files = "warn"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnested_or_patterns = "allow"
unused_result_ok = "warn"
use_self = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
non_ascii_idents = "warn"
tail_expr_drop_order = "warn"
unit_bindings = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_unsafe = "warn"
[profile.dev]
debug = 0
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"