cargo build --bins

Command `cargo build --bin BINS` where bins is space-separated list
of binaries rebuilds only those binaries.

As a side effect, `cargo run --name NAME` now build only binary to
be executed.
Can you also add a test with a library and a bin to ensure that `--bin` still builds the lib?