tshell 0.2.2

TShell, a command tree framework with autocompletion and contextual help
Documentation

Build #2781696 2026-01-01 12:54:24

# rustc version rustc 1.94.0-nightly (8d670b93d 2025-12-31)

# docs.rs version docsrs 0.1.0 (e6d7c66e 2025-12-21 )

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/tshell-0.2.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/tshell-0.2.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20251231-1.94.0-nightly-8d670b93d\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4293a3523635644d2ce7f5ce0910991530c7eb9396418f3b1f18ef1b29a47d70 [INFO] running `Command { std: "docker" "start" "-a" "4293a3523635644d2ce7f5ce0910991530c7eb9396418f3b1f18ef1b29a47d70", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/commands.rs:312:42 [INFO] [stderr] | [INFO] [stderr] 312 | context: Arc::new(Mutex::new((context))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 312 - context: Arc::new(Mutex::new((context))) [INFO] [stderr] 312 + context: Arc::new(Mutex::new(context )) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/commands.rs:10:24 [INFO] [stderr] | [INFO] [stderr] 10 | pub type CallBack<T> = Fn(HashMap<String, &str>, &mut Option<T>, &HashMap<String, String>) -> CommandResult<Option<String>>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 10 | pub type CallBack<T> = dyn Fn(HashMap<String, &str>, &mut Option<T>, &HashMap<String, String>) -> CommandResult<Option<String>>; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [INFO] [stderr] --> src/commands.rs:321:42 [INFO] [stderr] | [INFO] [stderr] 321 | let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] help: replace the use of the deprecated method [INFO] [stderr] | [INFO] [stderr] 321 - let mut levels: Vec<&str> = line.trim_left().split_whitespace().collect(); [INFO] [stderr] 321 + let mut levels: Vec<&str> = line.trim_start().split_whitespace().collect(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/commands.rs:320:101 [INFO] [stderr] | [INFO] [stderr] 320 | pub fn get_suggestions<'a>(&'a self, line: &str, o_sub_node: Option<&'a Node<T>>) -> Option<Vec<&str>> { [INFO] [stderr] | -- -- ^^^^ the same lifetime is elided here [INFO] [stderr] | | | [INFO] [stderr] | the lifetime is named here the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 320 | pub fn get_suggestions<'a>(&'a self, line: &str, o_sub_node: Option<&'a Node<T>>) -> Option<Vec<&'a str>> { [INFO] [stderr] | ++ [INFO] [stderr] [INFO] [stderr] warning: `tshell` (lib) generated 4 warnings (run `cargo fix --lib -p tshell` to apply 4 suggestions) [INFO] [stderr] Scraping tshell v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Documenting tshell v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] warning: `tshell` (lib doc) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/tshell/index.html [INFO] running `Command { std: "docker" "inspect" "4293a3523635644d2ce7f5ce0910991530c7eb9396418f3b1f18ef1b29a47d70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4293a3523635644d2ce7f5ce0910991530c7eb9396418f3b1f18ef1b29a47d70", kill_on_drop: false }` [INFO] [stdout] 4293a3523635644d2ce7f5ce0910991530c7eb9396418f3b1f18ef1b29a47d70