Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C-API: add functions to overwrite stdin / stdout / stderr handlers #3032

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f3fc438
c-api: add functions to overwrite stdin and to write to it
epilys Jul 21, 2022
b1c77a1
Refactor overriding stdin / stdout / stderr into wasi_console_io_over…
fschutt Jul 25, 2022
759b2f6
Add (non-working) unit test
fschutt Jul 26, 2022
8e5ff7d
Remove wasi_env_write_stdin
fschutt Jul 26, 2022
dccaa3f
Fix C API
fschutt Jul 26, 2022
d0ccb34
Make capi unit test functional, finalize C API
fschutt Jul 26, 2022
660f866
Fix double free() in deallocation of WasiConsoleMemoryOverride
fschutt Jul 29, 2022
127e06d
Rename "wasi_console_io_override_t" to "wasi_console_out_t"
fschutt Jul 29, 2022
5103306
Added API for wasi_stdin_t
fschutt Aug 1, 2022
8c36f06
Finalize API for stdin API rewrite
fschutt Aug 1, 2022
dfe4e8e
Try debuggint unit test test_wasi_stdin_set
fschutt Aug 1, 2022
f4ff4bc
Fixed stdin-capi unit test not running due to missing imports
fschutt Aug 2, 2022
5e83b80
Fix C-API stdin PR: read correct amount of bytes and fix stdout cursor
fschutt Aug 2, 2022
ed4fb72
cargo fmt
fschutt Aug 2, 2022
aa27a66
Fix __u_long to size_t in C API
fschutt Aug 2, 2022
2ff8d34
Change size_t to unsigned long
fschutt Aug 3, 2022
1224700
Use int64_t / uintptr_t
fschutt Aug 5, 2022
f1a3350
cargo update
fschutt Aug 5, 2022
ac127d8
Fix clippy errors in lib/c-api/src/wasm_c_api/wasi/mod.rs
fschutt Aug 5, 2022
18709f2
Merge branch 'master' into capi-wasi-overwrite-stdin
fschutt Aug 17, 2022
838d932
Use wasi::Pipe
fschutt Aug 17, 2022
df05679
First work to translate from WasiConsoleMemoryOverride to Pipe
fschutt Aug 17, 2022
662be61
Implement console_io_memory using wasi::Pipe
fschutt Aug 18, 2022
9c4bc82
Merge branch 'master' into capi-wasi-overwrite-stdin
fschutt Aug 18, 2022
16f7ff7
Address review changes
fschutt Aug 18, 2022
b7f30c9
Fix errors in make test-capi
fschutt Aug 18, 2022
a93f589
Merge branch 'master' into capi-wasi-overwrite-stdin
fschutt Aug 18, 2022
6e944fa
cargo fmt && make lint
fschutt Aug 18, 2022
63d709e
Adress review comment: rename wasi_console_out_new -> wasi_pipe_new
fschutt Aug 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Looking for changes that affect our C API? See the [C API Changelog](lib/c-api/C
## **Unreleased**

### Added
- [#3032](https://github.com/wasmerio/wasmer/pull/3032) Added C API for overwriting stdin / stdout I/O
- #[3096](https://github.com/wasmerio/wasmer/pull/3096) create-exe: use cached wasmer tarballs for network fetches

### Changed
Expand Down
Loading