syntax-lang 1.0.0

Lossless concrete syntax tree (CST) with trivia.
Documentation
# =============================================================================
#  R E P S   ยท   syntax-lang
# =============================================================================
[package]
name    = "syntax-lang"
version = "1.0.0"

# Minimum Supported Rust Version (MSRV)
rust-version = "1.85"
edition = "2024"

# License
license = "Apache-2.0 OR MIT"

# Readme
readme = "README.md"

# Description
description = "Lossless concrete syntax tree (CST) with trivia."

# Keywords (5 max)
keywords = ["compiler", "language", "cst", "syntax"]

# Categories
categories = ["development-tools", "parsing"]

# Links
homepage      = "https://github.com/jamesgober/syntax-lang"
repository    = "https://github.com/jamesgober/syntax-lang"
documentation = "https://docs.rs/syntax-lang"

# Authors
authors = ["James Gober <me@jamesgober.com>"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lib]
name = "syntax_lang"
path = "src/lib.rs"


# FEATURE FLAGS
# #################################
[features]
default = ["std"]
# Pull in the standard library; forwarded to the token and span crates. Without
# it the crate is `no_std` (it always needs `alloc` for the child vectors).
std = ["token-lang/std", "span-lang/std"]


# DEPENDENCIES
# #################################
[dependencies]
# Tokens: the classified spans that form a tree's leaves, and the `TokenKind`
# seam a language implements to mark trivia and end-of-input.
token-lang = { version = "1", default-features = false }
# Source spans: the covering range each node and token reports. Pinned to the
# same 0.4 line token-lang builds on, so the `Span` type unifies across both.
span-lang = { version = "0.4", default-features = false }


# DEV DEPENDENCIES
# #################################
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest  = "1"

[target.'cfg(loom)'.dev-dependencies]
loom = "0.7"


# BENCHMARKS
# #################################
[[bench]]
name    = "bench"
harness = false


# RELEASE PROFILE
# #################################
[profile.release]
opt-level     = 3
lto           = "fat"
codegen-units = 1
panic         = "abort"
strip         = "symbols"