Examples cannot be run with `cargo run --example`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.3k
- Forks
- 218
- PR merge metrics
- No merged PRs in 30d
Description
Because each example is its own sub-project, running cargo --example example-name doesn't work.
This maybe makes sense for examples that include assets or special dependencies, but from a quick skim most examples only include a single Rust files and could be normal files in the example/ folder. This would make them more convenient to test.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the repository’s example sub-project layout and Cargo configuration, then compare the single-file examples with those needing assets or special dependencies. Identify which examples can use Cargo’s standard example layout and preserve any necessary exceptions. Done means eligible examples can be run with cargo run --example example-name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, developer-experience
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100