3 unstable releases
0.2.0 | Feb 22, 2024 |
---|---|
0.1.1 | Dec 15, 2023 |
0.1.0 | Sep 25, 2023 |
#10 in #entrypoint
Used in entrypoint
12KB
121 lines
entrypoint_macros
This crate should not be imported directly, but rather accessed through the macros
feature of entrypoint
.
Contributing
Before doing anything else: open an issue.
lib.rs
:
macro(s) to improve entrypoint
ergonomics
This crate should not be imported directly, but rather accessed through the macros
feature of entrypoint
.
Examples
use entrypoint::prelude::*;
#[derive(clap::Parser, DotEnvDefault, LoggerDefault, Debug)]
struct Args {}
// this function replaces `main()`
#[entrypoint::entrypoint]
fn main(args: Args) -> entrypoint::anyhow::Result<()> {
info!("entrypoint input args: {:#?}", args);
Ok(())
}
Dependencies
~305–760KB
~18K SLoC