From c28b00b7692d1c0c190c0eb9f59100fae43938a3 Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Tue, 3 Mar 2015 22:54:22 -0600 Subject: [PATCH] build: add basic cargo support for building --- .gitignore | 4 ++++ Cargo.toml | 9 +++++++++ README.md | 10 ++++------ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 Cargo.toml diff --git a/.gitignore b/.gitignore index 1455809..ed4ea6c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ # Binaries pstree + +# Cargo +target/ +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..142924d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "pstree" +version = "0.2.0" +authors = ["Paul Osborne "] + +[[bin]] + +name = "pstree" +path = "pstree.rs" diff --git a/README.md b/README.md index 6eb03d9..4c14377 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,11 @@ is not intended to replace it. Build and Run It ----------------- -You will need to install the latest version of rust. When I -originally wrote this code, v0.12 of Rust had just recently been -released. - - $ rustc pstree.rs - $ ./pstree +You will need to install the latest version of rust. This has been tested +with the latest nightlies as of March 3, 2015 (1.0.0 alpha). + $ cargo build + $ ./target/pstree Notes From Implementing -----------------------