3 unstable releases

0.2.0 Feb 22, 2024
0.1.1 Dec 15, 2023
0.1.0 Sep 25, 2023

#9 in #entrypoint

Download history 8/week @ 2024-07-24 4/week @ 2024-07-31 7/week @ 2024-09-18 10/week @ 2024-09-25

51 downloads per month
Used in entrypoint

MIT license

12KB
121 lines

entrypoint_macros

Crates.io Crates.io Documentation License

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

~220–660KB
~16K SLoC