Commit Graph

176 Commits

Author SHA1 Message Date
ptitSeb
7fb7c09080 Release 3.2.0 2023-04-18 16:30:03 +02:00
ptitSeb
e40c6a4177 Release 3.2.0-beta.2 2023-04-05 13:25:40 +02: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
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
cf3059716e Increased CURRENT_VERSION to 3 2023-03-20 14:40:06 +01:00
Johnathan Sharratt
ea76a73fa7 Merge remote-tracking branch 'origin' into dash-fixes 2023-03-07 15:56:43 +11:00
Johnathan Sharratt
65eed0dbff Implemented the threads spec (pthreads) for WASIX 2023-03-07 04:09:23 +11:00
Syrus Akbary
9719630f0a Improved linting 2023-03-02 11:49:00 -08:00
Syrus Akbary
fc64202104 Use AtomicUsize instead of AtomicU64 2023-02-28 09:24:29 -08:00
Syrus Akbary
b47cc839cd Removed unsafe js intos 2023-02-28 09:13:28 -08:00
Syrus Akbary
826d32194d Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/js/mem_access.rs
#	lib/api/src/js/mod.rs
#	lib/api/src/sys/typed_function.rs
#	lib/wasi/src/syscalls/wasix32.rs
#	lib/wasi/src/syscalls/wasix64.rs
#	lib/wasi/src/utils/mod.rs
2023-02-24 14:13:02 -08:00
ptitSeb
c9e658e25e Update rkyv 0.7.40 and prettytable-rs to 0.10.0 (#3593) 2023-02-21 12:33:42 +01:00
Syrus Akbary
db6dd420e1 Optimized ModuleInfo usage 2023-02-16 20:44:49 -08:00
Syrus Akbary
92255601fe Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/sys/instance.rs
2023-02-11 18:19:10 -08:00
Syrus Akbary
312aaf1e16 Use RawValue for wasmer js 2023-02-10 15:11:56 -08:00
Syrus Akbary
30f4589f23 Move StoreId to common wasmer_types 2023-02-09 19:22:33 +01:00
ptitSeb
1387363a7b Fix/compile not in memory (#3573)
* Example of allocated artifact
* Better error when Instancing fail because of OS/Arch issue
* Add missing brnach for new error
---------

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2023-02-06 10:28:39 +01:00
Syrus Akbary
d09a76ec5f Use standard API for js and sys for Module. Added Engine in js 2023-01-27 17:10:54 +01:00
ptitSeb
420cde0224 Merge branch 'master' into fix_instancehandle_memoryleak 2023-01-25 14:19:19 +01:00
ptitSeb
0dc0ce1f0d Renamed InstanceHandle to VMinstance, and InstanceAllocator::write_instance to into_vminstance 2023-01-25 12:06:09 +01:00
Felix Schütt
4b9389cdaa Release 3.2.0-alpha.1 2023-01-23 12:52:43 +01:00
ptitSeb
31eb80ac02 Incremented CURRENT_VERSION, so all cache will be invalidate and be rebuilt with the 3.2 version 2023-01-20 14:14:06 +01:00
Felix Schütt
ed7f122ed5 Fixed create_exe_serialized tests 2023-01-18 20:05:31 +01:00
ptitSeb
26b43fee27 Merge branch 'master' into wasix-core-changes 2023-01-05 21:32:17 +01:00
ptitSeb
8d7190b8db Changed TODO mark about asyncify 2023-01-05 09:24:36 +01:00
Felix Schütt
33405748ca Fix duplicated WASMER_METADATA logic 2023-01-04 19:33:31 +01:00
Felix Schütt
bf37e63bba Remove last case of manual WASMER_METADATA formatting and enable LLVM 2023-01-04 19:20:21 +01:00
ptitSeb
212f836e30 Missed some sources to add a TODO mark about asynctify 2023-01-04 18:21:17 +01:00
Felix Schütt
b963d2cc54 Remove prefix from Symbol::Metadata 2023-01-04 17:12:25 +01:00
Felix Schütt
5df8789910 Add "Metadata" symbol to Symbol enum 2023-01-04 17:03:02 +01:00
Felix Schütt
d8ca009cf8 Add metadata length calculation to gen-c-header 2023-01-04 10:34:29 +01:00
ptitSeb
332ad85e94 Added TODO on asynctify code, linking to ticket #3451 2023-01-03 14:07:16 +01:00
Felix Schütt
77bc458ec7 Fix entrypoint serialization 2022-12-27 11:32:12 +01:00
Christoph Herzog
de443dcf15 Remove StoreSnapshot functionality
The StoreSnapshot isn't necessary in the public API.
Thanks to the new global accessors on StoreObjects, it is possible to
implement this externally instead.
2022-12-22 11:23:46 +01:00
Christoph Herzog
5109a407c4 WASIX Preparation
This commit extracts changes to core libraries made in the WASIX branch.

It is not reasonable to extract the partial commit history, so this is
just a batch commit.

The history will make a bit more sense again if we decide to merge the
WASIX branch with full commit history.
2022-12-16 11:47:04 +01:00
Felix Schütt
d45850733e Release 3.1.0 2022-12-12 13:38:00 +01:00
ptitSeb
30a7d61943 Merge branch 'master' into feat_sharedmemory 2022-11-29 14:39:45 +01:00
Felix Schütt
b70f6e9052 Release 3.0.2 2022-11-25 21:30:20 +01:00
ptitSeb
ffd6d6b140 Merge branch 'master' into feat_sharedmemory 2022-11-24 15:56:32 +01:00
Felix Schütt
27f3300fef Release 3.0.1 2022-11-23 01:14:06 +01:00
ptitSeb
9bbcc8a3b2 Added helper functions for WaitNotify opcodes (for #3155) 2022-11-22 14:38:25 +01:00
ptitSeb
013d63430d Enabled threads and already working tests 2022-11-22 14:11:38 +01:00
ptitSeb
525ce47aa0 Merge branch 'master' into imp_precompute_offsets 2022-11-21 17:19:29 +01:00
ptitSeb
2a6d5e7687 Merge branch 'master' into imp_limit_compilation_clone 2022-11-21 11:12:24 +01:00
Felix Schütt
dcc0164698 Release 3.0.0 2022-11-20 17:00:03 +01:00
Felix Schütt
91c2c1daea Release 3.0.0-rc.4 2022-11-19 16:21:42 +01:00
Felix Schütt
820b83e56b Update 3.0.0-rc.2 -> 3.0.0-rc.3 2022-11-18 19:50:41 +01:00
ptitSeb
3d6241236c Procompute offsets in VMOffsets 2022-11-10 11:48:19 +01:00
ptitSeb
d5be7db393 Removed commented code 2022-11-10 08:08:52 +01:00