title: Determine number of cores using Rust
body: <p>I want to spawn a certain number of tasks based on the cores that a machine has.  Is there anything in Rust that can find the number of cores, or should I just run external commands and parse the output?</p>