build: add basic cargo support for building

This commit is contained in:
Paul Osborne 2015-03-03 22:54:22 -06:00
parent c141feddd8
commit c28b00b769
3 changed files with 17 additions and 6 deletions

4
.gitignore vendored
View file

@ -4,3 +4,7 @@
# Binaries
pstree
# Cargo
target/
Cargo.lock

9
Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "pstree"
version = "0.2.0"
authors = ["Paul Osborne <osbpau@gmail.com>"]
[[bin]]
name = "pstree"
path = "pstree.rs"

View file

@ -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
-----------------------