Skip to content

Commit

Permalink
add readme to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Sep 28, 2017
1 parent 41fdbfc commit b991064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/seanmonstar/num_cpus"
documentation = "https://docs.rs/num_cpus"
keywords = ["cpu", "cpus", "cores"]
categories = ["hardware-support"]
readme = "README.md"

[dependencies]
libc = "0.2.26"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ In your `main.rs` or `lib.rs`:
```rust
extern crate num_cpus;

// elsewhere
// count logical cores this process could try to use
let num = num_cpus::get();
```

0 comments on commit b991064

Please sign in to comment.