4
這裏是我的目錄結構:如何告訴Cargo構建main.rs以外的文件?
[email protected] ~/src/rustlang/gettingrusty $ tree .
.
├── Cargo.lock
├── Cargo.toml
├── foo.txt
├── src
│ ├── boolean_example.rs
│ ├── function_goodbye_world.rs
│ ├── listdir.rs
│ ├── looping.rs
│ ├── main.rs
│ ├── pattern_match.rs
│ └── write_to_file.rs
└── target
├── build
├── deps
├── examples
├── gettingrusty
└── native
6 directories, 11 files
當我運行的貨物建設「,似乎只有建立main.rs
。我應該如何更改Cargo.toml以構建其他文件?