Michael-F-Bryan
e1c098ce53
Started implementing version 2 of "wasmer run"
2023-03-22 01:23:34 +08:00
Michael-F-Bryan
db2a66110c
Miscellaneous refactoring and tidy-ups
2023-03-22 01:23:34 +08:00
Christoph Herzog
4a99b50af8
Remove PluggableRuntime::default()
...
We don't want this impl anymore, because the user should be forced to
supply the virtual task manager manually so they are cognizent of the
fact they WASIX is running on an async runtime.
2023-03-21 17:20:27 +00:00
Christoph Herzog
ffacc03ded
refactor(wasi): Rename PluggableRuntimeImplementation to PluggableRuntime
...
The *Implementation suffix is just pure noise.
2023-03-21 17:20:27 +00:00
Syrus Akbary
1940c5660b
Fix cli compiler
2023-03-17 14:26:30 -07:00
Syrus Akbary
dbe01dd1c3
Merge branch 'master' into master-with-fixes
2023-03-17 12:22:19 -07:00
Syrus Akbary
499777fc15
Merge branch 'master-with-fixes' into shared-dash-fixes-and-pthreads
...
# Conflicts:
# lib/wasi/Cargo.toml
# lib/wasi/src/runtime/mod.rs
# lib/wasi/src/runtime/task_manager/mod.rs
# lib/wasi/src/runtime/task_manager/tokio.rs
# lib/wasi/src/syscalls/wasix/proc_fork.rs
# lib/wasi/src/syscalls/wasix/thread_spawn.rs
2023-03-16 16:27:27 -07:00
Johnathan Sharratt
fc7a5ad099
Fixed the error code check - someone really needs to refactor this
2023-03-17 08:46:48 +11:00
Syrus Akbary
c00f1fda65
Fixed CLI sys
2023-03-16 14:34:05 -07:00
Syrus Akbary
9308f20707
Use singlepass in macOS M1 if available
2023-03-16 14:26:01 -07:00
Johnathan Sharratt
e2bf8deabc
Merge branch 'master' into dash-fixes-and-pthreads
2023-03-17 04:23:38 +11:00
Johnathan Sharratt
781d8616a4
Added the ability to supply ones own webc packages to wasmer
2023-03-17 03:41:19 +11:00
Johnathan Sharratt
461c208c15
Moved the process exit to after the WASI cleanup and added some flushing of stdout and stderr
2023-03-17 00:45:33 +11:00
ptitSeb
d6981ae3a9
Moved vnet-host functions inside virtual-net
2023-03-16 10:56:51 +01:00
ptitSeb
f59ab5caee
Renamed virtfs to virtual-fs and virtnet to virtual-net
2023-03-16 09:29:51 +01:00
ptitSeb
feb79e4392
Renamed some crates and changed their version to 0.1.0
2023-03-15 14:20:04 +01:00
Johnathan Sharratt
46a03880d4
Merge branch 'master' into deploy
2023-03-15 03:22:44 +11:00
ptitSeb
f19017cff2
Alows debug build of the cli to run
2023-03-13 13:53:38 +01:00
Johnathan Sharratt
a41bf19da0
Refactored the exit codes so they can be strongly typed and arbitary
2023-03-11 12:50:56 +11:00
ptitSeb
630814439e
Fixed create-exe WASI programs that will fail to exit properly
2023-03-10 14:47:29 +01:00
Johnathan Sharratt
761fff3c45
More lint and non-unix compile fixes
2023-03-10 13:57:51 +11:00
Johnathan Sharratt
6009b050f1
Fixed the joining of subprocesses which was blocking due to a race condition
2023-03-10 13:28:18 +11:00
Johnathan Sharratt
4abbec71c1
Merge remote-tracking branch 'origin/master' into dash-fixes-and-pthreads
2023-03-09 16:14:53 +11:00
Johnathan Sharratt
80b10fcba7
Updates for the review comments
2023-03-09 16:11:42 +11:00
ptitSeb
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
Christoph Herzog
5a245f8e7f
chore(cli): Replace fern logging implementation with tracing
...
No point in keeping two implementations around
2023-03-07 11:15:15 +00:00
Johnathan Sharratt
6dde2831a0
Improvements to the tracing and logging in wasmer
...
- Now using the fmt subscriber for improved formatting
- Using spans on all syscalls
- Added recorded fields on the spans instead trace and debug macros
- Adding timing on all syscall
2023-03-07 11:15:15 +00:00
Syrus Akbary
e61c206bb2
Merge branch 'master' into std-api
2023-03-06 20:50:10 -08:00
Michael-F-Bryan
e84fdf56a7
Make sure we include the WCGI feature flag
2023-03-06 23:37:15 +08:00
Michael-F-Bryan
7ea729148f
Reverted accidental Cargo.toml formatting
2023-03-06 22:56:14 +08:00
Michael-F-Bryan
e258df4dc4
Removed an unused import
2023-03-06 22:52:16 +08:00
Michael-F-Bryan
3af48f7028
Hoisted shared state into its own struct
2023-03-06 22:45:51 +08:00
Michael-F-Bryan
bd324f9fc0
Added WCGI-specific flags to the CLI
2023-03-06 22:45:51 +08:00
Michael-F-Bryan
ca52b2e4f7
We can run a WCGI server locally!
2023-03-06 22:45:50 +08:00
Michael-F-Bryan
649c808afe
Miscellaneous refactoring and tidy-ups
2023-03-06 22:42:55 +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
7303fabf35
Started adding a WcgiRunner implementation to the wasmer-wasi crate
2023-03-06 22:34:15 +08:00
Michael-F-Bryan
7d409f8b07
Upgraded everything to use webc v5
2023-03-06 22:30:51 +08: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
Johnathan Sharratt
09dcef2b70
Merge remote-tracking branch 'origin' into zero-mem-copy
2023-03-03 17:58:07 +11:00
Johnathan Sharratt
d4601028ef
Merge branch 'master' into zero-mem-copy
2023-03-03 17:56:06 +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
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
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
Syrus Akbary
a0e11bf1de
Fixed linting
2023-02-28 00:37:42 -08:00
Syrus Akbary
bef5f9e2e6
Merge branch 'master' into std-api
2023-02-28 00:33:37 -08:00
ptitSeb
2a4b9a7be1
Fix linter
2023-02-28 09:17:28 +01:00
Syrus Akbary
fe72a5ab7f
Merge branch 'master' into std-api
...
# Conflicts:
# lib/api/src/js/function_env.rs
# lib/wasi/src/bin_factory/exec.rs
2023-02-27 23:06:25 -08:00