Cargo Operations

Manage cargo (aka Rust) packages.

Facts used in these operations: cargo.CargoPackages.

cargo.packages

Install/remove/update cargo packages.

cargo.packages(packages=None, present=True, latest=False)
  • packages: list of packages to ensure
  • present: whether the packages should be present
  • latest: whether to upgrade packages without a specified version
Versions:
Package versions can be pinned like cargo: <pkg>@<version>.