2020-07-19 23:34:56 +00:00
|
|
|
<!---
|
|
|
|
SPDX-FileCopyrightText: 2020 Robin Krahl <robin.krahl@ireas.org>
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
-->
|
|
|
|
|
|
|
|
# Installing rusty-man
|
|
|
|
|
2020-07-24 11:45:23 +00:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
To compile rusty-man, you need Rust 1.40 or later.
|
2020-07-19 23:34:56 +00:00
|
|
|
|
2020-07-24 11:45:23 +00:00
|
|
|
## Installing from source
|
2020-07-19 23:34:56 +00:00
|
|
|
|
|
|
|
1. Clone the rusty-man Git repository:
|
|
|
|
```
|
|
|
|
$ git clone https://git.sr.ht/~ireas/rusty-man && cd rusty-man
|
|
|
|
```
|
2020-07-24 11:45:23 +00:00
|
|
|
2. Optional: Checkout the latest release:
|
|
|
|
```
|
2020-07-24 12:24:57 +00:00
|
|
|
$ git checkout v0.1.1
|
2020-07-24 11:45:23 +00:00
|
|
|
```
|
|
|
|
3. Optional: Verify the signature of the latest commit:
|
2020-07-19 23:34:56 +00:00
|
|
|
```
|
|
|
|
$ curl -s "https://pgp.ireas.org/0x6D533958F070C57C.txt" | gpg --import
|
|
|
|
$ gpg verify-commit HEAD
|
|
|
|
```
|
2020-07-24 11:45:23 +00:00
|
|
|
4. Compile rusty-man:
|
2020-07-19 23:34:56 +00:00
|
|
|
```
|
|
|
|
$ cargo build --release
|
|
|
|
```
|
2020-07-24 11:45:23 +00:00
|
|
|
5. Optional: Install the rusty-man binary:
|
2020-07-19 23:34:56 +00:00
|
|
|
```
|
|
|
|
$ sudo cp ./target/release/rusty-man /usr/local/bin/rusty-man
|
|
|
|
```
|
2020-07-24 11:45:23 +00:00
|
|
|
|
|
|
|
## Installing from crates.io
|
|
|
|
|
|
|
|
```
|
|
|
|
cargo install rusty-man
|
|
|
|
```
|