tygr 0.3.0

Define your grammar once as Rust types and get a parser, printer, and EBNF presentation for free.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tygr"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Define your grammar once as Rust types and get a parser, printer, and EBNF presentation for free."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/intersystems-community/tygr"

[features]
default = ["trace_one_node"]
lower_bnf_name = ["tygr-derive/lower_bnf_name"]
trace = [
    "trace_all_nodes",
    "tygr-derive/trace",
]
trace_all_nodes = ["trace_one_node"]
trace_one_node = [
    "trace_pos",
    "tygr-derive/trace",
]
trace_pos = ["tygr-derive/trace_pos"]
upper_bnf_name = ["tygr-derive/upper_bnf_name"]

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

[[example]]
name = "json"
path = "examples/json.rs"

[[example]]
name = "json_optimized"
path = "examples/json_optimized.rs"

[[test]]
name = "error_behavior"
path = "tests/error_behavior.rs"

[[test]]
name = "grammar_attrs"
path = "tests/grammar_attrs.rs"

[[test]]
name = "parse_prefix"
path = "tests/parse_prefix.rs"

[[bench]]
name = "json_optimized"
path = "benches/json_optimized.rs"
harness = false

[dependencies.either]
version = "1.15.0"

[dependencies.tygr-derive]
version = "0.3"

[lints.clippy]
type_complexity = "allow"