-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1236 from dusk-network/clippy-contract-types
- Loading branch information
Showing
4 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
all: ## Build the transfer contract | ||
@cargo build --release | ||
|
||
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}' | ||
|
||
check: wasm ## Run the Rust check on the project features | ||
@cargo check --target wasm32-unknown-unknown | ||
@cargo check | ||
|
||
test: ## Perform the contract tests defined in the host module | ||
@cargo test --release | ||
|
||
wasm: ## Build the WASM files | ||
@RUSTFLAGS="$(RUSTFLAGS) --remap-path-prefix $(HOME)= -C link-args=-zstack-size=65536" \ | ||
cargo +dusk build \ | ||
--release \ | ||
--color=always \ | ||
-Z build-std=core,alloc \ | ||
--target wasm64-unknown-unknown | ||
|
||
clippy: ## Run clippy | ||
@cargo clippy --all-features --release -- -D warnings | ||
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings | ||
|
||
.PHONY: all check test wasm help |
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,28 @@ | ||
all: ## Build the transfer contract | ||
@cargo build --release | ||
|
||
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}' | ||
|
||
check: wasm ## Run the Rust check on the project features | ||
@cargo check --target wasm32-unknown-unknown | ||
@cargo check | ||
|
||
test: ## Perform the contract tests defined in the host module | ||
@cargo test --release | ||
|
||
wasm: ## Build the WASM files | ||
@RUSTFLAGS="$(RUSTFLAGS) --remap-path-prefix $(HOME)= -C link-args=-zstack-size=65536" \ | ||
cargo +dusk build \ | ||
--release \ | ||
--color=always \ | ||
-Z build-std=core,alloc \ | ||
--target wasm64-unknown-unknown | ||
|
||
clippy: ## Run clippy | ||
@cargo clippy --all-features --release -- -D warnings | ||
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings | ||
|
||
.PHONY: all check test wasm help |