mirror of
https://github.com/rust-lang/cargo
synced 2024-11-05 18:50:39 +00:00
2dff1ed610
This command is used to download all dependencies of a package ahead of time to ensure that no more network communication will be necessary as part of a build. cc #358
21 lines
474 B
Rust
21 lines
474 B
Rust
use support::{project, execs};
|
|
use hamcrest::assert_that;
|
|
|
|
fn setup() {}
|
|
|
|
test!(no_deps {
|
|
let p = project("foo")
|
|
.file("Cargo.toml", r#"
|
|
[package]
|
|
name = "foo"
|
|
authors = []
|
|
version = "0.0.1"
|
|
"#)
|
|
.file("src/main.rs", r#"
|
|
mod a; fn main() {}
|
|
"#)
|
|
.file("src/a.rs", "");
|
|
|
|
assert_that(p.cargo_process("fetch"),
|
|
execs().with_status(0).with_stdout(""));
|
|
})
|