Open nickbabcock opened 4 years ago
It seems like if Cargo.toml is modified the script that imports the wasm does not get a new content hash.
Below are instructions on building a project of mine. I noticed that that diff between two commits resulted in the same js hash:
diff --git a/crate/Cargo.toml b/crate/Cargo.toml index d131c19..9928d1d 100644 --- a/crate/Cargo.toml +++ b/crate/Cargo.toml @@ -11,3 +11,7 @@ crate-type = ["cdylib"] wasm-bindgen = "0.2.55" boxcars = "0.6" serde_json = "1.0" + +[profile.release] +lto = true +opt-level = 'z'
Full instructions:
git clone https://github.com/nickbabcock/rl-web.git cd rl-web git checkout 354f8362acaaee6f71a9ab2fe9d2c0452bf54765 npm ci npm run build git checkout a16eaebdcdf216e9f121d305db8e46ab8c644e62 npm run build
Screenshot highlighting the differences:
It seems like if Cargo.toml is modified the script that imports the wasm does not get a new content hash.
Below are instructions on building a project of mine. I noticed that that diff between two commits resulted in the same js hash:
Full instructions:
Screenshot highlighting the differences: