Michael-F-Bryan
b2b35e5ae6
Make clippy happy
2023-04-13 23:44:23 +08:00
Christoph Herzog
97136b111c
deps: Remove duplicate webc dependencies
...
These were introduced by an older version of targz-to-pirita depending
on an older wasmer-registry
2023-04-13 23:44:23 +08:00
Michael-F-Bryan
63333037cf
Update the runner trait to accept a webc::Container
2023-04-13 23:44:22 +08:00
Syrus Akbary
9a29c388b7
Fixed wasi command
2023-04-04 19:12:47 -07:00
Syrus Akbary
ef27bcdeff
Fixed tests
2023-04-04 17:34:59 -07:00
Syrus Akbary
53aa9ba456
Addressed comment from Michael
2023-04-04 01:03:13 -07:00
Syrus Akbary
f8b9e87bf4
Fixed lint, again
2023-04-04 00:25:44 -07:00
Syrus Akbary
4e7a6ed108
Use cache in runners
2023-04-04 00:17:15 -07:00
Christoph Herzog
9579240c21
Switch wasi module cache and CLI to use validated module deserialization
...
Prevents undefined behaviour when loading modules.
This is a much saner/safer default option, since loading modules without
validation can cause UB and segfaults.
2023-03-31 13:01:58 +00:00
Syrus Akbary
01a34e292f
Merge branch 'master' into master-with-fixes
2023-03-29 13:29:13 -07:00
Michael-F-Bryan
6d8cf2bbb7
Print out the server URL on startup
2023-03-29 21:29:17 +08:00
Michael-F-Bryan
b6e28bf49e
Revert some changes we don't want
2023-03-29 21:29:17 +08:00
Syrus Akbary
fc59e812f5
Allow to receive custom configuration
2023-03-29 21:29:17 +08:00
Christoph Herzog
7291ea6935
docs(cli): Fix doc comment on publish command
...
Add a sensible message...
2023-03-29 00:26:53 +02:00
Christoph Herzog
727535774b
refactor: Move package build + publish logic to registry
...
Moves the logic for converting a wasmer.toml package file into a tar.gz
and publishing it to the backend into the wasmer_registry crate.
2023-03-29 00:26:53 +02:00
Syrus Akbary
1031b9b1b5
Merge branch 'master' into master-with-fixes
...
# Conflicts:
# lib/c-api/Cargo.toml
# lib/cache/Cargo.toml
# lib/cli/Cargo.toml
# lib/emscripten/Cargo.toml
# lib/wasi/Cargo.toml
2023-03-26 19:55:33 -07:00
ptitSeb
7500ce76fc
Feat riscv llvm and cranelift ( #3244 )
...
* Basic changes for RISC-V support
* RISC-V in compiler LLVM
* RISC-V support in dylib engine
* RISC-V support in universal engine
* Various small fixes
* [RISCV] LLVM-riscv working, with some ignored tests to be worked on later
* Update rustc to 4.65 (1.64 has some issue with riscv64 target)
* Fixed some (new) Linting issues
* Updated Cargo.toml and remove split-debuginfo for Windows build
* Removed profile.dev from Cargo.toml as it cannot be per platform (breaks Windows). split-debug info is now the default value
* Enable Cranelift compiler for RISCV
* Update crates and fixed all the new clippy errors
* Taken review remarks into account
* Removed change from deny.toml, it's not needed anymore
* Added some more comment about llvm abi hack
* Added doc about current state of RISCV support
* Fixed (newer) linter
---------
Co-authored-by: Toru Nayuki <tnayuki@icloud.com >
2023-03-22 15:26:28 +01:00
Michael-F-Bryan
5bd69c6553
Create the checkout dir if necessary
2023-03-22 01:36:18 +08:00
Michael-F-Bryan
e80f845246
Rename "run2" to "run-unstable"
2023-03-22 01:36:18 +08:00
Michael-F-Bryan
702972fb10
Reuse unioned_filesystem() for WCGI
2023-03-22 01:31:55 +08:00
Michael-F-Bryan
27bf71e9fe
Moved MappedDirectory into the wasmer_wasi::runners module
2023-03-22 01:31:15 +08:00
Michael-F-Bryan
fa853475dc
Add more useful logs to the WCGI server
2023-03-22 01:27:13 +08:00
Michael-F-Bryan
ac7f8e53a2
Make lint
2023-03-22 01:27:13 +08:00
Michael-F-Bryan
7a55304a44
Re-worked the logic for directory mapping
2023-03-22 01:27:12 +08:00
Michael-F-Bryan
b07dd1b62e
Fixed wasmer-cache unit tests and lints
2023-03-22 01:25:43 +08:00
Michael-F-Bryan
4d53bc0b13
Implemented the logic for "wasmer run ./some/directory/"
2023-03-22 01:25:43 +08:00
Michael-F-Bryan
86134dac5a
Wired up module caching
2023-03-22 01:25:43 +08:00
Michael-F-Bryan
77e2f39afe
Logs should go to stderr
2023-03-22 01:25:42 +08:00
Michael-F-Bryan
fa53a0d589
Propagate environment variables to the WASI runner
2023-03-22 01:25:42 +08:00
Michael-F-Bryan
ad59f5a7f3
Implemented URL downloading & caching
2023-03-22 01:25:42 +08:00
Michael-F-Bryan
f21b07e8e6
Wasmer run for wasm32-unknown-unknown
2023-03-22 01:25:41 +08:00
Michael-F-Bryan
c91ec45a1b
Run WASI executables directly
2023-03-22 01:25:40 +08:00
Michael-F-Bryan
dd42d32fac
Wired up bare WEBC commands
2023-03-22 01:23:36 +08:00
Michael-F-Bryan
ab2f65c143
Added integration tests for run2
2023-03-22 01:23:35 +08:00
Michael-F-Bryan
e1c098ce53
Started implementing version 2 of "wasmer run"
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
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
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