Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@ cd overloading-macros
rustup override set nightly
cargo build
```

## Running Examples

Run individual example binaries with:

```sh
cargo run --bin <filename>
```

For example:

```sh
cargo run --bin multiple-args

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add all the examples to CI as well, so that we check the examples actually run:

run: # cargo run --all-features --bin-name TODO

It is ok to just add a list of names for now, I don't think there's any easy way to get a list of binaries in a crate.

```