Commit Graph

1125 Commits

Author SHA1 Message Date
feb79e4392 Renamed some crates and changed their version to 0.1.0 2023-03-15 14:20:04 +01:00
f8c0910c33 Update wasmparser to v0.95 (#3682)
* Update wasmparser to v0.95

* Update lib/compiler/src/translator/module.rs

Co-authored-by: Syrus Akbary <me@syrusakbary.com>

---------

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2023-03-15 11:15:58 +01:00
ee58d7c2b2 Revert "Update wasmparser to v0.91"
This reverts commit 87232623de.
2023-03-15 01:46:26 +01:00
87232623de Update wasmparser to v0.91 2023-03-14 20:39:38 +01:00
ed3895b539 Fix doc, threads are enabled by default now (#3665)
* Fix doc, threads are enabled by default now

* Do not remove enable-thread, just mark at as deprecated
2023-03-08 12:08:19 +00:00
7ea729148f Reverted accidental Cargo.toml formatting 2023-03-06 22:56:14 +08:00
ca52b2e4f7 We can run a WCGI server locally! 2023-03-06 22:45:50 +08:00
b174d60a0f Fix the C API crate 2023-03-06 22:42:56 +08:00
649c808afe Miscellaneous refactoring and tidy-ups 2023-03-06 22:42:55 +08:00
7303fabf35 Started adding a WcgiRunner implementation to the wasmer-wasi crate 2023-03-06 22:34:15 +08:00
7d409f8b07 Upgraded everything to use webc v5 2023-03-06 22:30:51 +08:00
4d0460e2c6 Merge remote-tracking branch 'origin/master' into wasix 2023-02-22 11:15:16 +01:00
34c5bfe124 c-api: wasi_env_delete now cleans up the WasiEnv state
Needed for proper cleanup of state.
2023-02-22 11:04:31 +01:00
b42cd59814 Use default_fs_backing() filesystem for c-api Wasi config 2023-02-21 18:00:01 +01:00
0a2137f891 Fix WASI example that initialized wasi_config 2 times 2023-02-21 09:35:37 +08:00
9a5dd9fe46 Added a standard file that allows for writes to be intercepted - used by the runtime debugging in Deploy 2023-02-20 14:43:13 +11:00
d8c5736e91 Fixed the unit tests around the pipe object 2023-02-20 14:06:22 +11:00
195ea89841 wasi: Rename BidiPipe to DuplexPipe and add helper methods
* Rename BidiPipe to DuplexPipe, because the name is better
* Make the fields private: gives us more flexibility in the future
* Add a split() method and accessors for send and receive
2023-02-16 20:14:59 +01:00
f0dbbc7d72 fix: Add missing import in c_api
Was forgotten during restoring a function from master.
2023-02-16 12:57:50 +01:00
30dc848de8 c-api: Restore wasi_env_set_memory function
Not supported anymore, but better to have it panic instead of just
breaking the API by removing it.
2023-02-15 17:46:10 +01:00
e46c2e6c4b build(c-api): Enable more feature on the wasi dependency
Needed for things to work properly
2023-02-15 14:05:50 +01:00
2cfe241c6a refactor: Rename WasiPipe to Pipe and WasiBidirectionalPipePair to BidiPipe
The vfs is not directly tied to WASI, so naming it after wasi makes no
sense.
2023-02-10 20:22:51 +01:00
7e6a33deaa Rename WasiEnvBuilder::build_func_env back to finalize
Reduce API breakage.
2023-02-09 15:09:56 +01:00
c323919cc4 fix: Fix c-api webc_runner feature
Needed wasi updates
2023-02-09 14:47:09 +01:00
633e18f001 fix: Update c-api to wasi changes
Some builder changes etc
2023-02-09 14:42:43 +01:00
ab99b2cb22 build: Enable sys-thread feature for wasi dep in c-api
It's required at the moment to do anything useful with WASI(X)
2023-02-08 19:52:05 +01:00
c01b8b1a1b fix: Enable wasi/sys-thread feature for c api
Because we are using Tokio and Tokio is our only tested async implementation.
2023-02-08 17:11:10 +01:00
956ad2821a Improve WasiBuilder API
First step in improving the wasi module construction flow.
Lots of steps to follow.
2023-02-08 12:54:08 +01:00
9813ba93f9 wasi: Rename WasiStateBuilder to WasiEnvBuilder
Preparation for removing the two-step construction with WasiState and
WasiEnv
2023-02-07 15:08:11 +01:00
7f8c0858b3 Merge remote-tracking branch 'origin/master' into wasix 2023-02-07 11:38:04 +01:00
1387363a7b Fix/compile not in memory (#3573)
* Example of allocated artifact
* Better error when Instancing fail because of OS/Arch issue
* Add missing brnach for new error
---------

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2023-02-06 10:28:39 +01:00
ffefa2319a fix: Upgrade c-api to use new WasiPipe implementation
Need to use WasiBidirectionalPipePair to allow accessing the stdout/stderr.
2023-01-30 17:38:37 +01:00
d1bae195b3 Merge remote-tracking branch 'origin/master' into wasix 2023-01-23 22:00:16 +01:00
4b9389cdaa Release 3.2.0-alpha.1 2023-01-23 12:52:43 +01:00
576074914a Renamed all WasiState::new() calls 2023-01-16 15:43:16 +00:00
8ca8db8134 Merge remote-tracking branch 'origin/master' into wasix 2023-01-13 09:48:40 +01:00
26b43fee27 Merge branch 'master' into wasix-core-changes 2023-01-05 21:32:17 +01:00
b5b0d04feb Merge remote-tracking branch 'origin/master' into wasix-core-changes 2023-01-02 10:48:26 +01:00
9c0da24d2e Merge remote-tracking branch 'origin/master' into wasix 2023-01-02 09:33:31 +01:00
07a42c45e7 Merge branch 'master' into multi-command-exe 2023-01-02 08:28:48 +01:00
a092648744 Merge branch 'master' into fast-ci 2022-12-30 11:20:12 +01:00
1a572f976b Remove support for wasmer-headless for now, remove -lunwind 2022-12-29 20:50:25 +01:00
8806c67635 Fix actual error with strstr 2022-12-29 19:01:00 +01:00
f3d0902f68 Fix multi-command-exe test 2022-12-29 17:56:32 +01:00
a6fa558e8a Merge branch 'wasix-core-changes' into wasix 2022-12-27 15:08:37 +01:00
b873f0fe1a Fix make lint 2022-12-23 14:03:18 +01:00
a499deadeb Bump webc to 4.0.0
The earlier 0.4.1 downgrade was a "hack".
There alrady is a 3.x version that was used previously, but is broken.
We replaced that with 0.4.1, which was the latest publish, but we can't
downgrade to a previous version...

So 0.4.1 was re-relased as 4.0.0.
2022-12-22 16:38:05 +01:00
cfa3bf4200 Merge remote-tracking branch 'origin/master' into wasix-core-changes 2022-12-22 13:51:14 +01:00
3672e03f96 Merge branch 'master' into multi-command-exe 2022-12-22 11:40:38 +01:00
1d4bc0446c Fix make lint / remove unnecessary code 2022-12-19 12:05:55 +01:00