README.md: link to cargo-bitbake helper program

cargo-bitbake can be used to generate recipes for cargo-based rust
packages.
This commit is contained in:
Steven Walter
2016-09-05 15:14:19 -04:00
parent fbf59ed6a0
commit 2247ad36aa
+13
View File
@@ -17,6 +17,19 @@ This openembedded layer provides the rust compiler, tools for building packages
- rust (built for target)
## Building a rust package
When building a rust package in bitbake, it's usually easiest to build with
cargo using cargo.bbclass. If the package already has a Cargo.toml file (most
rust packages do), then it's especially easy. Otherwise you should probably
get the code building in cargo first.
Once your package builds in cargo, you can use
[cargo-bitbake](https://github.com/cardoe/cargo-bitbake) to generate a bitbake
recipe for it. This allows bitbake to fetch all the necessary dependent
crates, as well as a pegged version of the crates.io index, to ensure maximum
reproducibility.
## Common issues when packaging things using cargo
You may run into errors similar to: