aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-07-05 22:42:56 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-07-06 00:46:14 +0200
commit381666ed17e0d85293f52493f852480bee70783b (patch)
tree797139f35ec420f1d17767cb4bf454933b68f825
parentd426f1a56fedbb8b9fdc6c797f837a770e923029 (diff)
downloadnitrokey-rs-381666ed17e0d85293f52493f852480bee70783b.tar.gz
nitrokey-rs-381666ed17e0d85293f52493f852480bee70783b.tar.bz2
Fix cargo dependency version specifications
Firstly, the libnitrokey API contains breaking changes between minor versions. Therefore we have to fix the nitrokey-sys version using a tilde requirement ("~3.4" means ">= 3.4.0, < 3.5.0"). Secondly, nitrokey-test’s 0.2.1 release requires some changes that are not yet implemented in this crate, so we have to pin its version to 0.2.0.
-rw-r--r--Cargo.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index a9643db..355f001 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,9 +18,9 @@ exclude = [".builds/*"]
[dependencies]
libc = "0.2"
-nitrokey-sys = "3.4"
+nitrokey-sys = "~3.4"
rand_core = {version = "0.3", default-features = false, features = ["std"] }
rand_os = {version = "0.1"}
[dev-dependencies]
-nitrokey-test = {version = "0.2"}
+nitrokey-test = {version = "=0.2.0"}