# 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 = "2021" name = "dotlr" version = "0.4.1" authors = [ "Umut Şahin ", "Specy ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "An LR(1) parser generator and visualizer created for educational purposes." readme = "README.md" keywords = [ "educational", "lalr-parsing", "lr-parsing", "parser-generator", ] categories = [ "algorithms", "parsing", ] license = "MIT OR Apache-2.0" [profile.release] lto = "fat" codegen-units = 1 [lib] name = "dotlr" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" doctest = false bench = false [[bin]] name = "dotlr" path = "src/main.rs" [[example]] name = "calculator" path = "examples/calculator.rs" [[example]] name = "json" path = "examples/json.rs" [[test]] name = "common" path = "tests/common.rs" [[test]] name = "grammar" path = "tests/grammar.rs" [[test]] name = "parser" path = "tests/parser.rs" [[test]] name = "parsing" path = "tests/parsing.rs" [[test]] name = "span" path = "tests/span.rs" [[bench]] name = "main" path = "benches/main.rs" harness = false [[bench]] name = "parsing_json" path = "benches/parsing_json.rs" [dependencies.clap] version = "4.5" features = ["derive"] optional = true [dependencies.console_error_panic_hook] version = "0.1.1" optional = true [dependencies.dirs] version = "5.0" optional = true [dependencies.indexmap] version = "2.3" [dependencies.itertools] version = "0.13" [dependencies.logos] version = "0.14" [dependencies.prettytable-rs] version = "0.10" [dependencies.ptree] version = "0.5" [dependencies.regex] version = "1.10" [dependencies.rustyline] version = "14.0" optional = true [dependencies.serde-wasm-bindgen] version = "0.6.5" optional = true [dependencies.serde_renamed] version = "1.0" features = ["derive"] optional = true package = "serde" [dependencies.smallvec] version = "1.13" [dependencies.smol_str] version = "0.3" [dependencies.thiserror] version = "2.0" [dependencies.wasm-bindgen] version = "0.2.83" optional = true [features] default = ["repl"] repl = [ "clap", "dirs", "rustyline", ] serde = [ "indexmap/serde", "serde_renamed", "smol_str/serde", "smallvec/serde", ] wasm = [ "console_error_panic_hook", "serde", "serde-wasm-bindgen", "wasm-bindgen", ] [target.'cfg(not(target_family = "wasm"))'.dependencies.colored] version = "2.1" [target.'cfg(not(target_family = "wasm"))'.dev-dependencies.criterion] version = "0.5" features = ["html_reports"] [target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-test] version = "0.3.36" [lints.clippy] result_large_err = "allow"