Declarative external dependencies in Rust
PROJECT
Organization: Software Stewardship Lab
Improving security in the Rust package management ecosystem by declaratively recording non-Rust dependencies.
About
Because there is no way to declaratively record a Rust package’s dependency on a non-Rust package, CVEs from these external dependencies are not easily identifiable from the Rust ecosystem. This means that some vulnerabilities cannot be detected or mitigated, and that developers have incomplete information on their dependency graphs.
Rust’s build.rs is used to build and link to external dependencies. But this strategy involves executing arbitrary code, which poses problems: it makes dependency graph discovery and security review difficult; and it creates a vector for build-time vulnerabilities in dependants of packages that use build.rs.
We propose creating a specification for a declarative build.toml file that allows Rust developers to specify their external dependencies without being subject to the aforementioned security and discoverability problems.
To aid community adoption, we plan to additionally create a Rust dependency graph visualisation tool that will allow developers to understand their dependencies in depth.
Resources:
Resources:
Our team
Contribute
Become a financial contributor.