-
Notifications
You must be signed in to change notification settings - Fork 372
/
mod.rs
57 lines (53 loc) · 1.07 KB
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
mod custom;
mod engine;
mod local;
pub mod remote;
mod shared;
pub use self::engine::*;
pub use self::shared::*;
use std::path::Path;
use std::process::ExitStatus;
use crate::cargo::CargoMetadata;
use crate::errors::*;
use crate::{Config, Target};
#[allow(clippy::too_many_arguments)] // TODO: refactor
pub fn run(
engine: &Engine,
target: &Target,
args: &[String],
metadata: &CargoMetadata,
config: &Config,
uses_xargo: bool,
sysroot: &Path,
verbose: bool,
docker_in_docker: bool,
cwd: &Path,
) -> Result<ExitStatus> {
if engine.is_remote {
remote::run(
engine,
target,
args,
metadata,
config,
uses_xargo,
sysroot,
verbose,
docker_in_docker,
cwd,
)
} else {
local::run(
engine,
target,
args,
metadata,
config,
uses_xargo,
sysroot,
verbose,
docker_in_docker,
cwd,
)
}
}