mirror of
https://github.com/posborne/rust-pstree.git
synced 2025-03-03 22:24:40 +01:00
build: add basic cargo support for building
This commit is contained in:
parent
c141feddd8
commit
c28b00b769
3 changed files with 17 additions and 6 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -4,3 +4,7 @@
|
|||
|
||||
# Binaries
|
||||
pstree
|
||||
|
||||
# Cargo
|
||||
target/
|
||||
Cargo.lock
|
||||
|
|
9
Cargo.toml
Normal file
9
Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "pstree"
|
||||
version = "0.2.0"
|
||||
authors = ["Paul Osborne <osbpau@gmail.com>"]
|
||||
|
||||
[[bin]]
|
||||
|
||||
name = "pstree"
|
||||
path = "pstree.rs"
|
10
README.md
10
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
|
||||
-----------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue