Registry / cli / rustutils-runnable

rustutils-runnable

JSON →
library0.1.0rscratesunverified

Trait for a runnable utility that exits with an ExitCode.

# Cargo.toml [dependencies] rustutils-runnable = "0.1.0"
INSTALL
IMPORT
SIG · RUSTUTILS-RUNNABLE
R
rustutils-runnable
clirustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Runnable
✓ use rustutils_runnable::Runnable;

Defines a runnable utility and executes it, exiting with the returned ExitCode.

use rustutils_runnable::Runnable; use std::process::ExitCode; struct MyApp; impl Runnable for MyApp { fn run(&self) -> ExitCode { println!("Hello from MyApp"); ExitCode::SUCCESS } } fn main() { let app = MyApp; std::process::exit(app.run().into()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
rustutils-runnable — cargo add rustutils-runnable · libregistry