RubixDev opened PR #6765 from RubixDev:c-api
to bytecodealliance:main
:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease 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 addsrlib
to thecrate-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 thewasmtime-c-api
crate in the Rust bindings.
RubixDev requested pchickey for a review on PR #6765.
RubixDev requested wasmtime-core-reviewers for a review on PR #6765.
RubixDev updated PR #6765.
alexcrichton submitted PR review.
alexcrichton merged PR #6765.
Last updated: Nov 22 2024 at 17:03 UTC