Commit Graph

9362 Commits

Author SHA1 Message Date
Johnathan Sharratt
48e4fd346c Fixes a bug which causes libc to thrash the futex_wake_all because it thinks the wake has failed when it has actually succeeded 2023-03-29 11:10:27 +00:00
Christoph Herzog
08d61086cd Bump wasmer-registry crate to 4.2 2023-03-29 00:36:44 +02:00
Christoph Herzog
f39c1509ec Allow publishing packages without a module
Modify the Wasmer package build logic to allow packages without a
module.

These packages are perfectly valid and useful (pure fs package, module
comes from dependencies, ...)
2023-03-29 00:26:53 +02: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
Michael-F-Bryan
f994352432 Added a hack so the cgi crate can serve requests 2023-03-28 19:39:25 +08:00
Michael-F-Bryan
b9dd318c02 added more logging 2023-03-28 19:35:48 +08:00
Michael-F-Bryan
83bec095cf wapm2pirita nests all annotations under a key with the same name as the runner 2023-03-28 19:35:32 +08:00
Syrus Akbary
26239caff0 Multiple fixes 2023-03-26 22:54:34 -07:00
Syrus Akbary
5ed77dacf9 Revert "Move memory store cloning into the wasmer crate"
This reverts commit a5500fbc6f.

# Conflicts:
#	lib/api/src/externals/memory.rs
#	lib/wasi/src/runtime/task_manager/tokio.rs
#	lib/wasi/src/syscalls/wasix/thread_spawn.rs
2023-03-26 22:13:31 -07:00
Syrus Akbary
a9315820a1 Fix toml 2023-03-26 19:59:51 -07: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
Michael-F-Bryan
0114fdda27 Forgot to give the file read permissions 2023-03-24 22:08:14 +08:00
Michael-F-Bryan
60d1b0cf63 Made clippy happy 2023-03-24 22:08:02 +08:00
Michael-F-Bryan
b6255313f5 Extract WASI-based runner code into its own module 2023-03-24 21:40:03 +08:00
Michael-F-Bryan
0f6b2219cf Hacks to make Python work 2023-03-24 21:40:03 +08:00
Michael-F-Bryan
ececb4d408 Add directory mapping back in 2023-03-24 21:40:03 +08:00
Michael-F-Bryan
07956e799a Modified the #[tracing::instrument] annotations to properly log their values 2023-03-24 21:40:02 +08:00
Michael-F-Bryan
9ec190e232 Added a tracing filesystem and more logs 2023-03-24 21:40:02 +08:00
Michael-F-Bryan
e6550b1004 Added tests to reproduce the absolute/relative path weirdness 2023-03-24 21:40:02 +08:00
ptitSeb
c9743a03f1 Fixes post 3.2.0-beta.1 release (but needed for the crates publication) (#3705) 2023-03-23 20:26:50 +01:00
ptitSeb
d58d158897 Release 3.2.0-beta.1 2023-03-22 19:14:57 +01: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
ptitSeb
a72e655be6 Added back all removed function for Engine to avoid API breaking changes (#3700) 2023-03-22 12:16:35 +01:00
Michael-F-Bryan
7b49f56552 The wat2wasm runner test needs an argument 2023-03-22 01:39:08 +08: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
897bc6d90b Ran rustfmt 2023-03-22 01:36:18 +08:00
Michael-F-Bryan
ab12f1490e Ripped out the union fs stuff
The WasiRunner's filesystem now only has access to volumes from its container.

The WcgiRunner's filesystem now only has access to mapped directories.
2023-03-22 01:36:14 +08:00
Michael-F-Bryan
9171c596d5 Use external knowledge when preopening dirs instead of traversing the fs 2023-03-22 01:33:22 +08:00
Michael-F-Bryan
702972fb10 Reuse unioned_filesystem() for WCGI 2023-03-22 01:31:55 +08:00
Michael-F-Bryan
e2a933c83b Reading from a WebCFile never advanced its cursor 2023-03-22 01:31:17 +08:00
Michael-F-Bryan
2ba16b317e Updated to use the OverlayFileSystem 2023-03-22 01:31:17 +08:00
Michael-F-Bryan
14f27b9f37 Trying to use UnionFS 2023-03-22 01:31:17 +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
2cd726301e Added tests for constructing the WASI runner's fs 2023-03-22 01:30:03 +08:00
Michael-F-Bryan
6716e14000 Added some more tests to pinpoint why the volume filesystem isn't loading 2023-03-22 01:27:14 +08:00
Michael-F-Bryan
ee3d263172 Added the webc fs to the WASI runner 2023-03-22 01:27:14 +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