Commit Graph

820 Commits

Author SHA1 Message Date
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
Manos Pitsidianakis
b15e8c2e4e Refactor last traces of "Universal" nomenclature 2022-07-25 13:23:16 +03:00
Manos Pitsidianakis
4a06b1d3f6 Rename engine's Universal type to Backend
The Universal type was essentially a builder of engines that's given a
compiler backend and creates an Engine with .engine() method. The name
was not clear.
2022-07-25 13:23:13 +03:00
Manos Pitsidianakis
51be5d0860 Rename UniversalEngine to Engine 2022-07-25 13:21:41 +03:00
Manos Pitsidianakis
987a90c0dc Remove Engine trait 2022-07-25 13:19:32 +03:00
Syrus Akbary
a419ccdf52 Move Webassembly objects to Store and remove Context
Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
eed0327101 Update c-api examples to Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
62f07efb08 c-api: Add wasm_*_same functions to global,memory,table 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
34a6511e16 Port C API to new Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
0417111ada lib/c-api: update cbindgen dependency 2022-07-19 15:31:51 +03:00
ptitSeb
d3d363bab2 Migrated WASI and WAST to Wasmer 3.0 API
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
2022-07-19 15:31:51 +03:00
Amanieu d'Antras
738a66f719 Implement the new Context API for the core API
Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
2022-07-19 15:31:51 +03:00