Unused dependencies, dependency versions and security vulnerabilities with cargo
#1674
Labels
Chore
This is a small task that can be done at any point in time and is easier than others
CI
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
Sometimes it happens that unused dependencies remain in our dependency tree. Also, sometimes it happens that we use some crates with known security vulnerabilities. It would be good to investigate and integrate into our CI tools that would help us circumvent these issues in production releases.
cargo
dependenciesAn interesting workflow to execute:
cargo update
to update to the latest semver compatible version.cargo outdated --workspace --root-deps-only
to find newer, possibly incompatible dependencies. Update those and fix code as needed.cargo tree --duplicate
to show dependencies which come in multiple versions. Deduplicate thoseThe ability to manage dependencies for all workspace crates is not yet available in cargo. However, there is a tracking issue for this feature. Once available we will be able to deduplicate dependencies and metadata directives amongst Iroha workspace crates
The text was updated successfully, but these errors were encountered: