Commit Graph

241 Commits

Author SHA1 Message Date
Christoph Herzog
a499deadeb Bump webc to 4.0.0
The earlier 0.4.1 downgrade was a "hack".
There alrady is a 3.x version that was used previously, but is broken.
We replaced that with 0.4.1, which was the latest publish, but we can't
downgrade to a previous version...

So 0.4.1 was re-relased as 4.0.0.
2022-12-22 16:38:05 +01:00
Johnathan Sharratt
6d227dbf38 cargo fmt 2022-12-19 18:35:59 +11:00
Johnathan Sharratt
8a58680b30 - Fixed a bug where webc files had zero length on the metadata
- Added the ability to cache webc packages indefinately (i.e. no expiry)
- Modified the main polling loop so it has a minimum sleep time to prevent CPU thrashing
2022-12-19 17:33:33 +11:00
Christoph Herzog
e570d773ef docs: Add FIXME comment
Adds a FIXME for an unwrap() that should propagate the error instead.
2022-12-15 00:15:01 +01:00
Christoph Herzog
654ee49226 deps: Use newest webc release (0.4.1) 2022-12-13 11:10:34 +01:00
Christoph Herzog
173e48601c Merge remote-tracking branch 'origin/master' into wasix 2022-12-13 01:40:22 +01:00
Felix Schütt
d45850733e Release 3.1.0 2022-12-12 13:38:00 +01:00
Christoph Herzog
0c8de24abb Fix some compilation errors 2022-12-06 13:49:12 +01:00
Christoph Herzog
eb60a96bcf Merge branch 'master' into wasix-merge 2022-12-06 13:22:09 +01:00
Christoph Herzog
19458e804f fix: Fix various wasi tests - SORT OF
Skips some tests, probably changes some tests so they fail...

