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