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

Bump dependencies to latest. #243

Merged
merged 3 commits into from
Mar 1, 2024
Merged

Conversation

peterhuene
Copy link
Member

@peterhuene peterhuene commented Mar 1, 2024

This includes a breaking change from wit-bindgen that reintroduces the generated export! macro.

The settings under [package.metadata.component.bindings] have changed as a result:

  • The implementor setting has been removed as it is now explicitly specified via the export! macro.
  • The resources setting has been removed as it is now specified via trait associated types.
  • Introduced the format setting (defaults to true) to control whether or not the generated bindings are run through rustfmt.

Additionally, cargo component new has been updated to use wit-bindgen-rt as a dependency rather than a feature-gated wit-bindgen dependency; this is also a breaking change.

These breaking changes will be documented heavily in the release notes.

This includes a breaking change from `wit-bindgen` that reintroduces the
generated `export!` macro.

The settings under `[package.metadata.component.bindings]` have changed as a
result:

* The `implementor` setting has been removed as it is now explicitly specified
  via the `export!` macro.
* The `resources` setting has been removed as it is now specified via trait
  associated types.
* Introduced the `format` setting (defaults to `true`) to control whether or
  not the generated bindings are run through `rustfmt`.
This commit updates `cargo component new` to use the new `wit-bindgen-rt` crate
as a dependency.
Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

Looks great!

@peterhuene peterhuene merged commit 0aebabd into bytecodealliance:main Mar 1, 2024
6 checks passed
@peterhuene peterhuene deleted the bump-deps branch March 1, 2024 23:52
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.

cargo component new in Workspace no longer works (wit-bindgen v0.19.1)
2 participants