[package]
edition = "2024"
rust-version = "1.85"
name = "textmate-lang"
version = "0.2.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TextMate grammar and semantic-token legend generation for editors without tree-sitter."
homepage = "https://github.com/jamesgober/textmate-lang"
documentation = "https://docs.rs/textmate-lang"
readme = "README.md"
keywords = [
"textmate",
"syntax-highlighting",
"grammar",
"editor",
"lexersketch",
]
categories = [
"development-tools",
"text-processing",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/textmate-lang"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "textmate_lang"
path = "src/lib.rs"
[[example]]
name = "calc"
path = "examples/calc.rs"
[[example]]
name = "errors"
path = "examples/errors.rs"
[[test]]
name = "grammar"
path = "tests/grammar.rs"
[[test]]
name = "proptests"
path = "tests/proptests.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"