Commit Graph

9362 Commits

Author SHA1 Message Date
Michael-F-Bryan
ca52b2e4f7 We can run a WCGI server locally! 2023-03-06 22:45:50 +08:00
Michael-F-Bryan
b174d60a0f Fix the C API crate 2023-03-06 22:42:56 +08:00
Michael-F-Bryan
649c808afe Miscellaneous refactoring and tidy-ups 2023-03-06 22:42:55 +08:00
Michael-F-Bryan
cb0cea4653 Got the WASI and WCGI tests passing 2023-03-06 22:40:08 +08:00
Michael-F-Bryan
124dacfd7d Remove the (now redundant) wcgi-runner crate 2023-03-06 22:40:00 +08:00
Michael-F-Bryan
d09b6a512d Fleshed out the WCGI runner integration test 2023-03-06 22:34:17 +08:00
Michael-F-Bryan
91a8d4c598 Wrote integration tests for the WASI and WCGI runners 2023-03-06 22:34:17 +08:00
Michael-F-Bryan
7c8c67deb2 Copied the original WCGI runner code into the wasmer_wasi::runner format 2023-03-06 22:34:17 +08:00
Michael-F-Bryan
7303fabf35 Started adding a WcgiRunner implementation to the wasmer-wasi crate 2023-03-06 22:34:15 +08:00
Michael-F-Bryan
e3aca2f192 Moved the WapmContainer into its own module so we can abstract over WEBC v1 2023-03-06 22:30:51 +08:00
Michael-F-Bryan
7d409f8b07 Upgraded everything to use webc v5 2023-03-06 22:30:51 +08:00
Michael-F-Bryan
489108de4e Made lints happy and got tests working again 2023-03-06 22:26:35 +08:00
Michael-F-Bryan
b2402e3560 Move the wcgi-runner crate into the Wasmer repo 2023-03-06 22:26:35 +08:00
Johnathan Sharratt
5c2f00119f Added the new thread start routines 2023-03-07 00:19:16 +11:00
Christoph Herzog
b761c829b6 fix(wasi): Memory leak due to cyclical WasiControlPlane references
Fixed by WasiProcess just storing a Weak<> handle to the control plane.

Note: This could/should also be changed so that the WasiProcess does not
have a handle to the control plane at all, but that requires some
slightly bigger refactoring that also changes or removes the SignalHandlerAbi

Closes #3642
2023-03-06 08:30:05 +00:00
Christoph Herzog
6fb803a063 deps: Remove unused tempfile dependency fro cli-compiler 2023-03-06 07:59:16 +00:00
Christoph Herzog
5e73761c22 deps: Remove tempdir dependency
We already depend on `tempfile`, which also provides temp dir
functionality.

This gets rid of a cargo-deny error due to a race condition in
remove_dir_all, which is a dependency of the removed "tempdir" crate.

