aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/Cargo.lock
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2017-03-26 17:31:28 -0700
committerDaniel Mueller <deso@posteo.net>2017-03-26 17:31:28 -0700
commitde5ae8656387267bb4614bbab6b62784323f23c0 (patch)
tree7be8d72b26b0ae355d5e157c2f36ccb30d6fa347 /nitrocli/Cargo.lock
parentcd6e41862cea59ec306e7c9c578270575eb2a73b (diff)
downloadnitrocli-de5ae8656387267bb4614bbab6b62784323f23c0.tar.gz
nitrocli-de5ae8656387267bb4614bbab6b62784323f23c0.tar.bz2
Discover and open nictrokey using libhidapi
This change uses the 'hid' crate to discover and open the Nitrokey Storage device. 'hid' is a wrapper around libhidapi (its libusb back-end in particular). Being a command line application some sort of parameter handling needs to happen. The approach we take is very simple for now to minimize the number of dependencies: we just compare the first argument against the expected ones and raise an error if no match was found. Because we only have positional arguments right now this is all we need.
Diffstat (limited to 'nitrocli/Cargo.lock')
-rw-r--r--nitrocli/Cargo.lock65
1 files changed, 65 insertions, 0 deletions
diff --git a/nitrocli/Cargo.lock b/nitrocli/Cargo.lock
index 8da0130..6a6d315 100644
--- a/nitrocli/Cargo.lock
+++ b/nitrocli/Cargo.lock
@@ -1,4 +1,69 @@
[root]
name = "nitrocli"
version = "0.1.0"
+dependencies = [
+ "gcc 0.3.45",
+ "hid 0.3.0",
+ "hidapi-sys 0.1.2",
+ "libc 0.2.21",
+ "pkg-config 0.3.9",
+]
+[[package]]
+name = "gcc"
+version = "0.3.45"
+
+[[package]]
+name = "gcc"
+version = "0.3.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+replace = "gcc 0.3.45"
+
+[[package]]
+name = "hid"
+version = "0.3.0"
+dependencies = [
+ "hidapi-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
+name = "hidapi-sys"
+version = "0.1.2"
+dependencies = [
+ "gcc 0.3.45 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
+ "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
+]
+
+[[package]]
+name = "hidapi-sys"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+replace = "hidapi-sys 0.1.2"
+
+[[package]]
+name = "libc"
+version = "0.2.21"
+
+[[package]]
+name = "libc"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+replace = "libc 0.2.21"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.9"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+replace = "pkg-config 0.3.9"
+
+[metadata]
+"checksum gcc 0.3.45 (registry+https://github.com/rust-lang/crates.io-index)" = "40899336fb50db0c78710f53e87afc54d8c7266fb76262fecc78ca1a7f09deae"
+"checksum hidapi-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "63829a2802510a8a4e3a52e1fa2fb969b8cd0826da65e04d79bd095eae21e050"
+"checksum libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)" = "88ee81885f9f04bff991e306fea7c1c60a5f0f9e409e99f6b40e3311a3363135"
+"checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903"