marser 0.1.0

Parser combinator toolkit with matcher-level backtracking and rich error reporting.
# 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"
rust-version = "1.88"
name = "marser"
version = "0.1.0"
authors = ["Arne de Borman"]
build = false
exclude = [
    "target/**",
    "tests/JSONTestSuite",
    "macros/**",
    "marser-trace-schema/**",
    "marser-trace-viewer/**",
    ".vscode/**",
    ".gitmodules",
    "scripts/**",
    ".tokeignore",
    "src/bin/profile_json_parse.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser combinator toolkit with matcher-level backtracking and rich error reporting."
homepage = "https://github.com/ArneCode/marser"
documentation = "https://docs.rs/marser"
readme = "README.md"
keywords = [
    "parser",
    "combinator",
    "grammar",
    "peg",
    "parsing",
]
categories = ["parsing"]
license = "MIT"
repository = "https://github.com/ArneCode/marser"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "parser-trace",
    "annotate-snippets",
    "embed-guide",
]

[features]
annotate-snippets = ["dep:annotate-snippets"]
default = []
embed-guide = []
json-testsuite = []
parser-trace = [
    "dep:serde",
    "dep:serde_json",
    "dep:marser-trace-schema",
]

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

[[example]]
name = "json"
path = "examples/json/main.rs"
required-features = ["annotate-snippets"]

[[example]]
name = "mini_language"
path = "examples/mini_language.rs"
required-features = ["annotate-snippets"]

[[example]]
name = "mini_script"
path = "examples/mini_script.rs"
required-features = ["annotate-snippets"]

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

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

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

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

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

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

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

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

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

[dependencies.annotate-snippets]
version = "0.12.15"
optional = true

[dependencies.marser-trace-schema]
version = "0.1.0"
optional = true

[dependencies.marser_macros]
version = "0.1.0"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.trybuild]
version = "1.0.105"

[profile.bench]
debug = 2

[profile.samply]
debug = 2
inherits = "release"