Stream: git-wasmtime

Topic: wasmtime / PR #6765 Make C-API usable from Rust


view this post on Zulip Wasmtime GitHub notifications bot (Jul 25 2023 at 03:53):

RubixDev opened PR #6765 from RubixDev:c-api to bytecodealliance:main:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

This PR gives the c-api library a distinct name and adds rlib to the crate-type list, so that it can also be used from Rust. This is useful in situations like https://github.com/tree-sitter/tree-sitter/pull/1864, where a project (here tree-sitter) is mainly written in C and uses the wasmtime C library, but also provides Rust bindings. The easiest way to vendor the wasmtime C library for the tree-sitter C library during compilation of the tree-sitter Rust crate is then to simply depend on the wasmtime-c-api crate in the Rust bindings.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 25 2023 at 03:53):

RubixDev requested pchickey for a review on PR #6765.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 25 2023 at 03:53):

RubixDev requested wasmtime-core-reviewers for a review on PR #6765.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 27 2023 at 10:33):

RubixDev updated PR #6765.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2023 at 14:03):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2023 at 14:58):

alexcrichton merged PR #6765.


Last updated: Nov 22 2024 at 17:03 UTC