tygr 0.1.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.1.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]
context = []
default = ["trace"]
history = []
trace = [
    "trace_pos",
    "trace_attempts",
    "tygr-derive/trace",
]
trace_any = ["history"]
trace_attempts = [
    "trace_pos",
    "context",
]
trace_pos = [
    "trace_any",
    "tygr-derive/trace_pos",
]

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

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

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

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

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

[dependencies.either]
version = "1.15.0"

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

[lints.clippy]
type_complexity = "allow"