-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move workspaces dependency to dev-dependencies to resolve WASM compil…
…ation issue - Moved `workspaces` crate to `[dev-dependencies]` to ensure it is not compiled to WASM. - Added `NEAR_SANDBOX_URL` constant to `build.rs` to fix download issue for `near-sandbox`.
- Loading branch information
1 parent
63a02b7
commit e771b7b
Showing
2 changed files
with
8 additions
and
1 deletion.
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,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
const NEAR_SANDBOX_URL: &str = "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore/Linux-x86_64/master/e7ff91329e9a7cb6e38b6409dfa2d0bc9c058f6f/near-sandbox.tar.gz"; | ||
|
||
RUSTFLAGS='-C link-arg=-s' cargo +stable build --target wasm32-unknown-unknown --release | ||
cp ../target/wasm32-unknown-unknown/release/sputnikdao_factory2.wasm ./res/ |