-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor core into simplified WASM module
- Loading branch information
Showing
12 changed files
with
1,019 additions
and
2,892 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
help: ## Display this help screen | ||
@grep -h \ | ||
-E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ | ||
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
test: wasm ## Run the wasmer tests | ||
@cargo test | ||
|
||
wasm: ## Build the WASM files | ||
@RUSTFLAGS="$(RUSTFLAGS) --remap-path-prefix $(HOME)= -C link-args=-zstack-size=65536" \ | ||
cargo build \ | ||
--release \ | ||
--color=always \ | ||
-Z build-std=core,alloc,panic_abort \ | ||
-Z build-std-features=panic_immediate_abort \ | ||
--target wasm32-unknown-unknown | ||
|
||
package: ## Prepare the WASM npm package | ||
wasm-opt -O4 \ | ||
--output-target/wasm32-unknown-unknown/release/dusk_wallet_core.wasm \ | ||
-o mod.wasm | ||
|
||
.PHONY: test wasm help |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.