# 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"
rust-version = "1.72.0"
name = "brush-core"
version = "0.2.3"
build = 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

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

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

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

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

[dependencies.cached]
version = "0.51.3"

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

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

[dependencies.futures]
version = "0.3.30"

[dependencies.hostname]
version = "0.4.0"

[dependencies.itertools]
version = "0.13.0"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.os_pipe]
version = "1.1.5"
features = ["io_safety"]

[dependencies.rand]
version = "0.8.5"

[dependencies.thiserror]
version = "1.0.61"

[dependencies.tokio]
version = "1.37.0"
features = [
    "io-util",
    "macros",
    "process",
    "rt",
    "rt-multi-thread",
    "signal",
]

[dependencies.tracing]
version = "0.1.40"

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

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

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

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

[target."cfg(unix)".dependencies.procfs]
version = "0.16.0"

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

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

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

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

[lints.clippy]
bool_to_int_with_if = "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"
panic = "deny"
panic_in_result_fn = "deny"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
result_large_err = "allow"
similar_names = "allow"
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.pedantic]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1
