From eaca501a041d1ffe43388ec65c9aee164232e732 Mon Sep 17 00:00:00 2001 From: Konstantinos Lampropoulos Date: Fri, 23 Aug 2024 16:28:15 +0300 Subject: [PATCH] Update README.md --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 30e8a04..8f252e0 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,7 @@

- - -### Usage +## Usage ```rust #[appinfo::main] @@ -24,7 +22,7 @@ fn main(){ } ``` -##### Add clap: +### Dependencies: ```bash cargo add clap cargo add appinfo @@ -38,13 +36,12 @@ Example: 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. ``` - -### Details: +## Details: * All the info are retrieved at compile time. * Default env vars: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates * For more, see here: https://github.com/l-const/appinfo-rs/blob/main/src/cli.rs#L5-L9 -### Future Enhacements +## Future Enhacements - [ ] Validation logic that the macro is applied only in `main`. - [ ] Override of vars through the macro args.