# 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.0"
name = "brush-core"
version = "0.5.0"
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"

[features]
default = []
experimental-parser = ["brush-parser/winnow-parser"]
serde = [
    "dep:serde",
    "brush-parser/serde",
    "rpds/serde",
    "chrono/serde",
]

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


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

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

[dependencies.bon]
version = "3.9.1"

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

[dependencies.cached]
version = "0.59.0"

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

[dependencies.chrono]
version = "0.4.44"

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

[dependencies.color-print]
version = "0.3.7"

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

[dependencies.futures]
version = "0.3.32"

[dependencies.inherent]
version = "1.0.13"

[dependencies.itertools]
version = "0.14.0"

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

[dependencies.rand]
version = "0.10.0"

[dependencies.rpds]
version = "1.2.0"

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

[dependencies.strum]
version = "0.28.0"

[dependencies.strum_macros]
version = "0.28.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tokio-util]
version = "0.7.16"

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

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

[dev-dependencies.tempfile]
version = "3.27.0"

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

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

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

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

[target."cfg(unix)".dependencies.libc]
version = "0.2.183"

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

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

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

[target."cfg(windows)".dependencies.check_elevation]
version = "0.2.7"

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

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_Storage_FileSystem",
    "Win32_System_Console",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_Threading",
    "Win32_UI_WindowsAndMessaging",
]

[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