bare-script 0.1.1

The type-safe scripting authority for Rust. A framework for building robust shell commands and automation with 'Parse, don't validate' philosophy.
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.85.0"
name = "bare-script"
version = "0.1.1"
authors = ["bare-rs contributors"]
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "benches/**/*",
    "LICENSE-*",
    "README.md",
    "CHANGELOG.md",
    "CONTRIBUTING.md",
    "ARCHITECTURE.md",
    "CODE_OF_CONDUCT.md",
    "SECURITY.md",
    "GOVERNANCE.md",
    "NOTICE.md",
    "RELEASE_CHECKLIST.md",
    "SUPPORT.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The type-safe scripting authority for Rust. A framework for building robust shell commands and automation with 'Parse, don't validate' philosophy."
homepage = "https://github.com/bare-rs/bare-script"
documentation = "https://docs.rs/bare-script"
readme = "README.md"
keywords = [
    "script",
    "cli",
    "shell",
    "command",
    "automation",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "os",
]
license-file = "LICENSE-MIT"
repository = "https://github.com/bare-rs/bare-script"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["tokio-rt"]
logging = ["dep:log"]
tokio-full = ["dep:tokio"]
tokio-rt = ["dep:tokio"]

[lib]
name = "bare_script"
path = "src/lib.rs"

[[example]]
name = "async_cmd"
path = "examples/async_cmd.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "env_cwd"
path = "examples/env_cwd.rs"

[[example]]
name = "pipeline"
path = "examples/pipeline.rs"

[[example]]
name = "timeout"
path = "examples/timeout.rs"

[[test]]
name = "async_integration_test"
path = "tests/async_integration_test.rs"

[[test]]
name = "edge_case_test"
path = "tests/edge_case_test.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "platform_test"
path = "tests/platform_test.rs"

[[test]]
name = "prop_test"
path = "tests/prop_test.rs"

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

[dependencies.log]
version = "0.4"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "process",
    "io-util",
    "time",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
    "macros",
]

[lints.clippy]
as_conversions = "allow"
implicit_return = "allow"
indexing_slicing = "allow"
integer_division_remainder_used = "allow"
map_err_ignore = "allow"
min_ident_chars = "allow"
question_mark_used = "allow"
same_name_method = "allow"
single_call_fn = "allow"

[lints.rust]
absolute-paths-not-starting-with-crate = "warn"
ambiguous-associated-items = "deny"
ambiguous-negative-literals = "warn"
arithmetic-overflow = "deny"
async-fn-in-trait = "warn"
bad-asm-style = "warn"
binary-asm-labels = "deny"
bindings-with-variant-name = "deny"
closure-returning-async-block = "warn"
conflicting-repr-hints = "deny"
dangerous-implicit-autorefs = "deny"
dead-code = "warn"
dependency-on-unit-never-type-fallback = "deny"
deprecated = "deny"
deprecated-in-future = "warn"
deprecated-safe-2024 = "warn"
deref-into-dyn-supertrait = "warn"
deref-nullptr = "deny"
edition-2024-expr-fragment-specifier = "warn"
elided-lifetimes-in-associated-constant = "deny"
elided-lifetimes-in-paths = "warn"
enum-intrinsics-non-enums = "deny"
explicit-outlives-requirements = "warn"
if-let-rescope = "warn"
ill-formed-attribute-input = "deny"
impl-trait-overcaptures = "warn"
impl-trait-redundant-captures = "warn"
improper-ctypes = "warn"
improper-ctypes-definitions = "warn"
invalid-atomic-ordering = "deny"
invalid-from-utf8 = "warn"
invalid-from-utf8-unchecked = "deny"
invalid-nan-comparisons = "warn"
invalid-value = "warn"
keyword-idents-2018 = "warn"
keyword-idents-2024 = "warn"
late-bound-lifetime-arguments = "deny"
legacy-derive-helpers = "deny"
let-underscore-drop = "warn"
linker-messages = "warn"
macro-use-extern-crate = "warn"
malformed-diagnostic-attributes = "warn"
malformed-diagnostic-format-literals = "warn"
missing-abi = "warn"
missing-copy-implementations = "warn"
missing-debug-implementations = "warn"
missing-unsafe-on-extern = "warn"
missing_docs = "warn"
mixed-script-confusables = "warn"
named-arguments-used-positionally = "warn"
non-ascii-idents = "warn"
non-camel-case-types = "warn"
non-contiguous-range-endpoints = "warn"
non-fmt-panics = "warn"
non-local-definitions = "warn"
non-shorthand-field-patterns = "warn"
non-snake-case = "warn"
non-upper-case-globals = "warn"
noop-method-call = "warn"
overlapping-range-endpoints = "warn"
path-statements = "warn"
redundant-imports = "warn"
redundant-lifetimes = "warn"
redundant-semicolons = "warn"
rust-2021-incompatible-closure-captures = "warn"
rust-2021-incompatible-or-patterns = "warn"
rust-2021-prefixes-incompatible-syntax = "warn"
rust-2021-prelude-collisions = "warn"
rust-2024-guarded-string-incompatible-syntax = "warn"
rust-2024-incompatible-pat = "warn"
rust-2024-prelude-collisions = "warn"
single-use-lifetimes = "warn"
unnameable-types = "warn"
unreachable-pub = "warn"
unsafe-attr-outside-unsafe = "warn"
unsafe-op-in-unsafe-fn = "warn"
unsafe_code = "forbid"
unstable-features = "warn"
unused-crate-dependencies = "allow"
unused-extern-crates = "warn"
unused-import-braces = "warn"
unused-lifetimes = "warn"
unused-macro-rules = "warn"
unused-qualifications = "warn"
unused-results = "warn"
variant-size-differences = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]