-
Notifications
You must be signed in to change notification settings - Fork 548
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
Use nightly again to build wasm artifacts #16540
Draft
dannywillems
wants to merge
12
commits into
dw/revamp-use-latest-master-proof-systems
Choose a base branch
from
dw/back-on-nightly-for-wasm
base: dw/revamp-use-latest-master-proof-systems
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Use nightly again to build wasm artifacts #16540
dannywillems
wants to merge
12
commits into
dw/revamp-use-latest-master-proof-systems
from
dw/back-on-nightly-for-wasm
Conversation
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
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
2 times, most recently
from
January 28, 2025 10:12
6e8c1b0
to
3d2484c
Compare
This was referenced Jan 28, 2025
!ci-build-me |
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
from
January 28, 2025 11:37
3d2484c
to
02241d8
Compare
!ci-toolchain-me |
1 similar comment
!ci-toolchain-me |
!ci-build-me |
nightly has been initially removed as it seemed to make vendoring all the dependencies more complicated because some std lib must be included. However, removing nightly introduces issues like "DataCloneError", see o1-labs/o1js#1989, which makes the reliance on nightly inevitable. Removing --offline because stdlib missing for now (like `compiler_builtins`). Another note is that cargo vendor has been introduced to provide a consistent build environment for all platforms and all users, including the CI. The lockfile Cargo.lock is meant to provide a locked environment with all the dependencies, including the transitive ones. However, it is only used by binaries. In our build process, we do build a static library (libwires_15_stubs.a), not a binary. And Rust doesn't use the lockfile in this case. Another solution than `cargo vendor` would have been to strictly enforce the version in the top-level Cargo.toml, but it implies to add all the transitive dependencies (as otherwise, when a new transitive dependency is released, cargo will fetch it, making the environment inconsistent). This solution is not viable as the purpose of Cargo.toml is to enforce versions on direct dependencies only, and leave the cargo solver doing its job for the transitive dependencies. For these reasons, the solution of vendoring the dependencies to build the static library has been selected.
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
from
January 28, 2025 12:57
1ba80c6
to
215c7c8
Compare
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
from
January 28, 2025 12:59
215c7c8
to
b2ba551
Compare
!ci-build-me |
1 similar comment
!ci-build-me |
wasm should not use vendor
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
from
January 28, 2025 13:58
c0c0f04
to
0ab8103
Compare
!ci-build-me |
!ci-build-me |
dannywillems
force-pushed
the
dw/back-on-nightly-for-wasm
branch
from
January 28, 2025 14:42
b133689
to
7d5f961
Compare
svv232
changed the title
Use nightly again to build wasm artefacts
Use nightly again to build wasm artifacts
Feb 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is built on top of #16464
nightly has been initially removed as it seemed to make vendoring all the
dependencies more complicated (which seems to not be the case though).
However, removing nightly introduces issues like "DataCloneError", see
o1-labs/o1js#1989, which makes the reliance on
nightly inevitable.
When using wasm-pack with
--offline
, we get the following error:I would leave it like this for now, hoping that wasm-pack uses Cargo.lock.
Related o1js and o1js-bindings PR: