Skip to content
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

chore: remove unneeded dependencies #129

Closed
wants to merge 1 commit into from
Closed

chore: remove unneeded dependencies #129

wants to merge 1 commit into from

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Mar 11, 2024

This change removes the wasm-bingen-futures and web-sys dependencies, as it seems they are not actually used anywhere.

verifyVersionAllowNone(crate, "js-sys", versions.jsSys);
verifyVersionAllowNone(crate, "web-sys", versions.webSys);
Copy link
Member

Choose a reason for hiding this comment

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

I believe all of these need to be kept in sync in order to work well with wasm-bindgen?

Copy link
Member

@dsherret dsherret Mar 11, 2024

Choose a reason for hiding this comment

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

I think these all need to be using the same version of wasm-bindgen (ex. web-sys has a dep on wasm-bindgen https://crates.io/crates/web-sys/0.3.69/dependencies). Them getting out of sync causes problems... the wasm-bindgen-cli enforces these checks IIRC. We should probably add a comment here explaining this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests pass fine, and I wasn't able to find any occurrences of "web-sys" and "wasm-bingen-futures" anywhere besides the versions files. If my understanding is wrong, fair enough. I'll close the PR 🙂

Copy link
Member

@dsherret dsherret Mar 11, 2024

Choose a reason for hiding this comment

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

It might be fine to only enforce the wasm-bindgen version and ensure no duplicates of wasm-bindgen in the cargo metadata: rustwasm/wasm-bindgen#2913 (review)

@iuioiua iuioiua changed the title chore: remove unneeded dependency check logic chore: remove unneeded dependencies Mar 11, 2024
@iuioiua
Copy link
Contributor Author

iuioiua commented Mar 11, 2024

Closing in favour of #130.

@iuioiua iuioiua closed this Mar 11, 2024
@iuioiua iuioiua deleted the cleanup-deps-check-2 branch March 11, 2024 22:22
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.

2 participants