Skip to content

Add wasm dev-deps using CI script #2104

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

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

tcharding
Copy link
Member

We only test WASM in CI using a stable toolchain however because we have a target specific dev-dependencies section the wasm deps get pulled in during MSRV builds - this breaks the MSRV build.

Instead of including WASM dev-dependencies in the manifest we can dynamically modify the manifest when running the WASM tests. We do this already to add the crate-type section so this is not really that surprising to see in the CI script.

Doing so allows us to stop pinning the transitive syn dependency also which is included in the dependency graph because of wasm-bingen-test.

Originally part of #2093

We only test WASM in CI using a stable toolchain however because we have
a target specific dev-dependencies section the wasm deps get pulled in
during MSRV builds - this breaks the MSRV build.

Instead of including WASM dev-dependencies in the manifest we can
dynamically modify the manifest when running the WASM tests. We do this
already to add the `crate-type` section so this is not really that
surprising to see in the CI script.

Doing so allows us to stop pinning the transitive `syn` dependency also
which is included in the dependency graph because of `wasm-bingen-test`.
@tcharding
Copy link
Member Author

WTF, #2093 passed CI, which means we don't need this. I am not allocating clock cycles to work out why right now. Converting to draft.

@tcharding tcharding marked this pull request as draft October 5, 2023 01:15
@apoelstra
Copy link
Member

I kinda like the idea of doing this anyway since it moves wasm stuff out of our fixed lockfiles. (Their presence there is misleading since we don't actually test WASM using the fixed lockfiles, because wasm-bindgen does not respect them properly, or something. See rust-bitcoin/rust-secp256k1#632 )

@tcharding
Copy link
Member Author

tcharding commented Oct 6, 2023

I like the idea of it too, undrafting.

@tcharding tcharding marked this pull request as ready for review October 6, 2023 02:19
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 685e510

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 685e510. Removing wasm from lock-files is a win

@apoelstra apoelstra merged commit 2bd1e73 into rust-bitcoin:master Oct 6, 2023
@tcharding tcharding deleted the 10-05-rm-wasm-dev-deps branch May 22, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants