mxsh 0.2.0

Embeddable POSIX-style shell parser and runtime
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"
name = "mxsh"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embeddable POSIX-style shell parser and runtime"
readme = "README.md"
keywords = [
    "shell",
    "posix",
    "parser",
    "runtime",
]
categories = [
    "command-line-utilities",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/rescrv/mxsh"

[features]
cli = [
    "frontend",
    "unix-runtime",
]
default = ["cli"]
embed = [
    "parser",
    "runtime",
    "serde",
]
frontend = ["embed"]
parser = []
runtime = []
serde = [
    "dep:serde",
    "dep:serde_json",
]
test-support = ["runtime"]
unix-runtime = ["runtime"]

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

[[bin]]
name = "mxsh"
path = "src/bin/mxsh.rs"
required-features = ["cli"]

[[example]]
name = "command_not_found"
path = "examples/command_not_found.rs"
required-features = [
    "embed",
    "test-support",
]

[[example]]
name = "custom_frontend"
path = "examples/custom_frontend.rs"
required-features = [
    "frontend",
    "test-support",
]

[[example]]
name = "embedded"
path = "examples/embedded.rs"
required-features = [
    "embed",
    "test-support",
]

[[example]]
name = "toysh"
path = "examples/toysh.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "parser_large_scripts"
path = "benches/parser_large_scripts.rs"
harness = false
required-features = ["parser"]

[dependencies.libc]
version = "0.2"

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

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

[dev-dependencies.proptest]
version = "1.6"

[profile.test]
opt-level = 2