Skip to content

Expand the set of constructors of bindgen!-generated bindings#9177

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:more-ctors
Aug 28, 2024
Merged

Expand the set of constructors of bindgen!-generated bindings#9177
alexcrichton merged 2 commits intobytecodealliance:mainfrom
alexcrichton:more-ctors

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit expands the set of supported constructors for bindgen! generated structures with the goal of bringing back World::new(&mut store, instance). This method was removed previously in a refactoring to add *Pre structures but refactoring preexisting code to use *Pre isn't always easy, so these extra generated bindings provide a smoother migration path for code from before.

This commit expands the set of supported constructors for `bindgen!`
generated structures with the goal of bringing back
`World::new(&mut store, instance)`. This method was removed previously
in a refactoring to add `*Pre` structures but refactoring preexisting
code to use `*Pre` isn't always easy, so these extra generated bindings
provide a smoother migration path for code from before.
@alexcrichton alexcrichton requested a review from a team as a code owner August 28, 2024 14:39
@alexcrichton alexcrichton requested review from pchickey and removed request for a team August 28, 2024 14:39
@alexcrichton alexcrichton added this pull request to the merge queue Aug 28, 2024
Merged via the queue into bytecodealliance:main with commit 99d861c Aug 28, 2024
@alexcrichton alexcrichton deleted the more-ctors branch August 28, 2024 16:59
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