-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54d1731
commit f206c66
Showing
5 changed files
with
78 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ mc.log | |
/Cargo.lock | ||
|
||
# Ignore CosmWasm artifacts | ||
/cw-contracts | ||
cw-contracts/ | ||
|
||
# Ignore dotenv | ||
.env |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ disallowed-types = [ | |
disallowed-methods = [ | ||
"std::time::Duration::as_secs_f64", | ||
] | ||
msrv = "1.72.1" | ||
|
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,33 @@ | ||
.PHONY: help | ||
|
||
help: ## Display help message. | ||
@echo "Usage: make <target>" | ||
@awk 'BEGIN {FS = ":.*?## "}/^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
|
||
install-tools: ## Install development tools including nightly rustfmt, cargo-hack and cargo-release. | ||
rustup target add wasm32-unknown-unknown | ||
|
||
lint: ## Lint the code using rustfmt, clippy and whitespace lints. | ||
cargo +nightly fmt --all --check | ||
cargo clippy --all-targets --all-features | ||
cargo clippy --all-targets --no-default-features | ||
|
||
check-docs: ## Build documentation with all features and without default features. | ||
cargo doc --all --all-features --release | ||
|
||
test: ## Run tests with all features and without default features. | ||
cargo test --all-targets --all-features --release | ||
|
||
check-release: ## Check that the release build compiles. | ||
cargo release --workspace --no-push --no-tag \ | ||
--exclude ibc-client-tendermint-cw | ||
|
||
release: ## Perform an actual release and publishes to crates.io. | ||
cargo release --workspace --no-push --no-tag --allow-branch HEAD --execute \ | ||
--exclude ibc-client-tendermint-cw | ||
|
||
build-tendermint-cw: ## Build the WASM file for the ICS-07 Tendermint light client. | ||
@echo "Building the WASM file for the ICS-07 Tendermint light client" | ||
RUSTFLAGS='-C link-arg=-s' cargo build -p ibc-client-tendermint-cw --target wasm32-unknown-unknown --release --lib --locked && \ | ||
mkdir -p cw-contracts && \ | ||
cp target/wasm32-unknown-unknown/release/ibc_client_tendermint_cw.wasm cw-contracts/ |