[package]
name                   = "oxc_ast"
version                = "0.13.0"
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_allocator  = { workspace = true }
oxc_ast_macros = { workspace = true }
oxc_span       = { workspace = true }
oxc_syntax     = { workspace = true }

bitflags   = { workspace = true }
num-bigint = { workspace = true }

serde      = { workspace = true, features = ["derive"], optional = true }
serde_json = { workspace = true, optional = true }

tsify        = { workspace = true, optional = true }
wasm-bindgen = { workspace = true, optional = true }

static_assertions = { workspace = true }

[features]
default = []
serialize = [
  "oxc_allocator/serialize",
  "dep:serde",
  "dep:serde_json",
  "dep:tsify",
  "dep:wasm-bindgen",
  "oxc_span/serialize",
  "oxc_syntax/serialize",
  "oxc_syntax/to_js_string",
]
