From 894e52296c362c5e2a4898698180fc43af65939d Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Tue, 21 Jul 2026 22:51:42 +0530 Subject: [PATCH 1/2] Add running examples section Signed-off-by: Ajay Singh --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4b21324..fd593f7 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,17 @@ cd overloading-macros rustup override set nightly cargo build ``` + +## Running Examples + +Run individual example binaries with: + +```sh +cargo run --bin +``` + +For example: + +```sh +cargo run --bin multiple-args +``` From f32c62cdda2407036002d40d318a47db8b8a290a Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Wed, 22 Jul 2026 08:11:54 +0530 Subject: [PATCH 2/2] Add examples to CI workflow Signed-off-by: Ajay Singh --- .github/workflows/check.yml | 6 ++++-- Cargo.lock | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3163d9b..ae437e0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -50,8 +50,10 @@ jobs: with: toolchain: nightly components: cargo,clippy,rustfmt - - name: Run default Rust crate - run: # cargo run --all-features --bin-name TODO + - name: Run example binaries + run: | + cargo run --all-features --bin multiple-args + cargo run --all-features --bin multiple-mixed-args clippy-rust: name: 4. Clippy lints on Rust crates diff --git a/Cargo.lock b/Cargo.lock index 9254a98..1a51657 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,9 +38,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.118" +version = "2.0.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" dependencies = [ "proc-macro2", "quote",