alexcrichton opened PR #7172 from alexcrichton:bindgen-multiversion
to bytecodealliance:main
:
This commit fixes a bug in the
bindgen!
macro where when faced with multiple packages that differ only in version number invalid bindings were generated. The fix here is to add version number information to package module names if necessary in situations such as this. This required some refactoring internally to have a single source of truth for what the name of a module should be and avoid having it implicitly calculated in two locations.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #7172.
alexcrichton requested wasmtime-core-reviewers for a review on PR #7172.
fitzgen requested elliottt for a review on PR #7172.
elliottt submitted PR review:
I think this all makes sense! I had one suggestion about the changes to the
InterfaceName
type, but it's not a blocker.
elliottt submitted PR review:
I think this all makes sense! I had one suggestion about the changes to the
InterfaceName
type, but it's not a blocker.
elliottt created PR review comment:
It looks like this vector only ever has one or three strings in it, would it make sense to make a more precise type that names those cases?
alexcrichton submitted PR review.
alexcrichton created PR review comment:
I think that's probably a bit overkill on types for now since nothing uses this as anything other than
.join("::")
currently, but if that changes in the future I think it'd be reasonable to add yeah
alexcrichton merged PR #7172.
Last updated: Dec 23 2024 at 12:05 UTC