Felix Schütt
61ff302a67
Merge branch 'master' into capi-wasi-overwrite-stdin-3
2022-08-30 14:08:48 +02:00
Manos Pitsidianakis
056268cb58
Bring libwasmer-headless.a from 22MiB to 7.2MiB (on my machine)
...
By using lto optimization flags.
A qjs.wasm executable using the headless engine now weights 4.6MiB:
% du -sh qjs-he*.out
20M qjs-headfull.out
4.6M qjs-headless.out
2022-08-23 21:44:09 +03:00
Syrus Akbary
bb9f95b2f8
Revert "Lower libwasmer headless size"
2022-08-23 15:04:55 +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
Manos Pitsidianakis
57d918e3f5
Bring libwasmer-headless.a from 22MiB to 7.2MiB (on my machine)
...
By using lto optimization flags.
A qjs.wasm executable using the headless engine now weights 4.6MiB:
% du -sh qjs-he*.out
20M qjs-headfull.out
4.6M qjs-headless.out
2022-08-21 16:19:08 +03: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
18709f2516
Merge branch 'master' into capi-wasi-overwrite-stdin
2022-08-17 17:56:09 +02:00
Manos Pitsidianakis
45d60884c2
create-exe: add static artifact load feature to libwasmer headless
2022-08-12 18:27:54 +03:00
Manos Pitsidianakis
c570b1471a
Bump version to 3.0.0-beta in Cargo manifests
2022-08-08 19:56:35 +03:00
Wolfgang Silbermayr
7df3e3ca23
Rename {native,typed} functions, reintroduce *_with_env variants
2022-08-05 14:27:44 +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
Manos Pitsidianakis
f3fc438ffa
c-api: add functions to overwrite stdin and to write to it
...
Fixes #2334
2022-08-05 12:35:31 +02:00
Syrus Akbary
dce55432e6
Merge pull request #3052 from john-sharratt/master
...
Fixed a memory corruption issue with JS memory operations that were r…
2022-08-04 13:44:39 +02:00
Manos Pitsidianakis
83a97f5533
cli: add create-obj command
...
lib/compiler: read static object
2022-08-03 10:37:45 +03:00
Manos Pitsidianakis
430a7e2e19
Make serde optional everywhere with enable-serde feature flag
2022-08-02 15:45:28 +03:00
Johnathan Sharratt
6074045514
Merge branch 'master' into master
2022-07-31 22:01:38 +10:00
John Sharratt's Shared Account
5aa356f222
Fixed a memory corruption issue with JS memory operations that were reusing invalid views
2022-07-31 20:31:41 +10:00
Felix Schütt
b37029e437
Run cargo fmt
2022-07-30 11:31:10 +03:00
Felix Schütt
5ab5d7f963
Fix typo in map_feature_as_c_define macro
2022-07-30 11:31:10 +03:00
Felix Schütt
9f1845a2d1
Fix clippy lints and "make lint"
2022-07-30 11:31:10 +03:00
Felix Schütt
011d36829a
Bump 3.0.0-alpha.3 to 3.0.0-alpha.4
2022-07-30 11:31:08 +03:00
Felix Schütt
1c3ffffe46
Bump 3.0.0-alpha.2 to 3.0.0-alpha.3
2022-07-30 11:30:45 +03:00
Felix Schütt
02ee80cf10
Bump version to 3.0.0-alpha.2
2022-07-30 11:30:07 +03:00
Felix Schütt
6c045bff10
Bump version to 3.0.0-alpha.1 to fix botched compiler crate
2022-07-30 11:29:41 +03:00
Felix Schütt
8959008403
Update version to 3.0.0-alpha
2022-07-30 11:29:05 +03:00
Manos Pitsidianakis
8215b65494
cli: initialize wasienv memory in create-exe
2022-07-29 10:40:31 +03:00
Syrus Akbary
4384ddf9cd
Improved EngineBuilder and Store API
...
- Store::new() now takes an impl Into<Engine>.
- Added Into<Engine> impls in each of the compilers
- Updated docs/migration_to_3.0.0.md on API usage
2022-07-28 15:20:26 +03:00
Manos Pitsidianakis
214346af3b
Merge Backend into EngineBuilder and refactor feature flags
2022-07-27 21:03:24 +03:00
Manos Pitsidianakis
924d2dcf4e
Remove Universal mentions from cargo features
2022-07-25 14:45:27 +03:00