Commit Graph

1074 Commits

Author SHA1 Message Date
Bartosz 'b4rti' Gorol
e5ecddad08 Fixed doc comment in memory_view.rs (#3804)
Fixed typo in memory_view.rs
2023-04-21 06:15:41 +00:00
ptitSeb
35192b6732 Fixed API Doc generation 2023-04-20 21:56:04 +00:00
ptitSeb
844a649629 Switched to wasmer-wasix instead of wasmer-wasi in doc 2023-04-17 14:58:50 +02:00
ptitSeb
688b01825a [DOC] Removed paragraph about default-compiler, as it's doesn't exist anymore 2023-04-17 14:55:20 +02:00
Syrus Akbary
19c1655571 Fixed linting 2023-04-08 00:45:00 -07:00
Syrus Akbary
6c4ea497b9 Move all vm internals out 2023-04-08 00:37:48 -07:00
Christoph Herzog
47cc5bbf99 feat: Implement safe, checked module artifact deserialization
Enable rkyv validation of serialized module artifacts.

Required additions:
* derive the required CheckBytes trait for all types
* Add `_checked` variants of all the deserialization functions

Also enables the `strict` feature of rkyv by default.
This will ensure consistent archive binary layout across architectures
and Rust compiler versions.
2023-03-31 13:01:58 +00: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
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
6b624af5d4 Fixed some broken links that caused "cargo doc" to fail 2023-03-22 01:23:35 +08:00
Syrus Akbary
e12dd07c26 Improve docs for Wasmer module 2023-03-20 16:19:25 -07:00
Syrus Akbary
ec93db90dd Remove no longer necessary comment on js 2023-03-17 13:54:20 -07:00
Syrus Akbary
4857303dc3 Multiple fixes 2023-03-17 13:28:19 -07:00
Syrus Akbary
c3ff83a3ef Minor styling 2023-03-16 17:38:24 -07:00
Syrus Akbary
ae07aac062 Improved JS API type conversion 2023-03-16 17:37:46 -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
Syrus Akbary
a5500fbc6f Move memory store cloning into the wasmer crate 2023-03-16 15:23:16 -07:00
Johnathan Sharratt
9c20584832 Merge branch 'master' into dash-fixes-and-pthreads 2023-03-16 01:33:17 +01:00
ptitSeb
b8386fb641 Merge branch 'master' into fix_memoryview_lifetime 2023-03-15 15:59:29 +01:00
ptitSeb
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
Christoph Herzog
fb7497b2b9 Revert "Fixed js build"
This reverts commit 373ee14098.
2023-03-15 01:46:42 +01:00
Johnathan Sharratt
ca7be7a075 Merge branch 'master' into dash-fixes-and-pthreads 2023-03-15 03:24:09 +01:00
Johnathan Sharratt
46a03880d4 Merge branch 'master' into deploy 2023-03-15 03:22:44 +11:00
ptitSeb
373ee14098 Fixed js build 2023-03-14 22:54:51 +01:00
Johnathan Sharratt
8b21135ea4 Added some extra parameters to pass to the web threading pool 2023-03-12 12:56:19 +11:00
Johnathan Sharratt
e0d884b578 Fixed an issue where the exit codes were not being properly returned by forked processes and their corresponding joins 2023-03-12 06:25:07 +11:00
Johnathan Sharratt
665230f13f Improvements to the snapshot tests and added extra validation of the memory in the fork example 2023-03-12 04:36:52 +11:00
Johnathan Sharratt
1dfddf81c0 No longer causing a panic when globals are set to null in JS 2023-03-10 16:44:54 +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
5442c4844a Fixes for the dash and bash snapshot tests 2023-03-09 10:23:01 +11:00
ptitSeb
241504f200 Fixed merge issues 2023-03-08 17:22:14 +01:00
ptitSeb
4bf34da06f Merge branch 'master' into fix_memoryview_lifetime 2023-03-08 15:35:32 +01:00
ptitSeb
4059e66fb1 Fix doc build (#3668) 2023-03-08 13:40:37 +00:00
ptitSeb
627a726934 Fixed building with with just the sys feature (#3659)
Fixed building with 'cargo build --no-default-features --features=sys --manifest-path=lib/api/Cargo.toml'
2023-03-07 16:00:06 +01: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
0a31d66c95 Make WasmRef/WasmSlice access uniform 2023-03-06 20:42:14 -08:00
Syrus Akbary
07eb2f6ad7 Improved mem_access 2023-03-06 19:31:58 -08: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
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
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