Also bumps the minimum tempfile version in Cargo.toml files to be
consistent.
2023-03-06 07:59:16 +00:00
Syrus Akbary
acd0f1fcd3 Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/js/mem_access.rs
#	lib/api/src/lib.rs
#	lib/api/src/mem_access.rs
#	lib/api/src/ptr.rs
2023-03-05 20:25:51 -08:00
ptitSeb
dbbaf1bc6f Merge branch 'master' into feat_llvm_14 2023-03-04 10:18:10 +01:00
Syrus Akbary
6ac35fd241 Fix linting 2023-03-03 19:20:29 -08:00
Syrus Akbary
8cbd9b6982 Added extra comments on what can be Send/Sync 2023-03-03 13:50:15 -08:00
Johnathan Sharratt
f365bb67d0 Added extra debug information on the closing of files 2023-03-04 07:57:52 +11:00
Johnathan Sharratt
010e7a2e99 Added the missing join flags to proc_join 2023-03-04 05:31:18 +11:00
Johnathan Sharratt
1eba7cffb0 Fixed the proc_join syscall 2023-03-04 04:41:47 +11:00
Johnathan Sharratt
e39c438dfa Staging changes ready for WASIX syscall changes 2023-03-04 03:37:36 +11:00
Johnathan Sharratt
dd8c902e4c Fixed the signals and error codes 2023-03-03 23:33:06 +11:00
ptitSeb
fd0b906524 Upgrade LLVM to 14.0 2023-03-03 12:08:35 +01:00
Johnathan Sharratt
09dcef2b70 Merge remote-tracking branch 'origin' into zero-mem-copy 2023-03-03 17:58:07 +11:00
Johnathan Sharratt
f9296e4e57 Lint fixes 2023-03-03 17:57:01 +11:00
Johnathan Sharratt
d4601028ef Merge branch 'master' into zero-mem-copy 2023-03-03 17:56:06 +11:00
Johnathan Sharratt
59b37e4b75 Fixed for the JS version 2023-03-03 17:52:05 +11:00
Johnathan Sharratt
f1c31c65ca All IO operates are now zero copy when on non-browsers while browsers still copy bytes 2023-03-03 16:04:09 +11:00
Syrus Akbary
69f5ec3981 Fixed missing api 2023-03-02 15:14:48 -08:00
Syrus Akbary
01dc38e677 Improved BigInt support 2023-03-02 14:28:23 -08:00
Syrus Akbary
61ca01d341 Fix linting errors 2023-03-02 14:26:06 -08:00
Syrus Akbary
7440c428a7 Trying to add support for BigInt 2023-03-02 14:05:26 -08:00
Syrus Akbary
9719630f0a Improved linting 2023-03-02 11:49:00 -08:00
Syrus Akbary
1c3f9663b5 Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/js/externals/global.rs
#	lib/api/src/js/vm.rs
#	lib/cli/src/commands/create_exe.rs
#	lib/wasi/src/bin_factory/exec.rs
#	lib/wasi/src/bin_factory/module_cache.rs
#	lib/wasi/src/os/console/mod.rs
#	lib/wasi/src/runtime/task_manager/mod.rs
2023-03-02 11:46:17 -08:00
Syrus Akbary
464af8d95d Update lib/wasi/src/os/console/mod.rs 2023-03-02 18:47:53 +00:00
Syrus Akbary
5df2cbf665 Update lib/wasi/src/os/console/mod.rs
Co-authored-by: Christoph Herzog <chris@theduke.at>
2023-03-02 18:47:53 +00:00
Johnathan Sharratt
5646a4d050 Last fixes to restore web functionality 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
e9564d2439 Fixed a bug on the process join callback and the globals 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
a2d007b139 Restored the uses package dependencies 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
73a62a6ce3 Fixed an issue where tokio time was being used inside JS runtimes which is not supported 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
10c6c0b658 Fixed an issue where the globals were not being properly captured and restored for JS 2023-03-02 18:47:53 +00:00
Syrus Akbary
0486e38299 Fixed missing memory export in WASI as the API got simplified 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
e2276c1e7e The VMMemory must be convertable into a JsValue 2023-03-02 18:47:53 +00:00
Johnathan Sharratt
52bf78eb37 Added some fixes for the browser version to work again 2023-03-02 18:47:53 +00:00
ptitSeb
a0b530b070 Removed choice for object-format in create-exe and create-obj commands (#3636)
* Removed choice for object-format in create-exe and create-obj commands (and related tests)
* Removed create-obj testing for Symbol object type
* Small change to have intermediary variable instead of a big Some(_)
2023-03-02 10:38:44 +00:00
Christoph Herzog
c7c9c8c8c1 fix(wasi): WsaiThreadRunGuard: Don't overwrite finished state
Do not overwrite the finished state if the task already has a result.

Prevents mistakenly propagating errors from the WasiThreadRunGuard drop
implementation.
2023-03-02 09:43:04 +00:00