diff mbox series

[v2,4/6] README.md: Update installation instructions

Message ID 20180723070431.565-4-andrew.donnellan@au1.ibm.com
State Accepted
Headers show
Series [v2,1/6] CONTRIBUTING.md: Update references, add rustfmt information | expand

Commit Message

Andrew Donnellan July 23, 2018, 7:04 a.m. UTC
Update the installation instructions in preparation for pushing a release
to crates.io, which I intend to do very soon.

Also clarify that snowpatch will only run on platforms that support both
Rust and Git, because I'm not sure snowpatch will run bare-metal on a
microcontroller.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
---
 README.md | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Comments

Russell Currey July 24, 2018, 1:34 a.m. UTC | #1
On Mon, 2018-07-23 at 17:04 +1000, Andrew Donnellan wrote:
> Update the installation instructions in preparation for pushing a
> release
> to crates.io, which I intend to do very soon.
> 
> Also clarify that snowpatch will only run on platforms that support
> both
> Rust and Git, because I'm not sure snowpatch will run bare-metal on a
> microcontroller.
> 

Dare you to try...
diff mbox series

Patch

diff --git a/README.md b/README.md
index 52e3f833f181..f69402635d4d 100644
--- a/README.md
+++ b/README.md
@@ -45,9 +45,9 @@  creation of snowpatch.
 Installing
 ----------
 
-snowpatch is a [Rust](https://www.rust-lang.org) program.  In order to compile 
-it, you will need Rust and its package manager, Cargo.  snowpatch should run 
-on any target that Rust compiles on, however it has only been tested on Linux.
+snowpatch is a [Rust](https://www.rust-lang.org) program.  In order to compile
+it, you will need Rust and its package manager, Cargo.  snowpatch should run on
+any target that supports Rust and Git, however it has only been tested on Linux.
 We do not provide pre-built binaries at this stage.
 
 ### Non-Rust dependencies
@@ -59,11 +59,17 @@  We do not provide pre-built binaries at this stage.
 * [OpenSSL](https://www.openssl.org) headers
 * [OpenSSH](https://www.openssh.com) headers
 
-### Building
+### Installing with cargo
 
-snowpatch can be compiled with `cargo build --release`, which will
-download and build the Rust packages we depend on. The executable can
-be found in `target/release/snowpatch`.
+To install the latest tagged release of snowpatch using cargo, run `cargo
+install snowpatch`, which will download and compile snowpatch and all its Rust
+dependencies. The snowpatch binary will be installed as `snowpatch`.
+
+### Building manually
+
+To compile snowpatch manually, clone the git repository and run `cargo build
+--release`. The executable can be found in `target/release/snowpatch` or
+executed using `cargo run`.
 
 
 Contributing