错误检查

error: a bin target must be available for cargo run

cargo run 会找src/main.rssrc/bin/*.rs去运行,如果没有这些文文件,只有src/lib.rs,那么可以执行cargo test单元测试即可