]>
Commit | Line | Data |
---|---|---|
933687d9 DM |
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 | ||
0eaa4a78 FG |
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 | ||
88625f20 FG |
23 | or:: |
24 | ||
25 | path = "../proxmox/proxmox" | |
26 | ||
0eaa4a78 FG |
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 | ||
88625f20 FG |
30 | Local cargo config |
31 | ================== | |
0eaa4a78 | 32 | |
88625f20 FG |
33 | This repository ships with a ``.cargo/config`` that replaces the crates.io |
34 | registry with packaged crates located in ``/usr/share/cargo/registry``. | |
0eaa4a78 | 35 | |
88625f20 FG |
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 | |
0eaa4a78 | 38 | checksums are not compatible. |
88625f20 FG |
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). |