[package]
edition = "2021"
name = "fastshell"
version = "0.3.7"
authors = ["xiefujin <490021684@qq.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight Bash + Python runtime SDK for mobile AI agents"
homepage = "https://github.com/kandada/fastshell"
documentation = "https://docs.rs/fastshell"
readme = "README.md"
keywords = [
"shell",
"mobile",
"ai-agent",
"sandbox",
"python",
]
categories = [
"command-line-utilities",
"development-tools",
"embedded",
]
license = "Apache-2.0"
repository = "https://github.com/kandada/fastshell"
[features]
default = []
git = [
"git2",
"openssl",
]
jni_direct = ["jni"]
js-oxc = [
"oxc_parser",
"oxc_allocator",
"oxc_span",
]
python = ["pyo3"]
python-rustpython = [
"rustpython-vm",
"rustpython-stdlib",
"rustpython-pylib",
]
[lib]
name = "fastshell"
crate-type = [
"lib",
"cdylib",
"staticlib",
]
path = "src/lib.rs"
[[bin]]
name = "demo"
path = "src/bin/demo.rs"
[[bin]]
name = "server"
path = "src/bin/server.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[example]]
name = "quick_test"
path = "examples/quick_test.rs"
[[test]]
name = "aacode_integration_test"
path = "tests/aacode_integration_test.rs"
[[test]]
name = "bash_diff_test"
path = "tests/bash_diff_test.rs"
[[test]]
name = "bash_fuzz"
path = "tests/bash_fuzz.rs"
[[test]]
name = "bash_fuzz_recursive"
path = "tests/bash_fuzz_recursive.rs"
[[test]]
name = "big_flags"
path = "tests/big_flags.rs"
[[test]]
name = "big_flags2"
path = "tests/big_flags2.rs"
[[test]]
name = "big_flags3"
path = "tests/big_flags3.rs"
[[test]]
name = "big_flags4"
path = "tests/big_flags4.rs"
[[test]]
name = "bridge_test"
path = "tests/bridge_test.rs"
[[test]]
name = "bugfix_regression_test"
path = "tests/bugfix_regression_test.rs"
[[test]]
name = "builtin_matrix"
path = "tests/builtin_matrix.rs"
[[test]]
name = "cmd_flags"
path = "tests/cmd_flags.rs"
[[test]]
name = "cmd_flags2"
path = "tests/cmd_flags2.rs"
[[test]]
name = "cmd_flags3"
path = "tests/cmd_flags3.rs"
[[test]]
name = "cmd_flags4"
path = "tests/cmd_flags4.rs"
[[test]]
name = "compat_gaps_test"
path = "tests/compat_gaps_test.rs"
[[test]]
name = "compat_more"
path = "tests/compat_more.rs"
[[test]]
name = "compat_test"
path = "tests/compat_test.rs"
[[test]]
name = "curl_flags"
path = "tests/curl_flags.rs"
[[test]]
name = "device_bridge_test"
path = "tests/device_bridge_test.rs"
[[test]]
name = "device_callback"
path = "tests/device_callback.rs"
[[test]]
name = "device_mock"
path = "tests/device_mock.rs"
[[test]]
name = "dialect_compat"
path = "tests/dialect_compat.rs"
[[test]]
name = "document_commands_test"
path = "tests/document_commands_test.rs"
[[test]]
name = "e2e_test"
path = "tests/e2e_test.rs"
[[test]]
name = "edge_case_test"
path = "tests/edge_case_test.rs"
[[test]]
name = "ffi_abi"
path = "tests/ffi_abi.rs"
[[test]]
name = "find_phys_test"
path = "tests/find_phys_test.rs"
[[test]]
name = "foundation_hardening"
path = "tests/foundation_hardening.rs"
[[test]]
name = "fuzz_test"
path = "tests/fuzz_test.rs"
[[test]]
name = "git_robustness_test"
path = "tests/git_robustness_test.rs"
[[test]]
name = "jq_awk_full"
path = "tests/jq_awk_full.rs"
[[test]]
name = "js_webview_test"
path = "tests/js_webview_test.rs"
[[test]]
name = "long_tail"
path = "tests/long_tail.rs"
[[test]]
name = "new_features_test"
path = "tests/new_features_test.rs"
[[test]]
name = "posix_sh"
path = "tests/posix_sh.rs"
[[test]]
name = "python_compat"
path = "tests/python_compat.rs"
[[test]]
name = "python_pipe_mobile_test"
path = "tests/python_pipe_mobile_test.rs"
[[test]]
name = "python_shell_bridge_test"
path = "tests/python_shell_bridge_test.rs"
[[test]]
name = "python_test"
path = "tests/python_test.rs"
[[test]]
name = "recent_modules_test"
path = "tests/recent_modules_test.rs"
[[test]]
name = "regression_fixes_test"
path = "tests/regression_fixes_test.rs"
[[test]]
name = "report_limit_fixes"
path = "tests/report_limit_fixes.rs"
[[test]]
name = "robustness_test"
path = "tests/robustness_test.rs"
[[test]]
name = "sdk_test"
path = "tests/sdk_test.rs"
[[test]]
name = "session_fixes"
path = "tests/session_fixes.rs"
[[test]]
name = "session_replay"
path = "tests/session_replay.rs"
[[test]]
name = "shell_compat_test"
path = "tests/shell_compat_test.rs"
[[test]]
name = "shell_test"
path = "tests/shell_test.rs"
[[test]]
name = "sqlite3_test"
path = "tests/sqlite3_test.rs"
[[test]]
name = "stress_test"
path = "tests/stress_test.rs"
[[test]]
name = "symlink_rm"
path = "tests/symlink_rm.rs"
[[test]]
name = "sys_extra_smoke"
path = "tests/sys_extra_smoke.rs"
[[test]]
name = "sys_smoke"
path = "tests/sys_smoke.rs"
[[test]]
name = "vfs_test"
path = "tests/vfs_test.rs"
[[bench]]
name = "latency"
path = "benches/latency.rs"
harness = false
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.blake2]
version = "0.10"
[dependencies.bzip2]
version = "0.4"
[dependencies.filetime]
version = "0.2"
[dependencies.flate2]
version = "1"
[dependencies.git2]
version = "0.18"
optional = true
[dependencies.glob]
version = "0.3"
[dependencies.jni]
version = "0.21"
optional = true
[dependencies.libc]
version = "0.2"
[dependencies.libloading]
version = "0.8"
[dependencies.liblzma]
version = "0.4"
[dependencies.md-5]
version = "0.10"
[dependencies.num_cpus]
version = "1"
[dependencies.openssl]
version = "0.10"
features = ["vendored"]
optional = true
[dependencies.oxc_allocator]
version = "=0.144.0"
optional = true
[dependencies.oxc_parser]
version = "=0.144.0"
optional = true
[dependencies.oxc_span]
version = "=0.144.0"
optional = true
[dependencies.pdf-extract]
version = "0.12"
[dependencies.pyo3]
version = "0.27"
optional = true
[dependencies.regex]
version = "1"
[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]
[dependencies.russh]
version = "0.46"
[dependencies.russh-keys]
version = "0.46"
[dependencies.rustls]
version = "0.23"
[dependencies.rustls-native-certs]
version = "0.8"
[dependencies.rustls-pki-types]
version = "1"
[dependencies.rustpython-pylib]
version = "=0.5.0"
features = ["freeze-stdlib"]
optional = true
[dependencies.rustpython-stdlib]
version = "=0.5.100"
features = [
"threading",
"compiler",
"host_env",
"ssl-rustls",
]
optional = true
default-features = false
package = "fastshell-rustpython-stdlib"
[dependencies.rustpython-vm]
version = "=0.5.0"
features = [
"compiler",
"freeze-stdlib",
"threading",
"importlib",
"encodings",
"host_env",
"stdio",
"gc",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.sha3]
version = "0.10"
[dependencies.tar]
version = "0.4"
[dependencies.tokio]
version = "1"
features = [
"rt",
"net",
"io-util",
"macros",
]
[dependencies.ureq]
version = "2"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dependencies.webpki-roots]
version = "0.26"
[dependencies.zip]
version = "0.6"
[dependencies.zstd]
version = "0.11"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.rand]
version = "0.8"