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

Migrate wasm-bindgen-cli to clap #4354

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Migrate wasm-bindgen-cli to clap #4354

merged 1 commit into from
Dec 15, 2024

Conversation

daxpedda
Copy link
Collaborator

This PR migrates wasm-bindgen-cli, wasm-bindgen-test-runner and wasm2es6js to clap.

wasm-bindgen-test-runner was parsing arguments in JS, this is now moved into the CLI via clap and is passed into JS fully parsed.

@@ -139,8 +137,7 @@ pub fn execute(
.env("NODE_PATH", env::join_paths(&path).unwrap())
.arg("--expose-gc")
.args(&extra_node_args)
.arg(&js_path)
.args(args),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I assume at some point this was used to be able to pass arguments into Node.js/Deno. But this was already not functional because when wasm-bindgen-test-runner started parsing arguments in JS it would fail during runtime.

@daxpedda daxpedda merged commit 7e5f2f1 into rustwasm:main Dec 15, 2024
67 checks passed
@daxpedda daxpedda mentioned this pull request Dec 15, 2024
daxpedda added a commit to daxpedda/wasm-bindgen that referenced this pull request Dec 19, 2024
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.

1 participant