# 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.85.0"
name = "brush-core"
version = "0.3.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reusable core of a POSIX/bash shell (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"

[lib]
name = "brush_core"
path = "src/lib.rs"
bench = false

[[example]]
name = "call-func"
path = "examples/call-func.rs"

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

[dependencies.async-recursion]
version = "1.1.1"

[dependencies.async-trait]
version = "0.1.88"

[dependencies.brush-parser]
version = "^0.2.19"

[dependencies.cached]
version = "0.56.0"

[dependencies.cfg-if]
version = "1.0.1"

[dependencies.chrono]
version = "0.4.41"

[dependencies.clap]
version = "4.5.40"
features = [
    "derive",
    "wrap_help",
]

[dependencies.fancy-regex]
version = "0.16.1"

[dependencies.futures]
version = "0.3.31"

[dependencies.indexmap]
version = "2.10.0"

[dependencies.itertools]
version = "0.14.0"

[dependencies.normalize-path]
version = "0.2.1"

[dependencies.rand]
version = "0.9.2"

[dependencies.rpds]
version = "1.1.1"

[dependencies.strum]
version = "0.27.2"

[dependencies.strum_macros]
version = "0.27.2"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tracing]
version = "0.1.41"

[dev-dependencies.anyhow]
version = "1.0.98"

[dev-dependencies.criterion]
version = "0.5.1"
features = [
    "async_tokio",
    "html_reports",
]

[dev-dependencies.pretty_assertions]
version = "1.4.1"
features = ["unstable"]

[target."cfg(any(windows, unix))".dependencies.hostname]
version = "0.4.1"

[target."cfg(any(windows, unix))".dependencies.os_pipe]
version = "1.2.2"
features = ["io_safety"]

[target."cfg(any(windows, unix))".dependencies.tokio]
version = "1.47.0"
features = [
    "io-util",
    "macros",
    "process",
    "rt",
    "rt-multi-thread",
    "signal",
    "sync",
]

[target."cfg(any(windows, unix))".dependencies.uucore]
version = "0.1.0"
features = ["format"]
default-features = false

[target.'cfg(target_family = "wasm")'.dependencies.tokio]
version = "1.47.1"
features = [
    "io-util",
    "macros",
    "rt",
]

[target.'cfg(target_os = "linux")'.dependencies.procfs]
version = "0.17.0"

[target."cfg(unix)".dependencies.command-fds]
version = "0.3.2"

[target."cfg(unix)".dependencies.nix]
version = "0.30.1"
features = [
    "fs",
    "process",
    "resource",
    "signal",
    "term",
    "user",
]

[target."cfg(unix)".dependencies.rlimit]
version = "0.10.2"

[target."cfg(unix)".dependencies.terminfo]
version = "0.9.0"

[target."cfg(unix)".dependencies.uzers]
version = "0.12.1"

[target."cfg(unix)".dev-dependencies.pprof]
version = "0.15.0"
features = [
    "criterion",
    "flamegraph",
]

[target."cfg(windows)".dependencies.homedir]
version = "0.3.5"

[target."cfg(windows)".dependencies.whoami]
version = "1.6.0"

[target.wasm32-unknown-unknown.dependencies.getrandom]
version = "0.3.3"
features = ["wasm_js"]

[target.wasm32-unknown-unknown.dependencies.uuid]
version = "1.17.0"
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"
missing_panics_doc = "allow"
multiple_crate_versions = "allow"
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_slice = "deny"
struct_excessive_bools = "allow"
todo = "deny"
unwrap_in_result = "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
