Expand description
Core types for Rust Tool Base: the application context, service traits, tool metadata, and feature-flag registry.
The central type is app::App, a strongly-typed application context that
replaces Go Tool Base’s dynamic Props container. Services are held in
Arc<T> and App is cheap to clone — command handlers take it by value.
See docs/development/specs/2026-04-22-rtb-app-v0.1.md for the
authoritative contract.
Re-exports§
pub use linkme;
Modules§
- app
- The
Appapplication context. - command
- The
Commandtrait, its descriptor, and the link-time registration slice. - credentials
CredentialProvider— the type-erased objectcrate::app::Appstores so commands can enumerate credentials withoutAppitself becoming generic over the downstream tool’s config type.- features
- Runtime feature gating for built-in subcommands.
- metadata
- Static, build-time tool metadata.
- prelude
- Glob-importable prelude for typical application wiring.
- regex_
util - Bounded compilation of untrusted regular expressions.
- typed_
config - Type-erased typed-config storage for
crate::app::App. - version
- Build-time version information.