-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmod.rs
More file actions
57 lines (54 loc) · 1.2 KB
/
Copy pathmod.rs
File metadata and controls
57 lines (54 loc) · 1.2 KB
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
use std::collections::HashSet;
use std::path::{Path, PathBuf};
use color_eyre::Result;
use tracing::instrument;
use crate::build;
use crate::start_package;
#[instrument(level = "trace", skip_all)]
pub async fn execute(
package_dir: &Path,
no_ui: bool,
ui_only: bool,
include: &HashSet<PathBuf>,
exclude: &HashSet<PathBuf>,
url: &str,
skip_deps_check: bool,
features: &str,
download_from: Option<&str>,
default_world: Option<&str>,
local_dependencies: Vec<PathBuf>,
add_paths_to_api: Vec<PathBuf>,
rewrite: bool,
hyperapp: bool,
reproducible: bool,
force: bool,
verbose: bool,
toolchain: &str,
wasi_version: &semver::Version,
) -> Result<()> {
build::execute(
package_dir,
no_ui,
ui_only,
include,
exclude,
skip_deps_check,
features,
Some(url.into()),
download_from,
default_world,
local_dependencies,
add_paths_to_api,
rewrite,
hyperapp,
reproducible,
force,
verbose,
false,
toolchain,
&wasi_version,
)
.await?;
start_package::execute(package_dir, url).await?;
Ok(())
}