*.rs: fix compile error under rust-nightly
add demo bin to Cargo.toml
Merge pull request #17 from andelf/master

Fix compile error under rust-nightly