Skip to content

Releases: bytecodealliance/cargo-component

v0.5.0

21 Nov 19:24
3cc42eb
Compare
Choose a tag to compare

⚠️ Breaking changes ⚠️

  • WIT files now require semicolons at the end of most lines.

Compatibility

  • Wasmtime: 15.0.0
  • Warg (registry support): 0.2.0

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.1

07 Nov 18:21
2c772f3
Compare
Choose a tag to compare

Compatibility

  • Wasmtime: 14.0.0
  • Warg (registry support): 0.2.0

What's Changed

This release contains a fix for unused code warnings come from bindings, usually as a result of having unused imported functions.

Full Changelog: v0.4.0...v0.4.1

v0.4.0

27 Oct 22:12
821c329
Compare
Choose a tag to compare

⚠️ Breaking changes ⚠️

Mismatched crate versions

This release of cargo-component contains a breaking change that will lead to build errors if you build a component that uses a mismatched version of the cargo-component-bindings crate.

If cargo-component detects a mismatched version, it will print a warning for each manifest in your workspace with an incompatible version.

To correct the issue, please update the version of the cargo-component-bindings dependency in your Cargo.toml to 0.4.0.

We plan to introduce a cargo-component subcommand to automate upgrades in the future.

Arguments to cargo_component_bindings::generate!

If you are currently passing arguments to the cargo_component_bindings::generate! macro, the macro no longer accepts arguments and will error if arguments are passed.

To correct this issue, please move any arguments to the [package.metadata.component.bindings] table in your Cargo.toml.

The supported settings are:

  • implementor: The name of the type to implement world exports on.
  • resources: A map of resource names to resource implementor types.
  • ownership: The ownership model to use for generated types.
  • derives: Additional derive macro attributes to add to generated types.

Compatibility

  • Wasmtime: 14.0.0
  • Warg (registry support): 0.2.0

What's Changed

This release contains improvements to component build times by reducing the number of dependencies required to build a component.

Additionally, rust-anzlyzer support is fixed, so changes to local WIT files should now be reflected when rust-analyzer re-parses Rust source code (i.e. on save of an .rs file or after a cargo component invocation).

The "go to definition" functionality provided by rust-analyzer now works with bindings types as we now generate a source file for the definitions rather than relying on a macro expansion.

The prebuilt artifacts associated with the release are now much smaller.

Full Changelog: v0.3.1...v0.4.0

v0.3.1

25 Oct 21:28
d9c7730
Compare
Choose a tag to compare

Compatibility

  • Wasmtime: 14.0.0
  • Warg (registry support): 0.2.0

What's Changed

Full Changelog: v0.3.0...v0.3.1

dev: chore: publish binaries (#161)

07 Jan 17:56
df0c2e4
Compare
Choose a tag to compare
Pre-release

Published artifacts from the latest build

v0.3.0

25 Oct 20:46
5cddf6d
Compare
Choose a tag to compare

Compatibility

  • Wasmtime: 14.0.0
  • Warg (registry support): 0.2.0

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

07 Oct 17:45
fad0e97
Compare
Choose a tag to compare

Compatibility

  • Wasmtime: 13.0.0
  • Warg (registry support): 0.1.0

What's Changed

This is the first release of cargo-component and the wit tool.

cargo-component

Released as version 0.2.0 and is compatible with the WASI interfaces supported by Wasmtime 13.

Note: cargo-component accidentally used version 0.1.0 as a placeholder release to squat the crate name; that version is non-functional.

wit

Released as version 0.1.0.

Both tools support warg registries with client version 0.1.0.

Full Changelog: https://github.com/bytecodealliance/cargo-component/commits/v0.2.0