lapce / lapce/floem

Examples cannot be run with `cargo run --example`

Open
#263 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.