-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add features for dev and prod wasmer configurations
- Loading branch information
1 parent
280f3ac
commit 4d4618d
Showing
17 changed files
with
321 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ authors = ["thedavidmeister", "[email protected]"] | |
edition = "2021" | ||
|
||
[dependencies] | ||
wasmer = { version = "=4.3.6", optional = true, default-feature = false } | ||
wasmer-middlewares = { version = "=4.3.6", optional = true, default-feature = false } | ||
wasmer = { version = "=4.3.6", optional = true, default-features = false } | ||
wasmer-middlewares = { version = "=4.3.6", optional = true, default-features = false } | ||
|
||
# Temporarily include a fork of wasmer from the git branch 'wamr', until it is officially released in wasmer v5 | ||
hc-wasmer = { version="=4.3.6-hc.1", optional = true, default-features = false } | ||
|
@@ -30,14 +30,22 @@ crate-type = ["cdylib", "rlib"] | |
path = "src/lib.rs" | ||
|
||
[features] | ||
default = ["error_as_host", "wasmer_sys"] | ||
default = ["error_as_host", "wasmer_sys_dev"] | ||
debug_memory = [] | ||
error_as_host = ["holochain_wasmer_common/error_as_host"] | ||
wasmer_sys = [ | ||
"dep:wasmer", | ||
"dep:wasmer-middlewares", | ||
"wasmer/sys", | ||
] | ||
wasmer_sys_dev = [ | ||
"wasmer_sys", | ||
"wasmer/default", | ||
] | ||
wasmer_sys_prod = [ | ||
"wasmer_sys", | ||
"wasmer/llvm", | ||
] | ||
wasmer_wamr = [ | ||
"dep:hc-wasmer", | ||
"hc-wasmer/wamr" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.