[package]
edition = "2024"
rust-version = "1.85"
name = "lang-forge"
version = "1.0.1"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LexerSketch: forge a working language front end - lexer, parser, and lossless syntax tree - from a .lsf schematic."
homepage = "https://github.com/jamesgober/lang-forge"
documentation = "https://docs.rs/lang-forge"
readme = "README.md"
keywords = [
"language",
"generator",
"parser",
"compiler",
"dsl",
]
categories = [
"development-tools",
"compilers",
"parsing",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/lang-forge"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = [
"syntax-lang/std",
"diag-lang/std",
"pass-lang/std",
]
[lib]
name = "lang_forge"
path = "src/lib.rs"
[[example]]
name = "calc"
path = "examples/calc.rs"
[[example]]
name = "capabilities"
path = "examples/capabilities.rs"
[[example]]
name = "check"
path = "examples/check.rs"
[[example]]
name = "highlight"
path = "examples/highlight.rs"
[[example]]
name = "json"
path = "examples/json.rs"
[[test]]
name = "forge"
path = "tests/forge.rs"
[[test]]
name = "memory"
path = "tests/memory.rs"
[[test]]
name = "parse"
path = "tests/parse.rs"
[[test]]
name = "proptests"
path = "tests/proptests.rs"
[[test]]
name = "regressions"
path = "tests/regressions.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies.diag-lang]
version = "1"
default-features = false
[dependencies.pass-lang]
version = "1"
default-features = false
[dependencies.syntax-lang]
version = "1"
default-features = false
[dependencies.unicode-lang]
version = "1"
default-features = false
[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"