[package]
edition = "2024"
name = "nut-shell"
version = "0.1.1"
authors = ["Esben Dueholm Nørgaard"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight command-line interface library for embedded systems"
documentation = "https://docs.rs/nut-shell"
readme = "README.md"
keywords = [
"embedded",
"no-std",
"cli",
"shell",
"command-line",
]
categories = [
"embedded",
"no-std",
"command-line-interface",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/HybridChild/nut-shell"
resolver = "2"
[features]
async = []
authentication = [
"dep:sha2",
"dep:subtle",
]
completion = []
credgen = [
"authentication",
"dep:serde",
"dep:toml",
"dep:getrandom",
]
default = [
"completion",
"history",
]
history = []
[lib]
name = "nut_shell"
path = "src/lib.rs"
[[bin]]
name = "nut-shell-credgen"
path = "src/bin/credgen.rs"
required-features = [
"authentication",
"credgen",
]
[[test]]
name = "helpers"
path = "tests/helpers.rs"
[[test]]
name = "mod"
path = "tests/mod.rs"
[[test]]
name = "test_rust_optimizations"
path = "tests/test_rust_optimizations.rs"
[[test]]
name = "test_shell_auth"
path = "tests/test_shell_auth.rs"
[[test]]
name = "test_shell_core"
path = "tests/test_shell_core.rs"
[[test]]
name = "test_shell_editing"
path = "tests/test_shell_editing.rs"
[[test]]
name = "test_shell_features"
path = "tests/test_shell_features.rs"
[[test]]
name = "test_tree"
path = "tests/test_tree.rs"
[dependencies.getrandom]
version = "0.4"
optional = true
[dependencies.heapless]
version = "0.9.2"
default-features = false
[dependencies.nut-shell-macros]
version = "0.1.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.sha2]
version = "0.10"
optional = true
default-features = false
[dependencies.subtle]
version = "2.5"
optional = true
default-features = false
[dependencies.toml]
version = "0.9.8"
optional = true
[target.'cfg(not(target_os = "none"))'.dev-dependencies.tokio]
version = "1.49.0"
features = [
"macros",
"rt",
]
[profile.dev]
opt-level = 1
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true