Add wasi:http support to the C API (#12950)
Reexport pulley/all-arch through the C API (#11504)This commit adds a few more features from the Wasmtime crate to the CAPI for pulley and the all-arch option for Cranelift to supportcompiling fo
Reexport pulley/all-arch through the C API (#11504)This commit adds a few more features from the Wasmtime crate to the CAPI for pulley and the all-arch option for Cranelift to supportcompiling for multiple architectures.
show more ...
c-api: Compile a component (#10566)* c-api: Compile a componentCo-authored-by: Tyler Rockwood <[email protected]>Co-authored-by: Jean-Jacques Lafay <[email protected]>* Add docu
c-api: Compile a component (#10566)* c-api: Compile a componentCo-authored-by: Tyler Rockwood <[email protected]>Co-authored-by: Jean-Jacques Lafay <[email protected]>* Add documentation to config---------Co-authored-by: Tyler Rockwood <[email protected]>Co-authored-by: Jean-Jacques Lafay <[email protected]>
Allow setting pooling allocation in the C API (#10484)* Allow setting pooling allocation in the C API* Formatting* Switch to object-style API* Delete function* Add wasmtime_ prefix* More
Allow setting pooling allocation in the C API (#10484)* Allow setting pooling allocation in the C API* Formatting* Switch to object-style API* Delete function* Add wasmtime_ prefix* More documentation and minor fixes* Update doxygen config to exclude the WASMTIME_POOLING_ALLOCATION_CONFIG_PROP macro.
c-api: Enable debugger DWARF export for guest code (#9915)* c-api: Enable debugger DWARF export for guest codeIn order to allow source level debugging of hosted webassembly code inC-based embedd
c-api: Enable debugger DWARF export for guest code (#9915)* c-api: Enable debugger DWARF export for guest codeIn order to allow source level debugging of hosted webassembly code inC-based embeddings, we must enable the debug-builtins cargo feature whenbuilding the C api.* c-api test: assert that the debug info is createdPreviously we were testing and confirming only that the options can beset using the API, not that they actually have any effect.In order to (simply) confirm that enabling debug information actuallycreated some debug information, we can somewhat hackily inspect thegenerated GDB JIT descriptor to see that it's populated.
Add the "null" garbage collector (#9484)* Add the "null" garbage collectorThe null collector does not actually collect any garbage, it simplybump-allocates until the heap is exhausted, at which
Add the "null" garbage collector (#9484)* Add the "null" garbage collectorThe null collector does not actually collect any garbage, it simplybump-allocates until the heap is exhausted, at which point further allocationattempts will fail. It does not require any GC barriers.Users can configure which collector to use via the `wasmtime::Config::collector`method or the `-C collector=drc|null` CLI flag. The `wasmtime::Collector` enumeration,similar to the `wasmtime::Strategy` enumeration but for choosing a collectorrather than a compiler, additionally has a table summarizing the properties andcharacteristics of our current set of collector implementations.Finally, we also run `.wast` tests that exercise GC types under both the DRC andnull collectors. I tried to avoid running tests that are not related to GC underboth configurations just to avoid a combinatorial blow up.* cargo fmt* fix +gc -gc-null -gc-drc build* Fix some warnings in various cargo feature combo builds* Fix some more warnings in certain build configs* Fix unit tests for null GC* Fill in some placeholder comments that I forgot to write* Fix issues where we ask for a GC store when we don't actually need oneWhich was causing test failures, since we no longer return a GC store with adummy heap.* Add fuzzing config support for different collectors* address review feedback* fix cmake tests* Fix test compilation after rebase* Fix GC tests under MIRI
Add NEWLINE_STYLE to cmake install (#9131)Looks like CMake before 3.20.0 doesn't generate newlines at all withoutthis configuration option. CMake 3.20.0 and prior, however, generatesnewlines by d
Add NEWLINE_STYLE to cmake install (#9131)Looks like CMake before 3.20.0 doesn't generate newlines at all withoutthis configuration option. CMake 3.20.0 and prior, however, generatesnewlines by default which is why this didn't show up in CI ordevelopment.Closes #9126
Use cmake to build wasmtime-c-api (#9031)* Use cmake to build wasmtime-c-api* Properly expose features when building via cmake* Install all headers to same directory* Add vets* attempt to f
Use cmake to build wasmtime-c-api (#9031)* Use cmake to build wasmtime-c-api* Properly expose features when building via cmake* Install all headers to same directory* Add vets* attempt to fix ci* Run all tests on CIprtest:full* Set CARGO_BUILD_TARGET; add CMakeLists to package* Update comment on github action* Attempt to fix android build* Fix source dir modifications of c-api build* Re-add BINARY_DIR option* Fix build* Move header installation to a cmake scriptTry to avoid dealing with cmake configuration/platforms/etc.* Tweak build of headers* Install headers in build dir for examples* Add cmake files to dist, fix header install dir---------Co-authored-by: Alex Crichton <[email protected]>