rust-embedded / rust-embedded/meta-rust-bin
Split network access (`cargo fetch`) to `do_fetch` task and disable network in `do_compile`
Nobody has claimed this yet.
- Dominant language
- BitBake
- Stars
- 124
- Forks
- 92
- Avg merge
- 6h 54m
- Merged PRs (30d)
- 2
Description
Currently, the do_build task does a cargo build not in --offline mode which is, by default, disabled in later Yocto versions (but can be enabled). It is likely preferred to do the network operations (via cargo fetch) outside of the build stage. Doing so likely aids with offline builds in some cases.
Contributor guide
No contributing guide indexed for this repository
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 locating the recipe or task definitions that implement do_build and do_compile, then inspect how cargo build is invoked. Compare the existing build flow with cargo fetch and determine how network access can move into do_fetch while compilation runs offline; done means the tasks preserve the existing build and support offline compilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100