brush-shell 0.4.0

Rust-implemented shell focused on POSIX and bash compatibility
Documentation
# 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-shell"
version = "0.4.0"
authors = ["reuben olinsky"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust-implemented shell focused on POSIX and bash compatibility"
readme = "README.md"
keywords = [
    "cli",
    "shell",
    "sh",
    "bash",
    "script",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/reubeno/brush"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ name }-v{ version }/brush-{ target }{ archive-suffix }"

[features]
basic = ["brush-interactive/basic"]
default = [
    "basic",
    "reedline",
    "minimal",
]
experimental = [
    "experimental-builtins",
    "experimental-bundled-coreutils",
    "experimental-load",
    "experimental-parser",
]
experimental-builtins = ["dep:brush-experimental-builtins"]
experimental-bundled-coreutils = [
    "dep:brush-coreutils-builtins",
    "brush-coreutils-builtins/coreutils.all",
]
experimental-load = [
    "dep:serde_json",
    "brush-core/serde",
]
experimental-parser = [
    "brush-core/experimental-parser",
    "brush-parser/winnow-parser",
]
minimal = ["brush-interactive/minimal"]
reedline = ["brush-interactive/reedline"]
schema = ["dep:schemars"]

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

[[bin]]
name = "brush"
path = "src/main.rs"
bench = false

[[test]]
name = "brush-compat-tests"
path = "tests/compat_tests.rs"
harness = false

[[test]]
name = "brush-completion-tests"
path = "tests/completion_tests.rs"

[[test]]
name = "brush-integration-tests"
path = "tests/integration_tests.rs"
harness = false

[[test]]
name = "brush-interactive-tests"
path = "tests/interactive_tests.rs"

[[test]]
name = "brush-version-tests"
path = "tests/version_tests.rs"

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

[dependencies.brush-builtins]
version = "^0.2.0"

[dependencies.brush-core]
version = "^0.5.0"

[dependencies.brush-coreutils-builtins]
version = "^0.1.0"
optional = true

[dependencies.brush-experimental-builtins]
version = "^0.1.0"
optional = true

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

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

[dependencies.const_format]
version = "0.2.36"

[dependencies.etcetera]
version = "0.11.0"

[dependencies.git-version]
version = "0.3.9"

[dependencies.human-panic]
version = "2.0.6"

[dependencies.schemars]
version = "1.2.1"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.toml]
version = "1.1.0"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"

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

[dev-dependencies.assert_cmd]
version = "2.2.0"

[dev-dependencies.assert_fs]
version = "1.1.3"

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

[dev-dependencies.colored]
version = "3.1.1"

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

[dev-dependencies.descape]
version = "3.0.0"

[dev-dependencies.diff]
version = "0.1.13"

[dev-dependencies.expectrl]
version = "0.8.0"

[dev-dependencies.glob]
version = "0.3.3"

[dev-dependencies.indent]
version = "0.1.1"

[dev-dependencies.indexmap]
version = "2.13.0"

[dev-dependencies.junit-report]
version = "0.9.0"

[dev-dependencies.os-release]
version = "0.1.0"

[dev-dependencies.predicates]
version = "3.1.4"

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

[dev-dependencies.regex]
version = "1.12.3"

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dev-dependencies.serde_yaml]
version = "0.9.34"

[dev-dependencies.strip-ansi-escapes]
version = "0.2.1"

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

[dev-dependencies.test-with]
version = "0.16.0"
features = ["executable"]
default-features = false

[dev-dependencies.version-compare]
version = "0.2.1"

[dev-dependencies.walkdir]
version = "2.5.0"

[dev-dependencies.which]
version = "8.0.2"

[target."cfg(any(unix, windows))".dependencies.brush-interactive]
version = "^0.4.0"
features = [
    "basic",
    "reedline",
]

[target."cfg(any(unix, windows))".dependencies.crossterm]
version = "0.29.0"

[target."cfg(any(unix, windows))".dependencies.tokio]
version = "1.50.0"
features = [
    "rt",
    "rt-multi-thread",
    "sync",
]

[target."cfg(not(any(unix, windows)))".dependencies.brush-interactive]
version = "^0.4.0"
features = ["minimal"]

[target."cfg(not(any(unix, windows)))".dependencies.tokio]
version = "1.52.1"
features = [
    "rt",
    "sync",
]

[target."cfg(unix)".dev-dependencies.nix]
version = "0.31.2"

[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