OSRB approval is required for third-party crates. To get approval, you will need to follow the instructions under the “Process for 3rd Party Hosted Code” section in this document.
Third-party crates depended on by
rustc_library targets are stored in
//third-party/rust-crates/rustc_deps/vendor. This set of crates is based on the dependencies listed in
//third_party/rust-crates/rustc_deps/Cargo.toml, and is updated by running
fx update-rustc-third-party, which will update the precise versions of the crates used in the
Cargo.lock file and download any necessary crates into the
If a crate is not available in the vendor directory, it can to be added with the following steps:
scripts/fx update-rustc-third-party. This will download all crates listed in
rustc_deps/Cargo.tomlas well as their dependencies and place them in the
integration. Update the git revision of
<project name="rust-crates" path="third_party/rust-crates" remote="https://fuchsia.googlesource.com/third_party/rust-crates" revision="<YOUR_NEW_REVISION_HERE>" gerrithost="https://fuchsia-review.googlesource.com"/>
Linking to a native library is not currently supported.