Skip to content

Commit

Permalink
Add feature=pirita_file
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Oct 26, 2022
1 parent 184445f commit c90a5a6
Show file tree
Hide file tree
Showing 10 changed files with 2,040 additions and 375 deletions.
817 changes: 737 additions & 80 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ build-wasmer:
build-wasmer-debug:
$(CARGO_BINARY) build $(CARGO_TARGET) --manifest-path lib/cli/Cargo.toml $(compiler_features) --features "debug" --bin wasmer

build-wasmer-pirita:
$(CARGO_BINARY) build $(CARGO_TARGET) --release --manifest-path lib/cli/Cargo.toml $(compiler_features) --features="pirita_file" --bin wasmer

build-wasmer-pirita-debug:
$(CARGO_BINARY) build $(CARGO_TARGET) --manifest-path lib/cli/Cargo.toml $(compiler_features) --features "pirita_file,debug" --bin wasmer

bench:
$(CARGO_BINARY) bench $(CARGO_TARGET) $(compiler_features)

Expand Down
15 changes: 15 additions & 0 deletions lib/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ cfg-if = "1.0"
fern = { version = "0.6", features = ["colored"], optional = true }
log = { version = "0.4", optional = true }
tempfile = "3"
tempdir = "0.3.7"
http_req = { version="^0.8", default-features = false, features = ["rust-tls"], optional = true }
dirs = { version = "4.0", optional = true }
serde_json = { version = "1.0", optional = true }
Expand All @@ -71,6 +72,18 @@ chrono = { version = "^0.4", default-features = false, features = [ "std", "cloc
[target.'cfg(target_os = "linux")'.dependencies]
unix_mode = "0.1.3"

[dependencies.wapm-targz-to-pirita]
path = "../../../pirita/crates/wapm-targz-to-pirita"
default-features = false
features = []
optional = true

[dependencies.pirita]
path = "../../../pirita/crates/pirita"
default-features = false
features = ["mmap", "webc_runner", "wasi", "emscripten"]
optional = true

[features]
# Don't add the compiler features in default, please add them on the Makefile
# since we might want to autoconfigure them depending on the availability on the host.
Expand Down Expand Up @@ -148,6 +161,8 @@ enable-serde = [
"wasmer-wasi/enable-serde",
]

pirita_file = ["pirita", "wapm-targz-to-pirita"]

http = [
"http_req",
"dirs",
Expand Down
Loading

0 comments on commit c90a5a6

Please sign in to comment.