Skip to content

Update with Wasmtime's new C API#81

Merged
alexcrichton merged 3 commits intobytecodealliance:mainfrom
alexcrichton:new-api
Jun 3, 2021
Merged

Update with Wasmtime's new C API#81
alexcrichton merged 3 commits intobytecodealliance:mainfrom
alexcrichton:new-api

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

No description provided.

This commit updates this repository to use Wasmtime's new C API as
specified by [RFC 11]. This is a breaking change for this API and
notably requires that a `Storelike` object is now passed in for many
functions, serving as the `Store` context for that method. The
implementation of memory management, however, has been greatly
simplified, now that objects within a `Store` no longer need
destructors. This should improve performance and also help avoid
reclaiming memory only at odd times.

[RFC 11]: bytecodealliance/rfcs#11
@alexcrichton alexcrichton merged commit d78e16c into bytecodealliance:main Jun 3, 2021
@alexcrichton alexcrichton deleted the new-api branch June 3, 2021 15:10
olivierlemasle added a commit to olivierlemasle/wasmtime-go that referenced this pull request Jun 3, 2021
Following the update to Wasmtime's new C API in bytecodealliance#81, the header files are now not
only in build/local, but also in build/local/wasmtime.

This commit adds the directory "build/include/wasmtime" as a valid empty go
package, like it was done in bytecodealliance#45 for the other build directories.

It also addapts `ci/local.sh` to:
- copy the additional header files in build/include/wasmtime
- stop this script from removing the "empty.go" files.
alexcrichton pushed a commit that referenced this pull request Jun 4, 2021
* Add build/include/wasmtime

Following the update to Wasmtime's new C API in #81, the header files are now not
only in build/local, but also in build/local/wasmtime.

This commit adds the directory "build/include/wasmtime" as a valid empty go
package, like it was done in #45 for the other build directories.

It also addapts `ci/local.sh` to:
- copy the additional header files in build/include/wasmtime
- stop this script from removing the "empty.go" files.

* Import build packages + add CI test for vendoring

- Import build packages, to prevent `go mod vendor` from pruning the build
  directories;
- Update download-wasmtime.py to re-create the "empty.go" files and keep
  the Go packages in "build"
- Add a CI test to check that wasmtime-go can be used by Go projects using
  dependency vendoring

* Fix for Bazel
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.

1 participant