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

Use original artifact name when generating intermediate files #685

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

ctron
Copy link
Collaborator

@ctron ctron commented Jan 26, 2024

Using the hashed name will lead to a lot of intermediate files which need cleanup. Without really serving much purpose, as the files will never be re-used.

Closes: #659

@ctron ctron marked this pull request as draft January 26, 2024 15:58
@ctron
Copy link
Collaborator Author

ctron commented Jan 26, 2024

Ok, there's a problem with this approach: the "wasm name" in used in the loader JS script created by wasm-bindgen. So it needs to know the name of the hashed wasm file.

@ctron ctron marked this pull request as ready for review January 26, 2024 16:02
@ctron
Copy link
Collaborator Author

ctron commented Jan 26, 2024

On the other hand, we provide the name when loading.

@ctron ctron force-pushed the feature/fix_659_1 branch from 235508d to b444428 Compare January 29, 2024 07:07
ctron added 2 commits January 29, 2024 18:11
Using the hashed name will lead to a lot of intermediate files which
need cleanup. Without really serving much purpose, as the files will
never be re-used.

Closes: trunk-rs#659
@ctron ctron force-pushed the feature/fix_659_1 branch from b444428 to 1dc6d7a Compare January 29, 2024 17:12
@ctron ctron merged commit f90bed3 into trunk-rs:main Jan 30, 2024
5 checks passed
@ctron ctron deleted the feature/fix_659_1 branch January 30, 2024 07:33
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.

Improvement: Use the original artifact name instead of hashed name for wasm-opt and wasm-bindgen.
1 participant