【发布时间】:2014-12-23 03:58:43
【问题描述】:
这是我的目录结构:
lowks@lowkster ~/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
当我运行“cargo build”时,它似乎只构建了main.rs。我应该如何更改 Cargo.toml 来构建其余文件?
【问题讨论】:
标签: rust rust-cargo