But this gets us compiling again.
2022-12-06 00:58:46 +01:00
Felix Schütt
8f76b6780c Downgrade webc: 3.0.2 -> 3.0.1 2022-11-25 21:36:23 +01:00
Felix Schütt
b70f6e9052 Release 3.0.2 2022-11-25 21:30:20 +01:00
Christoph Herzog
7f52445fb6 Chore: formatting 2022-11-24 10:48:23 +01:00
Johnathan Sharratt
5b35a75203 Fixed some race conditions on the pipe which may lose some data in certain situations 2022-11-23 11:23:38 +11:00
Felix Schütt
27f3300fef Release 3.0.1 2022-11-23 01:14:06 +01:00
Christoph Herzog
1841ee5a99 build: Replace webc path dependencies with a patch in root Cargo.toml 2022-11-22 06:45:06 +01:00
John Sharratt's Shared Account
9162b5036b cargo fmt --all 2022-11-22 14:00:25 +11:00
John Sharratt's Shared Account
5d3e7b55a6 Fixed an issue with polling the STDIN 2022-11-22 12:39:08 +11:00
John Sharratt's Shared Account
0b4affaa91 - Fixed an issue where the WebC caching was active for JS
- Fixed an issue with tokio missing io-util on JS builds
- Fixed an issue where duplicate stdio file descriptors was not preserving the is_stdio flag
- Added a text file that describes a suite of integration tests for WASIX
- Added compiled WASIX programs used for testing purposes
2022-11-22 12:26:37 +11:00
Christoph Herzog
40860f023d chore: Remove old, redundant trait impl
It was from before the VFS refactor.
2022-11-21 13:48:12 +01:00
John Sharratt's Shared Account
6774f2dfae - Converted the block_on method to another trait for better code reuse
- Fixed the wasi_wast unit tests which were not async
- Fixed an issue with the stack capture and restore syscalls
- Fixed a deadlock on the event notification read syscall
- Fixed some missing stderr messages on execution failures
- Implemented some cleanup calls when a WASI process exits
- Fixed an issue where too many file descriptors were being opened when vforking
- Fixed the stdin and stdout host implementations which were not working
- Removed wai-bindgen-rust as a dependency as it does not compile on the browser (even when optional)
2022-11-21 16:58:13 +11: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
Christoph Herzog
753626fb94 refactor(wasi): Remove mem-fs feature
The wasmer-vfs crate always provides the MemoryFs now, so there is no
more need for a toggle feature.
2022-11-17 18:29:20 +01:00
Michael-F-Bryan
3a092cf6f9 Make "make lint" pass for Rust 1.63 2022-11-18 00:43:54 +08:00
John Sharratt's Shared Account
cdb1cc551b Cargo fmt --all 2022-11-17 17:30:45 +11:00
John Sharratt's Shared Account
50b8469e19 Split out WASI from WASIX and implemented the ASYNC IO needed for the browser to work again 2022-11-17 17:28:16 +11:00
John Sharratt's Shared Account
9627dc835e Resolved merge conflicts 2022-11-17 11:42:14 +11:00
John Sharratt's Shared Account
e95c1130ac Converted VFS fully to ASYNC 2022-11-17 09:11:06 +11:00
Christoph Herzog
cb19e11ddc Remove remaining path dependencies 2022-11-16 21:49:53 +01:00
Felix Schütt
dfd7ff41b5 Update wasmer-vfs implemenetation
* Add some new file systems
* Add tests
* General cleanup
2022-11-16 14:04:18 +01:00
John Sharratt's Shared Account
9cdc6423d2 Ran cargo fmt --all 2022-11-16 12:47:58 +01:00
John Sharratt's Shared Account
bf162f5e75 Fixed the polling functions 2022-11-16 12:47:57 +01:00
Johnathan Sharratt
1f53ca939c Almost got them all 2022-11-16 12:47:04 +01:00
John Sharratt's Shared Account
9a5b33731f Resolved a number of merge conflicts 2022-11-16 12:47:02 +01:00
Christoph Herzog
359c2e9008 Use webc fork 2022-11-16 12:47:01 +01:00
Christoph Herzog
c41de1655b chore: Fix warning 2022-11-16 12:47:01 +01:00
Christoph Herzog
5a35a20156 Partial rebase to wasmer master (non-functional) 2022-11-16 12:47:01 +01:00
Christoph Herzog
2b8a4e949e Formatting... 2022-11-16 12:47:01 +01:00
John Sharratt's Shared Account
c41af89e13 Changes required to bring in full WASIX support
- Implemented multi-threading for both JS and SYS, plus other WASIX implementations
- Added a longjmp capability required for bash and other WASIX implementations
- Added real signals to WASIX
- Added a stack unwinding and winding functionality
- Implemented memory forking which will be used for process forking
- Added the ability to fork the current process
- Added the vfork functionality
- Moved over to the WasiPipe implementation
- Added more syscalls needed for bash on WASIX
- Ported wasmer-os into wasmer
- Added a union file system and the character devices
- Moved the cursors to the file handles rather than the file so that they are multithread safe and can handle concurrent IO
- Reimplemented the poll_oneoff functionality to support full ASYNC
- Added support for mapping directories in the host file system into WASIX sandbox file systems
- Implemented fully ASYNC sockets and emulated ASYNC files
- Made the file locks more granular to allow for concurrent poll and accept operations
- Fixed a race condition on the event notifications
2022-11-16 12:47:01 +01:00
John Sharratt's Shared Account
9eae81e5eb Ran cargo fmt --all 2022-11-14 19:59:33 +11:00
John Sharratt's Shared Account
bf73ebfa48 Fixed the polling functions 2022-11-12 13:07:11 +11:00
Johnathan Sharratt
d015d38a28 Almost got them all 2022-11-10 22:24:33 +11:00
John Sharratt's Shared Account
a40de1f8f9 Resolved a number of merge conflicts 2022-11-08 16:12:33 +11:00
Christoph Herzog
5f5445c4b1 Use webc fork 2022-11-07 16:50:54 +01:00
Christoph Herzog
44c8701ac0 chore: Fix warning 2022-11-07 16:49:20 +01:00
Christoph Herzog
61190088d2 Partial rebase to wasmer master (non-functional) 2022-11-07 15:15:25 +01:00
Christoph Herzog
587571804e Formatting... 2022-11-07 15:11:42 +01:00
John Sharratt's Shared Account
572ea3e9cd Changes required to bring in full WASIX support
- Implemented multi-threading for both JS and SYS, plus other WASIX implementations
- Added a longjmp capability required for bash and other WASIX implementations
- Added real signals to WASIX
- Added a stack unwinding and winding functionality
- Implemented memory forking which will be used for process forking
- Added the ability to fork the current process
- Added the vfork functionality
- Moved over to the WasiPipe implementation
- Added more syscalls needed for bash on WASIX
- Ported wasmer-os into wasmer
- Added a union file system and the character devices
- Moved the cursors to the file handles rather than the file so that they are multithread safe and can handle concurrent IO
- Reimplemented the poll_oneoff functionality to support full ASYNC
- Added support for mapping directories in the host file system into WASIX sandbox file systems
- Implemented fully ASYNC sockets and emulated ASYNC files
- Made the file locks more granular to allow for concurrent poll and accept operations
- Fixed a race condition on the event notifications
2022-11-07 15:11:29 +01:00