RUST
Install
Example
Run Demo
- Use rustc
1 | fn main(){ |
- rustc hello.rs
- ./hello
- Use Cargo
1 | cargo new hello |
Test Demo
- mkdir tests
- vim tests/cli.rs
1 | use std::process::Command; |
- cargo test
Adding a project dependency
评论
1 | fn main(){ |
1 | cargo new hello |
1 | use std::process::Command; |