-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure build to not include local paths into wasm #455
Comments
See rust-lang/cargo#9506 (comment). There's |
I'm a fan of the
Darn, so it does have to be an env var for now. |
The problem with anything local to your machine - is that everyone else
doesn't have that. Which means they will get different results.
The build scripts should be hermetic IMO: you should be able to unpack a
new computer, git clone and build and get exactly the same result.
…On Thu, Jul 15, 2021 at 9:35 PM Mike Purvis ***@***.***> wrote:
I'm a fan of the .cargo/config file to keep the build script less scary
and cross-platform. Just saw we can't do it for this.
thus it can't be done with a fixed .cargo/config.
Darn, so it does have to be an env var for now.
rust-lang/rust#64839 <rust-lang/rust#64839>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABK27QIFTYN6C72QUOUFSDTX6ZHHANCNFSM47RW7PWA>
.
--
Best regards,
Illia Polosukhin
|
I don't see a super-nice way to make this "just work" with
I would suggest going for option 2 for the sdk itself, as it has the lowest entry barrier. I personally think we should nudge serious users towards 3 though (but might be biased on this one). Note that any solution allows us to nicely centralize all the oddness about building contracts:
Long term, I'd guess we should work on design and implementation of hypothetical |
Definitely agree with this. For our Rust examples, we're keeping (some) Windows compatible by having the
|
Rust 1.59.0 should allow us to avoid |
Currently when developers compile wasm file, the local paths are included into the wasm file in the asserts and other errors.
This is very suboptimal for reproducibility and also leaks private information about developer, which they are not always aware.
There should be a way to remove these absolute paths from the resulting file. If not, we need a tool that will clean this up after compilation and as default part of SDK.
The text was updated successfully, but these errors were encountered: