[package]
edition = "2024"
rust-version = "1.88.0"
name = "brush-parser"
version = "0.4.0"
authors = ["reuben olinsky"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "POSIX/bash shell tokenizer and parsers (used by brush-shell)"
readme = "README.md"
keywords = [
"cli",
"shell",
"sh",
"bash",
"script",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/reubeno/brush"
[features]
arbitrary = ["dep:arbitrary"]
debug-tracing = ["peg/trace"]
diagnostics = ["dep:miette"]
serde = ["dep:serde"]
winnow-parser = ["dep:winnow"]
[lib]
name = "brush_parser"
path = "src/lib.rs"
bench = false
[[example]]
name = "miette"
path = "examples/miette.rs"
required-features = ["diagnostics"]
[[example]]
name = "serde"
path = "examples/serde.rs"
required-features = ["serde"]
[[bench]]
name = "parser"
path = "benches/parser.rs"
harness = false
[dependencies.arbitrary]
version = "1.4.2"
features = ["derive"]
optional = true
[dependencies.bon]
version = "3.9.1"
[dependencies.cached]
version = "0.59.0"
[dependencies.indenter]
version = "0.3.4"
[dependencies.insta]
version = "1.47.1"
features = ["redactions"]
[dependencies.miette]
version = "7.6.0"
features = ["derive"]
optional = true
default-features = false
[dependencies.peg]
version = "0.8.5"
[dependencies.serde]
version = "1.0.228"
features = [
"derive",
"rc",
]
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1.44"
[dependencies.utf8-chars]
version = "3.0.6"
[dependencies.winnow]
version = "1.0.0"
optional = true
[dev-dependencies.anyhow]
version = "1.0.102"
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.insta]
version = "1.47.1"
features = [
"glob",
"ron",
"yaml",
"redactions",
]
[dev-dependencies.miette]
version = "7.6.0"
features = ["fancy"]
[dev-dependencies.pretty_assertions]
version = "1.4.1"
features = ["unstable"]
[dev-dependencies.serde]
version = "1.0.228"
features = [
"derive",
"rc",
]
[dev-dependencies.serde_json]
version = "1.0.149"
[dev-dependencies.serde_yaml]
version = "0.9.34"
[target.wasm32-unknown-unknown.dependencies.getrandom]
version = "0.4.2"
features = ["wasm_js"]
[target.wasm32-unknown-unknown.dependencies.uuid]
version = "1.23.1"
features = ["js"]
[lints.clippy]
bool_to_int_with_if = "allow"
cognitive_complexity = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
expect_used = "deny"
format_push_string = "deny"
if_not_else = "allow"
if_same_then_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "deny"
must_use_candidate = "allow"
option_if_let_else = "allow"
panic = "deny"
panic_in_result_fn = "deny"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
result_large_err = "allow"
similar_names = "allow"
string_lit_chars_any = "deny"
string_slice = "deny"
struct_excessive_bools = "allow"
tests_outside_test_module = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.rust]
unnameable_types = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_attributes = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = 0
[lints.rust.missing_docs]
level = "deny"
priority = 0
[lints.rust.nonstandard_style]
level = "deny"
priority = 0
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.unknown_lints]
level = "allow"
priority = -100
[lints.rust.warnings]
level = "deny"
priority = 0
[lints.rustdoc.all]
level = "deny"
priority = -1