cargo: switch to use packaged crates by default
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
0eaa4a7810
commit
88625f2062
|
@ -0,0 +1,5 @@
|
||||||
|
[source]
|
||||||
|
[source.debian-packages]
|
||||||
|
directory = "/usr/share/cargo/registry"
|
||||||
|
[source.crates-io]
|
||||||
|
replace-with = "debian-packages"
|
|
@ -29,7 +29,7 @@ pam = "0.7"
|
||||||
pam-sys = "0.5"
|
pam-sys = "0.5"
|
||||||
percent-encoding = "2.1"
|
percent-encoding = "2.1"
|
||||||
pin-utils = "0.1.0-alpha"
|
pin-utils = "0.1.0-alpha"
|
||||||
proxmox = { git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox", version = "0.1", features = [ "sortable-macro", "api-macro" ] }
|
proxmox = { version = "0.1.1", features = [ "sortable-macro", "api-macro" ] }
|
||||||
regex = "1.2"
|
regex = "1.2"
|
||||||
rustyline = "5.0.5"
|
rustyline = "5.0.5"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|
27
README.rst
27
README.rst
|
@ -5,22 +5,23 @@ To use current git master code of the proxmox* helper crates, add::
|
||||||
|
|
||||||
git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox"
|
git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox"
|
||||||
|
|
||||||
|
or::
|
||||||
|
|
||||||
|
path = "../proxmox/proxmox"
|
||||||
|
|
||||||
to the proxmox dependency, and update the version to reflect the current,
|
to the proxmox dependency, and update the version to reflect the current,
|
||||||
pre-release version number (e.g., "0.1.1-dev.1" instead of "0.1.0").
|
pre-release version number (e.g., "0.1.1-dev.1" instead of "0.1.0").
|
||||||
|
|
||||||
Local (packaged) crates
|
Local cargo config
|
||||||
=======================
|
==================
|
||||||
|
|
||||||
To use locally installed, packaged crates instead of crates.io put the
|
This repository ships with a ``.cargo/config`` that replaces the crates.io
|
||||||
following into ./.cargo/config (or point CARGO_HOME to a directory containing
|
registry with packaged crates located in ``/usr/share/cargo/registry``.
|
||||||
such a config file)::
|
|
||||||
|
|
||||||
[source]
|
A similar config is also applied building with dh_cargo. Cargo.lock needs to be
|
||||||
[source.debian-packages]
|
deleted when switching between packaged crates and crates.io, since the
|
||||||
directory = "/usr/share/cargo/registry"
|
|
||||||
[source.crates-io]
|
|
||||||
replace-with = "debian-packages"
|
|
||||||
|
|
||||||
This is akin to what happens when building with dh_cargo. Cargo.lock needs to
|
|
||||||
be deleted when switching between packaged crates and crates.io, since the
|
|
||||||
checksums are not compatible.
|
checksums are not compatible.
|
||||||
|
|
||||||
|
To reference new dependencies (or updated versions) that are not yet packaged,
|
||||||
|
the dependency needs to point directly to a path or git source (e.g., see
|
||||||
|
example for proxmox crate above).
|
||||||
|
|
Loading…
Reference in New Issue