kaish-kernel 0.7.0

Core kernel for kaish: lexer, parser, interpreter, 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 = "kaish-kernel"
version = "0.7.0"
authors = ["Amy Tobey <tobert@gmail.com>"]
build = "build.rs"
exclude = ["tests/snapshots/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core kernel for kaish: lexer, parser, interpreter, and runtime"
homepage = "https://github.com/tobert/kaish"
readme = "README.md"
keywords = [
    "shell",
    "mcp",
    "ai",
    "agent",
    "cli",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/tobert/kaish"
resolver = "2"

[features]
default = ["native"]
native = [
    "dep:git2",
    "dep:trash",
    "dep:directories",
    "dep:tiktoken-rs",
    "dep:nix",
    "dep:procfs",
    "tokio/process",
    "tokio/fs",
    "tokio/rt-multi-thread",
    "tokio/signal",
]
pcre2 = ["dep:grep-pcre2"]
schema = [
    "dep:schemars",
    "kaish-types/schema",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.ariadne]
version = "0.6"

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

[dependencies.base64]
version = "0.22"

[dependencies.bstr]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.chumsky]
version = "1.0.0-alpha.8"

[dependencies.digest]
version = "0.10"

[dependencies.directories]
version = "5"
optional = true

[dependencies.git2]
version = "0.20"
optional = true

[dependencies.grep-matcher]
version = "0.1"

[dependencies.grep-pcre2]
version = "0.1"
optional = true

[dependencies.grep-regex]
version = "0.1"

[dependencies.grep-searcher]
version = "0.1"

[dependencies.ignore]
version = "0.4"

[dependencies.jaq-core]
version = "2.2"

[dependencies.jaq-json]
version = "1.1"

[dependencies.jaq-std]
version = "2.1"

[dependencies.kaish-glob]
version = "0.7.0"

[dependencies.kaish-types]
version = "0.7.0"
features = []

[dependencies.logos]
version = "0.16"

[dependencies.md-5]
version = "0.10"

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.similar]
version = "2"

[dependencies.thiserror]
version = "2"

[dependencies.tiktoken-rs]
version = "0.9"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "time",
    "macros",
    "io-util",
]

[dependencies.tokio-util]
version = "0.7"
features = ["compat"]

[dependencies.tracing]
version = "0.1"

[dependencies.trash]
version = "5"
optional = true

[dev-dependencies.insta]
version = "1.46"

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

[dev-dependencies.rstest]
version = "0.26"

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

[build-dependencies.chrono]
version = "0.4"

[target.'cfg(target_os = "linux")'.dependencies.procfs]
version = "0.18"
optional = true

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = [
    "signal",
    "process",
    "term",
]
optional = true

[lints.clippy]
expect_used = "warn"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "deny"