Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 782 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 782 Bytes

Rust Clap Example

Examples that demonstrate some advanced features in Rust (Macros, Attributes) using clap crate.

Installation

  1. Clone the repository:

    git clone https://github.com/ZenGo-X/rust-clap-example.git
    cd rust-clap-example
  2. Select which example to run in the main.rs:

    fn main() {
        macros_example::run_example();
    }

    or

    fn main() {
        attributes_example::run_example();
    }
  3. Build the project:

    cargo build
  4. Run the executable:

    ./target/debug/rust-clap-example