rust-embedded / rust-embedded/meta-rust-bin

Use output of `cargo metadata` to install binaries

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
BitBake
Stars
124
Forks
92
Avg merge
6h 54m
Merged PRs (30d)
2

Description

Right now binaries are found and installed with the extremely simple heuristic of looking for executable files in the output target directory.

Using the output of cargo metadata (which provides very nice, detailed information about generated libraries, binaries, and more) it would be possible to deterministically install binaries from a package.

Contributor guide

No contributing guide indexed for this repository

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 in classes/cargo.bbclass at the linked executable-file heuristic, then inspect the output of cargo metadata for the package information it provides. Replace heuristic binary discovery with deterministic installation based on that metadata, and verify that generated binaries are installed from the package correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, embedded-iot
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.