Commit Graph

91 Commits

Author SHA1 Message Date
866d86ccf7 Update 0.x package versions 2024-04-05 19:15:29 +03:30
999109c006 Minor leftover fixes 2024-04-03 13:44:27 +11:00
b4b18c650b Various fixes detected in the build 2024-04-03 11:00:08 +11:00
3f09e2bd34 Added support for creating log file journals directly from buffers 2024-03-21 23:27:04 +11:00
03678c9deb Merge branch 'master' into dproxy 2024-03-11 18:39:39 +11:00
03ca2dc7ea Update 0.x package versions 2024-03-03 11:46:58 +03:30
de476a6b3d Linting and unit test fixes 2024-02-26 19:12:20 +11:00
d064818ec3 Fixed some compile issues for JS 2024-02-26 11:04:47 +11:00
09672e90e0 Fixed a whole bunch of linting errors 2024-02-26 10:31:34 +11:00
d034c50268 Resolved merge conflicts 2024-02-13 21:39:54 +11:00
66374be8b2 Fixed the IO operations on file system 2024-01-26 09:31:22 +11:00
8aa41693dc Significant speedup of the extent table loading 2024-01-24 04:25:47 +11:00
e12e14616a Finished a progress bar for the loading of a journal 2024-01-24 02:00:48 +11:00
2fe6edc851 Finished a mounting feature for the journals 2024-01-23 05:33:54 +11:00
1fab2ad7ea Fixed an issue with a lock on the file system 2024-01-23 03:26:53 +11:00
026636dde2 Fixed some alignment and serialization issues on the journals 2024-01-23 03:07:19 +11:00
a40d69b99b Added unit tests for offload file 2024-01-22 09:57:41 +11:00
6ea2ab22c7 Added the capability for the file system to index the data from a mmap backing store 2024-01-17 17:56:06 +11:00
809b434e7d Use nanoseconds in filestat
This commit fixes the `filestat` type which contains three timestamps.
Per [WASI spec], they should be in nanoseconds.  This is only a problem
for directories.

[WASI spec]: https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#-timestamp-u64

Signed-off-by: Yage Hu <me@huyage.dev>
2024-01-15 22:37:26 +01:00
ac6f2914c4 Tweak #[tracing::instrument] annotations to simplify performance troubleshooting 2024-01-12 14:37:49 +08:00
0baaa7e1e2 Made sure normalize_path() handles Windows paths correctly 2024-01-10 20:38:07 +08:00
b9da96a228 Added tests for escaping the scoped directory 2024-01-10 17:16:37 +08:00
c9eaebec79 feat: Added a ScopedDirectoryFileSystem to the virtual-fs crate 2024-01-10 16:59:06 +08:00
a9941e4c29 Updated WasiRunner to allow mounting FileSystem instances as well as directories on the host system 2024-01-10 16:59:06 +08:00
eaa844634a ignore append when truncate is set 2024-01-08 23:37:58 +03:30
0a32ca701a Merge remote-tracking branch 'origin/master' into dcgi 2023-12-23 20:51:47 +11:00
04c49aee4e Update 0.x package versions 2023-12-23 12:12:20 +03:30
017459204f Merge remote-tracking branch 'origin/master' into dcgi 2023-12-23 11:01:21 +11:00
7d796101f7 Merge remote-tracking branch 'origin/master' into dcgi 2023-12-20 11:45:27 +11:00
09fb64ee7f fix: Fixed a subtract-with-overflow in StaticFile::poll_read_ready() 2023-12-15 01:26:36 +08:00
9c2d2c6881 Gave users a way to access the underlying bytes in a StaticFile 2023-12-15 00:18:22 +08:00
b36378a451 Bumping the shared-buffer dependency so virtual_fs::StaticFile can use an OwnedBuffer while not breaking users of StaticFile::new() 2023-12-15 00:13:27 +08:00
966239eb38 fix: Reading from a virtual_fs::StaticFile now updates its internal cursor
fix: Trying to modify a `virtual_fs::StaticFile` now returns a permission error instead of silently doing nothing
2023-12-15 00:11:47 +08:00
4d63febf9d Release 4.2.4 (#4337) 2023-11-30 21:16:20 +03:30
e4fc594cc2 Finished the compactor and added CLI 2023-11-23 17:23:48 +11:00
665fc287f9 Made sure the wat2wasm runner test exercises stdout 2023-10-27 22:08:29 +08:00
9302066d32 Update package versions 2023-09-28 16:37:08 +04:00
dc871460e5 Made clippy happy 2023-09-20 01:19:26 +01:00
44ce9db749 fix: Prevent invalid file system merging errors
This commit changes the EmptyFileSystem read_dir() implementation to
always return an empty iterator when trying to read the root path "/".

This is done because some code paths expect the root to always be
readable.

This also makes sense theoretically, because an empty file system should
still be readable, just not contain any files.
2023-09-06 10:13:40 +02:00
9c0d2d9926 Fix existing test 2023-08-18 17:19:49 +04:00
50bd4f142a Improve performance when writing past end of file 2023-08-18 16:46:04 +04:00
19d19309e1 Fix writing to middle of files and improve performance 2023-08-18 16:31:07 +04:00
0bd4b48691 Release 4.1.1 (#4124)
* Update CHANGELOG

* Release 4.1.1

* Added manual sectionin CHANGELOG.md

* Bumped 0.x crates
2023-08-03 17:43:16 +02:00
ec0a7efbac Update MSRV to 1.69 (#4109) 2023-08-01 16:55:23 +00:00
01b1c4b705 Bumped the 0.x wasmer crates 2023-07-24 18:12:28 +02:00
ea9f7a4bf9 Fixed an issue where static files were being copied on the web browser causing an OOM 2023-07-16 01:07:23 +10:00
d38f20daab Merge branch 'master' into asynchronous-io-with-fs-fixes 2023-07-12 09:56:09 +02:00
c4541be53b Make sure docs.rs enables #[cfg(docsrs)] when building docs 2023-07-10 13:07:40 +08:00
935fc09e1b Enable the doc_cfg feature when running on docs.rs 2023-07-10 12:58:06 +08:00
5a85626bfd Fixed a bug where empty files were being returned 2023-07-08 14:54:29 +10:00