Crates.io | appinfo |
lib.rs | appinfo |
version | 0.1.2 |
source | src |
created_at | 2024-08-22 01:51:06.679167 |
updated_at | 2024-08-22 21:26:08.643304 |
description | Macro to derive appinfo at compile time using cargo compile-time env vars and `clap-rs`. |
homepage | |
repository | https://github.com/l-const/appinfo-rs |
max_upload_size | |
id | 1347187 |
size | 410,818 |
#[appinfo::main]
fn main(){
println!("hello world");
cli.do_stuff();
server.listen(3000);
}
cargo add clap
cargo add appinfo
then in a terminal do:
Example:
❯ ./wonderful-cli -h
wonderful-cli (version: 0.1.0, commit revision: 0.1.0, repository: https://github.com/l-const/wonderful-cli) - A cli app that utilises the appinfo macro.
main
.