Clone this repo:

Branches

  1. c39c1d1 Initial import of third party crates and build infra by Erik Gilling · 7 weeks ago main
  2. 60de3be Initial empty repository by Rob Mohr · 7 weeks ago

Pigweed Rust Third Party Crates

This is a repository to vendor and provide build rules for the third party crates that Pigweed's rust code depends on. Currently only Bazel build rules are provided.

Adding and Updating the Crates

The list of vendored crates is defined by the dependencies listed in //Cargo.toml. The contents of the //crates directory is generated by //:crates_vendor. To update the vendored crates and build files to match run:

bazel run //:crates_vendor -- --repin

Licenses can be checked with cargo license -d.

FAQ

collect2: fatal error: cannot find ‘ld’ error

  = note: collect2: fatal error: cannot find 'ld'
          compilation terminated.

If you get the above error when running bazel run //:crates_vendor -- --repin, ensure lld is installed on your system. For instance:

sudo apt install lld