]> git.proxmox.com Git - proxmox-backup.git/blob - README.rst
set toolchain to system
[proxmox-backup.git] / README.rst
1 ``rustup`` Toolchain
2 ====================
3
4 If you use ``rustup``, you need to configure what toolchain you want
5 to use. We set the default in the file ``./rust-toolchain`` to ``system``:
6
7 # cat rust-toolchain
8 system
9
10 This works if you have installed the ``rustc`` Debian packages, and told
11 ``rustup`` the location of that link:
12
13 # rustup toolchain link system /usr
14
15
16 Versioning of proxmox helper crates
17 ===================================
18
19 To use current git master code of the proxmox* helper crates, add::
20
21 git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox"
22
23 or::
24
25 path = "../proxmox/proxmox"
26
27 to the proxmox dependency, and update the version to reflect the current,
28 pre-release version number (e.g., "0.1.1-dev.1" instead of "0.1.0").
29
30 Local cargo config
31 ==================
32
33 This repository ships with a ``.cargo/config`` that replaces the crates.io
34 registry with packaged crates located in ``/usr/share/cargo/registry``.
35
36 A similar config is also applied building with dh_cargo. Cargo.lock needs to be
37 deleted when switching between packaged crates and crates.io, since the
38 checksums are not compatible.
39
40 To reference new dependencies (or updated versions) that are not yet packaged,
41 the dependency needs to point directly to a path or git source (e.g., see
42 example for proxmox crate above).