]> git.proxmox.com Git - proxmox-backup.git/blob - README.rst
cargo: switch to use packaged crates by default
[proxmox-backup.git] / README.rst
1 Versioning of proxmox helper crates
2 ===================================
3
4 To use current git master code of the proxmox* helper crates, add::
5
6 git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox"
7
8 or::
9
10 path = "../proxmox/proxmox"
11
12 to the proxmox dependency, and update the version to reflect the current,
13 pre-release version number (e.g., "0.1.1-dev.1" instead of "0.1.0").
14
15 Local cargo config
16 ==================
17
18 This repository ships with a ``.cargo/config`` that replaces the crates.io
19 registry with packaged crates located in ``/usr/share/cargo/registry``.
20
21 A similar config is also applied building with dh_cargo. Cargo.lock needs to be
22 deleted when switching between packaged crates and crates.io, since the
23 checksums are not compatible.
24
25 To reference new dependencies (or updated versions) that are not yet packaged,
26 the dependency needs to point directly to a path or git source (e.g., see
27 example for proxmox crate above).