aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-01 15:30:37 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-01 15:30:37 -0800
commitd50039f758cc5520b30a0ca65c8d8f77cef949cd (patch)
tree9283685d137e4deadfe9e6ddaa9d4e9cdfa68ab7
parent837e378f5512abbd71450d169c249415bfaa173b (diff)
downloadnitrocli-d50039f758cc5520b30a0ca65c8d8f77cef949cd.tar.gz
nitrocli-d50039f758cc5520b30a0ca65c8d8f77cef949cd.tar.bz2
Update proposed installation methods sections
This change makes the following set of changes to the installation sections: - Note that Rust and Cargo are implicit dependencies - Remove the notice about the hid crate being required from the "From Source" section as that is no longer a requirement with the switch to using the nitrokey crate - Mention that from source compilation should happen from the nitrocli/ subfolder
-rw-r--r--nitrocli/README.md16
1 files changed, 6 insertions, 10 deletions
diff --git a/nitrocli/README.md b/nitrocli/README.md
index 32e096e..e0efab9 100644
--- a/nitrocli/README.md
+++ b/nitrocli/README.md
@@ -70,7 +70,8 @@ the [`man` page](doc/nitrocli.1.pdf).
Installation
------------
-The following dependencies are required:
+In addition to Rust itself and Cargo, its package management tool, the
+following dependencies are required:
- **hidapi**: In order to provide USB access this library is used.
- **GnuPG**: The `gpg-connect-agent` program allows the user to enter
PINs.
@@ -83,20 +84,15 @@ Packages are available for:
ebuild
#### From Crates.io
-**nitrocli** is [published][nitrocli-cratesio] on crates.io. If an
-installation from the checked-out source code is not desired, a
-quick-and-dirty local installation can happen via:
+**nitrocli** is [published][nitrocli-cratesio] on crates.io and can
+directly be installed from there:
```bash
$ cargo install nitrocli --root=$PWD/nitrocli
```
#### From Source
-In order to compile the program the `hid` crate needs to be available
-which allows to access the nitrokey as a USB HID device. This crate and
-its dependencies are contained in the form of subrepos in compatible and
-tested versions. Cargo is required to build the program.
-
-The build is as simple as running:
+After cloning the repository and changing into the `nitrocli` subfolder,
+the build is as simple as running:
```bash
$ cargo build --release
```