Commit Graph

9362 Commits

Author SHA1 Message Date
Michael-F-Bryan
fa69ad434b Removed an accidental copy/paste comment 2023-04-21 15:23:41 +08:00
Michael-F-Bryan
0c46265c0d Fixed the bug 2023-04-21 15:20:03 +08:00
Michael-F-Bryan
c0389f9f74 Added some regression tests 2023-04-21 15:19:58 +08:00
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
Michael-F-Bryan
b7632f7b60 Make sure the compile function passed to runners is Send+Sync 2023-04-20 22:29:58 +08:00
Michael-F-Bryan
9143d34b9b Added a test for WEBC files with dependencies and no commands 2023-04-19 21:57:44 +08:00
Michael-F-Bryan
2164864041 Make sure loading a binary package command doesn't allocate 2023-04-19 18:25:27 +08:00
Michael-F-Bryan
02b8e42ca7 Add the transmute hack back in 2023-04-19 18:24:18 +08:00
Michael-F-Bryan
841dedbc26 Rename to load_package_from_filesystem() for clarity 2023-04-19 16:07:21 +08:00
Michael-F-Bryan
fd40efd169 Updated the BinFactory to use parse_static_webc() 2023-04-19 11:25:13 +08:00
Michael-F-Bryan
6934737626 Updated a "HACK" comment 2023-04-19 01:54:01 +08:00
Michael-F-Bryan
ed5725269f Removed the old "ownership"-based code from BinaryPackage 2023-04-19 01:50:13 +08:00
Michael-F-Bryan
5f9766ac0d Updated binary package loading to use the webc compatibility layer 2023-04-19 01:50:13 +08:00
Michael-F-Bryan
fd778e0e63 Adding tests and small refactorings to make the compat rewrite easier 2023-04-19 01:50:12 +08:00
Michael-F-Bryan
859c72b76b Remove the manifest module 2023-04-19 01:50:12 +08:00
ptitSeb
edba9d7e7b Bump some more crates 2023-04-18 17:17:23 +02:00
ptitSeb
d08d3c1c95 Updated the other crates too 2023-04-18 16:53:04 +02:00
ptitSeb
7fb7c09080 Release 3.2.0 2023-04-18 16:30:03 +02:00
Michael-F-Bryan
aa5709ab05 Upgrade to webc v5.0.0 2023-04-18 19:25:20 +08:00
Johnathan Sharratt
d42d99d626 Fixed a linting error 2023-04-16 18:14:05 +10:00
Johnathan Sharratt
5db95ca863 Corrected the specification to match wasi-threads on the return code 2023-04-16 17:00:32 +10:00
Johnathan Sharratt
e114c6969b Merge branch 'wasi-threads' of github.com:wasmerio/wasmer into wasi-threads 2023-04-16 16:53:24 +10:00
Johnathan Sharratt
2fba699cb3 Merge branch 'master' into wasi-threads 2023-04-18 00:57:26 +02: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
Johnathan Sharratt
032aeb40f8 Added missing files from last commit 2023-04-16 16:53:14 +10:00
Johnathan Sharratt
a6cde1d484 Added imports and an interop for pthreads in WASI 2023-04-16 16:35:00 +10:00
ptitSeb
2cb70e6d25 Fix Snapshot0 fd_filestat_get and path_filestat_get (#3767)
Fix Shnapshot0 fd_filestat_get and path_filestat_get to not use clobbering technique (fixes flakyness of python)
2023-04-14 15:45:08 +02:00
ptitSeb
01a8036ed9 [CI] Add RISCV in test and build (#3706)
* [CI] Add RISCV in test and build
* update Cargo lock to fix cargo deny step
* Some updates to avoid riscv incompatibilities
2023-04-14 08:46:01 +00:00
Christoph Herzog
61a32177d9 deps: Upgrade memoffset
Removes a duplicate dependency.
2023-04-13 23:11:53 +00:00
Michael-F-Bryan
0b86caa73c Remove debug prompts and delete more UNC path normalization tests 2023-04-13 23:44:24 +08:00
Michael-F-Bryan
02f4801c6b Update another normalization test 2023-04-13 23:44:24 +08:00
Michael-F-Bryan
f08296da93 ignore one of the UNC edge cases 2023-04-13 23:44:24 +08:00
Michael-F-Bryan
221c345199 switch back to webc's normalization code 2023-04-13 23:44:23 +08:00
Michael-F-Bryan
b2b35e5ae6 Make clippy happy 2023-04-13 23:44:23 +08:00
Michael-F-Bryan
292ab8504a add some dbg!() statements to debug path issues on Windows 2023-04-13 23:44:23 +08:00
Michael-F-Bryan
fcfff4f6ae Wrote webc's path normalization logic out by hand 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
9910220c0a Updating tests 2023-04-13 23:44:22 +08:00
Michael-F-Bryan
6514708912 Put the new WebcVolumeFileSystem behind a cfg flag 2023-04-13 23:44:22 +08:00
Michael-F-Bryan
4decdff7c3 add a hack so we can use relative paths with the new webc filesystem 2023-04-13 23:44:22 +08:00
Michael-F-Bryan
63333037cf Update the runner trait to accept a webc::Container 2023-04-13 23:44:22 +08:00
Michael-F-Bryan
307f3618b4 Added more normalization tests 2023-04-13 23:44:22 +08:00
Michael-F-Bryan
0f067df42b Bump to the latest webc version 2023-04-13 23:44:21 +08:00
Michael-F-Bryan
84f5d55aa2 Implemented the last of the FileSystem trait 2023-04-13 23:44:21 +08:00
Michael-F-Bryan
25bd1b3945 Added tests for normalization 2023-04-13 23:44:21 +08:00
Michael-F-Bryan
48b3c99882 Added tests for the WebcVolumeFileSystem 2023-04-13 23:44:21 +08:00
Michael-F-Bryan
721e2bec96 Started working on the WebcVolumeFileSystem 2023-04-13 23:44:20 +08:00
ptitSeb
b2170e3e4f Fix Wait/Notify opcode, the waiters hashmap is now on the Memory itself (#3723)
* Fix Wait/Notify opcode, the waiters hashmap is now on the Memory itself

* Refactored for clarity

* Use WAIT_ERROR everywhere

* Change from WAIT_ERROR to Option

* Added some unit test for threadconditions

* Switch from `Mutex<HashMap<...>>` to `DashMap<...>` for the NotifyMap

* Use FnvHasher for Dashmap

* Change timeout value in unit test to leave more margin to the system to react.

* Consolidate code, avoid duplication

* Put test in a test module

* Use an Result with custom error instead of an option for waiter
2023-04-13 15:36:41 +00:00