Cargo
kind: cargo
Description
The cargo crawler looks recursively for all cargo crates from a specific root directory. Then for each of them, it tries to update dependencies specified in Cargo.toml
.
This crawler can be enabled either automatically with default behavior by running updatecli diff --experimental
from a directory containing the files to update.
Or by providing a manifest.
Manifests
Parameters
The crawler cargo
supports the following parameters:
Name | Required | Default | Description |
---|---|---|---|
| current dir | Define root directory to look for | |
| Define a list of rules to only update a subset of Dockerfile files | ||
| Define a list of | ||
| Define a list of rules to ignore update a subset of dockerfile files | ||
| Define a list of | ||
| Registgries allows to specify a map of cargo registries credentials | ||
| Cargo registry auth to use for authentication | ||
| Cargo registry token to use for authentication | ||
|
| Cargo registry header format to use for authentication | |
| Cargo registry URL to use for authentication | ||
| Cargo registry root directory to use as FS index | ||
| Cargo registry scmId to use as FS index |
Example
# updatecli.d/default.yaml
name: "Cargo compose autodiscovery using git scm"
scms:
default:
kind: git
spec:
url: https://github.com/updatecli-test/cargo-lab.git
branch: "main"
private-registry:
kind: git
spec:
url: "https://github.com/updatecli-test/fake-cargo-registry.git"
branch: "main"
autodiscovery:
scmid: default
crawlers:
cargo:
registries:
fake-private-git:
scmid: private-registry
fake-private-http:
url: "https://updatecli-test.github.io/fake-cargo-registry/api/v1/crates"