You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I simply put a build.rs along side the Cargo.toml, the cargo contract build didn't run it before compiling the source.
It get invoked when I add build = "build.rs" into the Cargo.toml but with an error:
error: failed to run custom build command for `lego v0.1.0 (/tmp/cargo-contract_xs9Qmm)`
Caused by:
process didn't exit successfully: `[...]/lego-7c2aff32be609fea/build-script-build` (exit status: 101)
--- stderr
sh: 1: cd: can't cd to /tmp/cargo-contract_xs9Qmm/js
When I simply put a build.rs along side the
Cargo.toml
, thecargo contract build
didn't run it before compiling the source.It get invoked when I add
build = "build.rs"
into theCargo.toml
but with an error:Click here for the complete build.rs.
Finally, I got it work with this workaround.
The text was updated successfully, but these errors were encountered: