Skip to content

Commit

Permalink
add back .cargo/config for flags only, remove cross-env dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedotexe committed Mar 26, 2020
1 parent a4a1cd0 commit 295887e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 65 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "link-args=-s"]
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ rust:
before_install:
- rustup target add wasm32-unknown-unknown
script:
- npm install && npm run build
- npm run build
- cargo test --package status-message -- --nocapture
61 changes: 1 addition & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Compiles NEAR Protocol example of setting and retrieving a status message per NEAR account",
"scripts": {
"build": "cross-env RUSTFLAGS=\"-C link-arg=-s\" cargo build --target wasm32-unknown-unknown --release",
"build": "cargo build --target wasm32-unknown-unknown --release",
"postbuild": "cp target/wasm32-unknown-unknown/release/status_message.wasm ./res/"
},
"repository": {
Expand All @@ -22,7 +22,5 @@
"url": "https://github.com/near-examples/rust-status-message/issues"
},
"homepage": "https://github.com/near-examples/rust-status-message#readme",
"devDependencies": {
"cross-env": "^7.0.2"
}
"devDependencies": {}
}
Binary file modified res/status_message.wasm
Binary file not shown.

0 comments on commit 295887e

Please sign in to comment.