Commit Graph

115 Commits

Author SHA1 Message Date
Felix Schütt
ace2d9f329 cargo fmt 2022-10-14 12:58:18 +02:00
Felix Schütt
24228881dc Fix CI issues 2022-10-14 12:55:09 +02:00
Felix Schütt
6b5c746a06 Fix PR review comments from john 2022-10-12 07:42:35 +02:00
Felix Schütt
b20b88b04f WIP: prepare buffered reads to Pipe instead of reading data on-demand 2022-10-11 16:26:07 +02:00
Felix Schütt
28c0e9c63f cargo fmt 2022-09-28 14:35:51 +02:00
Felix Schütt
703dbce37d Fix ambigouusly named "config" and "stdin" params 2022-09-28 14:34:59 +02:00
Felix Schütt
3089d4d7fc Merge branch 'master' into capi-wasi-overwrite-stdin-3 2022-09-27 09:24:37 +02:00
Felix Schütt
72acbc8f93 cargo fmt 2022-09-19 12:28:27 +02:00
Felix Schütt
f21689d1e6 Added set_blocking method to control blocking behaviour for WasiPipe 2022-09-19 12:27:33 +02:00
Felix Schütt
0e53d2d19b Rename WasiPipePair -> WasiBidirectionalPipePair 2022-09-19 11:17:29 +02:00
Felix Schütt
1825e60b28 Rename inherit_stdout -> stdout 2022-09-19 11:06:59 +02:00
Felix Schütt
aa4b1d0684 Add bytes_available function 2022-09-19 11:03:07 +02:00
Felix Schütt
2484db9943 Address review comments to prevent leak with Arc::try_unwrap 2022-09-19 10:54:12 +02:00
Felix Schütt
7eb4d0fc7c cargo fmt 2022-09-16 00:03:13 +02:00
Felix Schütt
1895dd21bb Fix problem with wasmer-inline-c dependency 2022-09-15 23:59:03 +02:00
Felix Schütt
7e0a3b5cd6 Migrate from inline-c to wasmer-inline-c 2022-09-15 11:59:07 +02:00
Felix Schütt
6b6785ba69 Fix "make lint" 2022-09-09 13:51:20 +02:00
Felix Schütt
d840b5c5f6 Fix unit test with proper compiled .wasm file 2022-09-07 18:41:06 +02:00
Felix Schütt
1f4c46bf58 Fix stdio tests for WasiPipe (currently still failing) 2022-09-07 17:50:17 +02:00
Felix Schütt
815da05e43 Rename wasi_console_out_t to wasi_pipe_t 2022-09-06 20:10:00 +02:00
Felix Schütt
d26edf9ac6 C-API: Implement stdio override with WasiPipe instead of custom impl 2022-09-06 20:00:47 +02:00
Felix Schütt
2a5d267a2b Added WasiPipe test to test reading / writing 2022-09-06 19:35:46 +02:00
Felix Schütt
dcadaf22d8 Added intial API for creating two-channel pipes 2022-09-06 17:30:29 +02:00
Felix Schütt
8bf26a30f4 cargo fmt 2022-09-06 16:17:34 +02:00
Felix Schütt
fac6d0ff2e Added WasiPipePair to make the transition to two pipes easier 2022-09-06 15:53:12 +02:00
Felix Schütt
67ed624999 Fix make lint 2022-08-30 14:18:04 +02:00
Felix Schütt
63d709e697 Adress review comment: rename wasi_console_out_new -> wasi_pipe_new 2022-08-22 15:06:08 +02:00
Felix Schütt
6e944fa653 cargo fmt && make lint 2022-08-18 18:39:41 +02:00
Felix Schütt
b7f30c99c3 Fix errors in make test-capi 2022-08-18 18:30:57 +02:00
Felix Schütt
16f7ff7cf0 Address review changes 2022-08-18 18:13:07 +02:00
Felix Schütt
662be61c15 Implement console_io_memory using wasi::Pipe 2022-08-18 10:48:41 +02:00
Felix Schütt
df0567900c First work to translate from WasiConsoleMemoryOverride to Pipe 2022-08-17 18:50:27 +02:00
Felix Schütt
838d932bd3 Use wasi::Pipe 2022-08-17 18:24:52 +02:00
Felix Schütt
ac127d8d36 Fix clippy errors in lib/c-api/src/wasm_c_api/wasi/mod.rs 2022-08-05 12:41:55 +02:00
Felix Schütt
12247004fe Use int64_t / uintptr_t 2022-08-05 12:35:31 +02:00
Felix Schütt
2ff8d3431b Change size_t to unsigned long 2022-08-05 12:35:31 +02:00
Felix Schütt
aa27a66fc4 Fix __u_long to size_t in C API 2022-08-05 12:35:31 +02:00
Felix Schütt
ed4fb72548 cargo fmt 2022-08-05 12:35:31 +02:00
Felix Schütt
5e83b809e2 Fix C-API stdin PR: read correct amount of bytes and fix stdout cursor 2022-08-05 12:35:31 +02:00
Felix Schütt
f4ff4bcde4 Fixed stdin-capi unit test not running due to missing imports 2022-08-05 12:35:31 +02:00
Felix Schütt
dfe4e8e38d Try debuggint unit test test_wasi_stdin_set 2022-08-05 12:35:31 +02:00
Felix Schütt
8c36f06c3e Finalize API for stdin API rewrite 2022-08-05 12:35:31 +02:00
Felix Schütt
5103306ecc Added API for wasi_stdin_t 2022-08-05 12:35:31 +02:00
Felix Schütt
127e06d807 Rename "wasi_console_io_override_t" to "wasi_console_out_t" 2022-08-05 12:35:31 +02:00
Felix Schütt
660f8669b9 Fix double free() in deallocation of WasiConsoleMemoryOverride 2022-08-05 12:35:31 +02:00
Felix Schütt
d0ccb344e3 Make capi unit test functional, finalize C API 2022-08-05 12:35:31 +02:00
Felix Schütt
dccaa3f72a Fix C API 2022-08-05 12:35:31 +02:00
Felix Schütt
8e5ff7ddf6 Remove wasi_env_write_stdin 2022-08-05 12:35:31 +02:00
Felix Schütt
759b2f6198 Add (non-working) unit test 2022-08-05 12:35:31 +02:00
Felix Schütt
b1c77a1c34 Refactor overriding stdin / stdout / stderr into wasi_console_io_override_t 2022-08-05 12:35:31 +02:00