tree: ac3bfb09a014911de54571c6dca11342ae39afcf [path history] [tgz]
  1. README.md
third_party/README.md

Dependencies and Rust Packages (Crates) Vendoring

In order to ease auditing, ensure product stability, as well as reduce the possibility of the supply chain attack, we vendored all TEE dependencies here. During the build process, the trusted components will only consumes packages from this designated repository and will not download any code from external sources such as crates.io.

To Add A New Vendored Dependency

If a crate is not available in the vendor directory, it can to be added with the following steps:

  1. Add the crates you need in the corresponding Cargo.toml (e.g. crates-sgx/Cargo.toml) and update the crate list in the README.txt (e.g. crates-sgx/README.txt).
  2. Run cargo build and ensure that it passes.
  3. Run cargo vendor and update the config file (e.g. crates-sgx/config). You may also utilize crates-sgx/Makefile for automation.
  4. git add/commit the changes of Cargo.toml/Cargo.lock/config/README.txt/vendor and submit a pull request.