This repository contains vendored Rust libraries for the system bluetooth project. It is currently in an experimental state where we are simply running cargo vendor
to store all our dependencies.
Please reach out to the individuals listed in the OWNERS file if you'd like to know more about this repo.
In order to update any package, follow these steps:
Cargo.toml
to add, remove or upgrade packages.python vendor.py
cargo vendor
first, which updates Cargo.lock
and puts downloaded crates into the vendor
directorypatches
directory. It also regenerates checksums for packages that were modified.--license-map=<filename>
is given, it will dump a json file which is a dictionary with the crate names as keys and another dictionary with the license
and license_file
as keys.cargo vendor
seems to also pick up dependencies for unused configs (i.e. windows). You will need to make sure these packages are stripped by cargo vendor
.vendor.py
script with the new license and also update net-wireless/floss-9999.ebuild
with the new license.When it is necessary to patch a package due to incompatibility, you can create a patch targetting the specific package and store it in patches/${package_name}/
with the extension .patch
. The patch will be applied when you run vendor.py
.
Updates to this repo will be captured by CQ (currently zork-floss-cq). To directly test changes, build the net-wireless/floss
package (it is only available on the zork-floss board right now).