oxc_parser 0.138.0

A collection of JavaScript tools written in Rust.
Documentation
[package]
name = "oxc_parser"
version = "0.138.0"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
include = ["/examples", "/src"]
keywords.workspace = true
license.workspace = true
publish = true
repository.workspace = true
rust-version.workspace = true
description.workspace = true

[lints]
workspace = true

[lib]

[dependencies]
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_data_structures = { workspace = true, features = ["assert_unchecked", "fieldless_enum"] }
oxc_diagnostics = { workspace = true }
oxc_ecmascript = { workspace = true }
oxc_regular_expression = { workspace = true, optional = true }
oxc_span = { workspace = true }
oxc_str = { workspace = true }
oxc_syntax = { workspace = true }

bitflags = { workspace = true }
cow-utils = { workspace = true }
num-bigint = { workspace = true }
num-traits = { workspace = true }
rustc-hash = { workspace = true }
seq-macro = { workspace = true }

memchr = { workspace = true }

[dev-dependencies]
# Catch usage of old `AstBuilder` APIs in tests, without affecting downstream consumers.
# If we enabled `disable_old_builder` feature in main dependency, feature unification would
# cause it to be activated for `oxc_ast` for the user too.
oxc_ast = { workspace = true, features = ["disable_old_builder", "serialize"] }

oxc_ast_visit = { workspace = true, features = ["serialize"] }
pico-args = { workspace = true }

[features]
default = ["regular_expression"]
# Parse regex
regular_expression = ["dep:oxc_regular_expression"]
# Feature to enable mutation of tokens.
# Should not ordinarily be enabled. Only used by ESTree tokens conversion.
mutate_tokens = []
# Expose Lexer for benchmarks
benchmarking = []