|
Revision tags: dev, v36.0.9, v44.0.1, v43.0.2, v36.0.8, v24.0.8, v44.0.0, v43.0.1, v42.0.2, v36.0.7, v24.0.7, v43.0.0, v42.0.1, v41.0.4, v42.0.0, v40.0.4, v36.0.6, v24.0.6, v41.0.3, v41.0.2, v41.0.1, v36.0.5, v40.0.3, v41.0.0, v36.0.4, v39.0.2, v40.0.2, v40.0.1, v40.0.0, v39.0.1, v39.0.0, v38.0.4, v37.0.3, v36.0.3, v24.0.5 |
|
| #
498542c8 |
| 04-Nov-2025 |
MangoPeachGrape <[email protected]> |
c-api: wasi: Add custom callbacks for stdout/stderr (#11965)
* c-api: wasi: Add custom callbacks for stdout/stderr
Fixes #11963
* Move everything into c-api crate
* Return `ptrdiff_t`
* Smoke te
c-api: wasi: Add custom callbacks for stdout/stderr (#11965)
* c-api: wasi: Add custom callbacks for stdout/stderr
Fixes #11963
* Move everything into c-api crate
* Return `ptrdiff_t`
* Smoke test
* Use `io::Error::from_raw_os_error()`
* Fixes
* Fix
* documentation prtest:full
show more ...
|
|
Revision tags: v38.0.3, v38.0.2, v38.0.1, v37.0.2, v37.0.1, v37.0.0, v36.0.2, v36.0.1, v36.0.0, v35.0.0, v24.0.4, v33.0.2, v34.0.2, v34.0.1, v33.0.1, v24.0.3, v32.0.1, v34.0.0, v33.0.0, v32.0.0, v31.0.0, v30.0.2, v30.0.1, v30.0.0, v29.0.1, v29.0.0, v28.0.1, v28.0.0, v27.0.0 |
|
| #
5e5ad780 |
| 14-Nov-2024 |
Jesse Rusak <[email protected]> |
Use enum for directory/file permissions to make generated bindings easier to use (#9598)
* Use enum for directory/file permissions to make generated bindings easier to use
* Clarify names to emphas
Use enum for directory/file permissions to make generated bindings easier to use (#9598)
* Use enum for directory/file permissions to make generated bindings easier to use
* Clarify names to emphasize these are or-able flags
show more ...
|
|
Revision tags: v26.0.1, v25.0.3, v24.0.2, v26.0.0 |
|
| #
d6ce1dde |
| 22-Oct-2024 |
AJ Alt <[email protected]> |
Add permissions to `wasi_config_preopen_dir` C API (#9477)
* Add permissions to `wasi_config_preopen_dir` C API
The current `wasi_config_preopen_dir` function does not expose the `dir_perms` and `f
Add permissions to `wasi_config_preopen_dir` C API (#9477)
* Add permissions to `wasi_config_preopen_dir` C API
The current `wasi_config_preopen_dir` function does not expose the `dir_perms` and `file_perms` parameters that were added to `preopened_dir`. This commit adds them and update the docs for those functions to reflect the current signature.
This is a prerequisite for https://github.com/bytecodealliance/wasmtime-py/issues/251
* Address review comments
* Use early return for parameters
show more ...
|
|
Revision tags: v21.0.2, v22.0.1, v23.0.3, v25.0.2, v24.0.1, v25.0.1, v25.0.0, v24.0.0, v23.0.2, v23.0.1, v23.0.0, v22.0.0, v21.0.1, v21.0.0 |
|
| #
566669ee |
| 20-May-2024 |
Alex Crichton <[email protected]> |
Refactor installation of C API and features supported (#8642)
* Refactor installation of C API and features supported
This commit overhauls and refactors the management of the building of the C AP
Refactor installation of C API and features supported (#8642)
* Refactor installation of C API and features supported
This commit overhauls and refactors the management of the building of the C API. Instead of this being script-based it's now done entirely through CMake and CMake is the primary focus for building the C API. For example building the C API release artifacts is now done through CMake instead of through a shell script's `cargo build` and manually moving artifacts.
The benefits that this brings are:
* The C API now properly hides symbols in its header files that weren't enabled at build time. This is done through a new build-time generated `conf.h` templated on a `conf.h.in` file in the source tree.
* The C API's project now supports enabling/disabling Cargo features to have finer-grained support over what's included (plus auto-management of the header file).
* Building the C API and managing it is now exclusively done through CMake. For example invoking `doxygen` now lives in CMake, installation lives there, etc.
The `CMakeLists.txt` file for the C API is overhauled in the process of doing this. The build now primarily matches on the Rust target being built rather than the host target. Additionally installation will now install both the static and shared libraries instead of just one. Additionally during this refactoring various bits and pieces of Android-specific code were all removed. Management of the C toolchain feels best left in scope of the caller (e.g. configuring `CC_*` env vars and such) rather than here.
prtest:full
* Don't use `option` for optional strings
* Invert release build check
Also adjust some indentation
* Fix more indentation
* Remove no-longer-used variable
* Reduce duplication in feature macro
show more ...
|
| #
e55fa3cc |
| 07-May-2024 |
Alex Crichton <[email protected]> |
Use WASI builder directly in C API (#8572)
* Use WASI builder directly in C API
This commit updates the C API to use the `WasiCtxBuilder` directly within `wasi_config_t` instead of buffering up the
Use WASI builder directly in C API (#8572)
* Use WASI builder directly in C API
This commit updates the C API to use the `WasiCtxBuilder` directly within `wasi_config_t` instead of buffering up the options separately. This keeps the behavior of the Rust-based API more similar to the C API and should also help resolve #8552 due to errors being returned more eagerly in the builder-based API.
This additionally makes some minor modifications to the C APIs here as appropriate.
Close #8552
* Review comments
show more ...
|
|
Revision tags: v20.0.2, v20.0.1, v20.0.0 |
|
| #
e1de17fb |
| 14-Apr-2024 |
Alex Crichton <[email protected]> |
Remove `wasi_config_preopen_socket` from C header (#8364)
This was removed in #8066
|
|
Revision tags: v17.0.3, v19.0.2, v18.0.4, v19.0.1, v19.0.0, v18.0.3, v18.0.2, v17.0.2, v18.0.1, v18.0.0, v17.0.1, v17.0.0, v16.0.0, v15.0.1 |
|
| #
f8fee938 |
| 29-Nov-2023 |
Tyler Rockwood <[email protected]> |
add clang format (#7601)
* add clang-format
We chose WebKit style because out of all the builtin styles it seems the closest to what already exists in wasmtime.
Signed-off-by: Tyler Rockwood <rock
add clang format (#7601)
* add clang-format
We chose WebKit style because out of all the builtin styles it seems the closest to what already exists in wasmtime.
Signed-off-by: Tyler Rockwood <[email protected]>
* c-api: don't reorder headers
The order here matters
Signed-off-by: Tyler Rockwood <[email protected]>
* c-api: apply clang-format
Signed-off-by: Tyler Rockwood <[email protected]>
* fiber: apply clang-format
Signed-off-by: Tyler Rockwood <[email protected]>
* runtime: apply clang-format
Signed-off-by: Tyler Rockwood <[email protected]>
* examples: apply clang format
Signed-off-by: Tyler Rockwood <[email protected]>
* tests: apply clang-format
Signed-off-by: Tyler Rockwood <[email protected]>
* ci: add clang-format checks
Signed-off-by: Tyler Rockwood <[email protected]>
* clang-format: keep braces on the same line
This is more the existing style
Signed-off-by: Tyler Rockwood <[email protected]>
* remove clang-format
Just use the tool defaults (LLVM)
Signed-off-by: Tyler Rockwood <[email protected]>
* Fix ci name
Signed-off-by: Tyler Rockwood <[email protected]>
* manually reformat a couple of comments
prtest:full
Signed-off-by: Tyler Rockwood <[email protected]>
* disable formatting for doc-wasm.h
Signed-off-by: Tyler Rockwood <[email protected]>
* manually reformat wasmtime.h
Signed-off-by: Tyler Rockwood <[email protected]>
* disable formatting
To prevent a link from being broken
Signed-off-by: Tyler Rockwood <[email protected]>
* examples: fixing build commands
Signed-off-by: Tyler Rockwood <[email protected]>
* fix parameter comment
Signed-off-by: Tyler Rockwood <[email protected]>
---------
Signed-off-by: Tyler Rockwood <[email protected]>
show more ...
|
|
Revision tags: v15.0.0, v14.0.4, v14.0.3, v14.0.2, v13.0.1, v14.0.1, v14.0.0, minimum-viable-wasi-proxy-serve, v13.0.0, v12.0.2, v11.0.2, v10.0.2, v12.0.1, v12.0.0, v11.0.1, v11.0.0, v10.0.1, v10.0.0, v9.0.4, v9.0.3, v9.0.2, v9.0.1, v9.0.0, v6.0.2, v7.0.1, v8.0.1, v8.0.0, v7.0.0, v6.0.1, v5.0.1, v4.0.1, v6.0.0 |
|
| #
de68cc17 |
| 10-Feb-2023 |
Ivan Font <[email protected]> |
Add support for WASI sockets to C API (#5624)
* Add support for WASI sockets to C API
Add support for WASI sockets in the C API by adding a new API to handle
preopening sockets for clients. This
Add support for WASI sockets to C API (#5624)
* Add support for WASI sockets to C API
Add support for WASI sockets in the C API by adding a new API to handle
preopening sockets for clients. This uses HashMap instead of Vec for
preopened sockets to identify if caller has called in more than once
with the same FD number. If so, then we return false so caller is given
hint that they are attempting to overwrite an already existing socket
FD.
* Apply suggestions from code review
Co-authored-by: Peter Huene <[email protected]>
* s/stdlistener/listener/
---------
Co-authored-by: Peter Huene <[email protected]>
show more ...
|
|
Revision tags: v5.0.0, v4.0.0, v3.0.1, v3.0.0, v1.0.2, v2.0.2 |
|
| #
348f962d |
| 02-Nov-2022 |
May B <[email protected]> |
c-api: add wasi_config_set_stdin_bytes (#5179)
* c-api: use enums for wasi_config_t stdio pipes
* c-api: add wasi_config_set_stdin_bytes
Co-authored-by: Shu <[email protected]>
|
|
Revision tags: v2.0.1, v2.0.0, v1.0.1, v1.0.0, v0.40.1, v0.40.0, v0.39.1, v0.38.3, v0.38.2, v0.39.0, v0.38.1, v0.38.0, v0.37.0, v0.36.0, v0.35.3, v0.34.2, v0.35.2, v0.35.1, v0.35.0, v0.33.1, v0.34.1, v0.34.0, v0.33.0, v0.32.1, v0.32.0, v0.31.0, v0.30.0, v0.29.0, v0.28.0 |
|
| #
7a1b7cdf |
| 03-Jun-2021 |
Alex Crichton <[email protected]> |
Implement RFC 11: Redesigning Wasmtime's APIs (#2897)
Implement Wasmtime's new API as designed by RFC 11. This is quite a large commit which has had lots of discussion externally, so for more inform
Implement RFC 11: Redesigning Wasmtime's APIs (#2897)
Implement Wasmtime's new API as designed by RFC 11. This is quite a large commit which has had lots of discussion externally, so for more information it's best to read the RFC thread and the PR thread.
show more ...
|
|
Revision tags: v0.26.1, v0.27.0, v0.26.0, v0.25.0, v0.24.0, v0.23.0, v0.22.1, cranelift-v0.69.0, v0.22.0, v0.21.0, v0.20.0, v0.19.0 |
|
| #
47a218f9 |
| 02-Jul-2020 |
Alex Crichton <[email protected]> |
Document the rest of the C API (#1959)
This commit fills out documentation for all remaining functions in the C
API, and additionally enables "warn if undocumented" which will fail CI
since warnin
Document the rest of the C API (#1959)
This commit fills out documentation for all remaining functions in the C
API, and additionally enables "warn if undocumented" which will fail CI
since warnings are also treated as errors.
show more ...
|
|
Revision tags: v0.18.0, v0.17.0, v0.16.0, v0.15.0, cranelift-v0.62.0, cranelift-v0.61.0 |
|
| #
0d5d63fd |
| 20-Mar-2020 |
Peter Huene <[email protected]> |
Support WASI snapshot0 in the C API.
This commit adds support for snapshot0 in the WASI C API.
A name parameter was added to `wasi_instance_new` to accept which WASI module is being instantiated.
Support WASI snapshot0 in the C API.
This commit adds support for snapshot0 in the WASI C API.
A name parameter was added to `wasi_instance_new` to accept which WASI module is being instantiated.
Additionally, the C# API now supports constructing a WASI instance based on the WASI module name.
Fixes #1221.
show more ...
|
|
Revision tags: cranelift-v0.60.0, v0.12.0 |
|
| #
c92bf4d8 |
| 25-Feb-2020 |
Peter Huene <[email protected]> |
Rename `wasi_config_set_std[in|out|err]`.
This commit renames `wasi_config_set_std[in|out|err]` to `wasi_config_set_std[in|out|err]_file` so we can reserve the former for when the C API supports a s
Rename `wasi_config_set_std[in|out|err]`.
This commit renames `wasi_config_set_std[in|out|err]` to `wasi_config_set_std[in|out|err]_file` so we can reserve the former for when the C API supports a stream abstraction.
show more ...
|
|
Revision tags: v0.11.0, v0.10.0 |
|
| #
ae0b4090 |
| 07-Feb-2020 |
Peter Huene <[email protected]> |
Implement WASI C API.
This commit implements an initial WASI C API that can be used to instantiate and configure a WASI instance from C.
This also implements a `WasiBuilder` for the C# API enabling
Implement WASI C API.
This commit implements an initial WASI C API that can be used to instantiate and configure a WASI instance from C.
This also implements a `WasiBuilder` for the C# API enabling .NET hosts to bind to Wasmtime's WASI implementation.
show more ...
|