Examples that demonstrate some advanced features in Rust (Macros, Attributes) using clap crate.
-
Clone the repository:
git clone https://github.com/ZenGo-X/rust-clap-example.git cd rust-clap-example
-
Select which example to run in the
main.rs
:fn main() { macros_example::run_example(); }
or
fn main() { attributes_example::run_example(); }
-
Build the project:
cargo build
-
Run the executable:
./target/debug/rust-clap-example