[package]
name                   = "oxc_syntax"
version                = "0.5.0"
publish                = true
authors.workspace      = true
description.workspace  = true
edition.workspace      = true
homepage.workspace     = true
keywords.workspace     = true
license.workspace      = true
repository.workspace   = true
rust-version.workspace = true
categories.workspace   = true

[lints]
workspace = true

[lib]
doctest = false

[dependencies]
oxc_index = { workspace = true }
oxc_span  = { workspace = true }

unicode-id-start = { workspace = true }
serde            = { workspace = true, features = ["derive"], optional = true }
bitflags         = { workspace = true }
rustc-hash       = { workspace = true }
indexmap         = { workspace = true }
dashmap          = { workspace = true }
phf              = { workspace = true, features = ["macros"] }

tsify        = { workspace = true, optional = true }
wasm-bindgen = { workspace = true, optional = true }
[features]
default = []
serde   = ["dep:serde", "bitflags/serde", "oxc_index/serde"]
wasm    = ["dep:tsify", "dep:wasm-bindgen"]
