Skip to main content

Crate rtb_app

Crate rtb_app 

Source
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 App application context.
command
The Command trait, its descriptor, and the link-time registration slice.
credentials
CredentialProvider — the type-erased object crate::app::App stores so commands can enumerate credentials without App itself 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.
typed_config
Type-erased typed-config storage for crate::app::App.
version
Build-time version information.