ptitSeb
6f3253e561
Added a universal_test on FunctionEnvMut::data_and_store_mut function
2023-02-24 12:12:30 +01:00
ptitSeb
b4101c4777
Add FunctionEnMut::data_and_store_mut on api/js too
2023-02-23 15:48:55 +01:00
ptitSeb
a7579c052e
Added FunctionEnvMut::data_end_store_mut (will help #3592 )
2023-02-23 15:38:36 +01:00
Christoph Herzog
0a422d88db
deps(wasi): Activate tokio time feature
...
This would previously already be pulled in automatically by
dependencies, but needs to be manually enabled for JS builds
2023-02-23 15:25:03 +01:00
Christoph Herzog
8c2aad2e26
wasi: Put a time limit on WasiEnv::cleanup to avoid infinite idling
2023-02-23 15:12:01 +01:00
Christoph Herzog
7779e2e5f8
chore: Formatting
2023-02-23 15:11:53 +01:00
Christoph Herzog
265d9f6a2b
docs: Remove invalid/misleading comment
2023-02-23 15:11:35 +01:00
ptitSeb
5cf54b4f42
[CREATE-EXE] Link with Security framework when cross-compiling on macOS (and the framework definition is embedded in create-exe)
2023-02-23 14:00:14 +01:00
Christoph Herzog
df6434fcac
Ensure WasiEnv cleanup in CLI
2023-02-23 10:45:10 +01:00
Christoph Herzog
16e92ff680
Rename SpecialFile to DeviceFile
...
Because some people don't like anything special in their code base...
2023-02-22 23:19:01 +01:00
Christoph Herzog
1b6f443375
tests: Disable a few flaky snapshot tests
...
The disabled ones use threading and have non-deterministic output.
2023-02-22 23:05:22 +01:00
Christoph Herzog
675a7c2fbc
wasi: Remove the hardcoded default boot from Console
...
The Console previously had a hardcoded boot webc package with a specific
dash package published on the Wasmer registry.
This level of hardcoding is not desireable.
The boot package now has to be specified as an argument in the
constructor.
2023-02-22 20:50:52 +01:00
kotborealis
f03fee187e
fix: fb inputs
2023-02-22 22:02:46 +03:00
kotborealis
365ec5bb0a
fix: io devices
2023-02-22 22:02:46 +03:00
Christoph Herzog
7ed3288443
chore: Formatting
2023-02-22 19:15:48 +01:00
Christoph Herzog
7018bd4ade
Improve WasiEnv::cleanup(): close uniquely held file handles
...
Make the cleanup close all uniquely held file handles.
All non-uniquely held ones will still be flushed.
2023-02-22 19:15:00 +01:00
Christoph Herzog
af24e33e58
examples: Add a wasi_manual_setup example
...
To show the manual setup flow.
2023-02-22 11:49:56 +01:00
Christoph Herzog
4d0460e2c6
Merge remote-tracking branch 'origin/master' into wasix
2023-02-22 11:15:16 +01:00
Christoph Herzog
af746cf284
chore: Don't ignore path creation error in create_exe code
2023-02-22 11:04:31 +01:00
Christoph Herzog
34c5bfe124
c-api: wasi_env_delete now cleans up the WasiEnv state
...
Needed for proper cleanup of state.
2023-02-22 11:04:31 +01:00
Christoph Herzog
d4717421a9
wasi: Env cleanup now at least flushes all file handles
...
Prevents issues with data not being sent / written before shutdown.
2023-02-22 11:04:31 +01:00
ptitSeb
b42cd59814
Use default_fs_backing() filesystem for c-api Wasi config
2023-02-21 18:00:01 +01:00
ptitSeb
c9e658e25e
Update rkyv 0.7.40 and prettytable-rs to 0.10.0 ( #3593 )
2023-02-21 12:33:42 +01:00
ptitSeb
0a2137f891
Fix WASI example that initialized wasi_config 2 times
2023-02-21 09:35:37 +08:00
Christoph Herzog
0c6c27e37e
chore: Remove owned mutex doc tests
...
Can write doc tests for private submodule...
2023-02-20 14:51:27 +01:00
Christoph Herzog
a328f32478
Remove Pipe::default()
...
Pipe::new() was previously also removed.
Use Pipe::channel() instead
2023-02-20 14:50:52 +01:00
Christoph Herzog
244c5f66e6
fix: make Pipe::new() private and replace usage
...
Pipe::new() easily leads to dangling pipes due to lack of close on drop
of the sender.
2023-02-20 14:18:35 +01:00
Christoph Herzog
f6aeddb702
fix(wasi): Use proper import path for VMMemory
2023-02-20 12:38:21 +01:00
Christoph Herzog
c319a84dad
chore: Fix clippy lints
2023-02-20 11:30:33 +01:00
Christoph Herzog
5799efce0c
refactor: Rename DuelWriteFile to DualWriteFile
...
Just fixing a typo...
2023-02-20 09:40:25 +01:00
Johnathan Sharratt
5b54b81539
Removed some old debug message that came from somewhere
2023-02-20 16:12:50 +11:00
Johnathan Sharratt
439dd4fe7f
Added some more file implementations that support the Console
2023-02-20 15:27:53 +11:00
Johnathan Sharratt
9a5dd9fe46
Added a standard file that allows for writes to be intercepted - used by the runtime debugging in Deploy
2023-02-20 14:43:13 +11:00
Johnathan Sharratt
d8c5736e91
Fixed the unit tests around the pipe object
2023-02-20 14:06:22 +11:00
Johnathan Sharratt
017592de6e
Added some methods to convert pipes into split components
2023-02-20 13:55:54 +11:00
Johnathan Sharratt
6a087bd338
Added a channel method to the pipes
2023-02-20 13:52:23 +11:00
Johnathan Sharratt
c010866714
Refactored the console so it accepts multiple pipes for STDIO
2023-02-20 13:50:09 +11:00
Johnathan Sharratt
4b8bb01a23
Modified the TTY bridge so that its easier to consume from Deploy
2023-02-20 10:35:27 +11:00
Johnathan Sharratt
61ab2105cf
Pipe can now be split and combined
2023-02-20 10:22:40 +11:00
Johnathan Sharratt
6ffdc950f0
The error conversion function is needed by Deploy
2023-02-20 09:57:46 +11:00
Syrus Akbary
ae6c3baeb8
Merge branch 'master' into std-api
2023-02-17 16:25:30 -08:00
Rich Lane
b5f288830c
Optimize getting byteLength in MemoryView::new
2023-02-17 15:00:27 -08:00
Syrus Akbary
bb9ac04336
Make API compatible changes with wasmer-js
2023-02-16 22:45:28 -08:00
Syrus Akbary
b61e2a1287
Added equality to instance, Module and Exports
2023-02-16 21:56:44 -08:00
Syrus Akbary
d85297fddc
Fix linting and compilation
2023-02-16 21:21:44 -08:00
Syrus Akbary
db6dd420e1
Optimized ModuleInfo usage
2023-02-16 20:44:49 -08:00
Syrus Akbary
c85b2bf62e
Implement PartialEq for all externals
2023-02-16 20:00:27 -08:00
Christoph Herzog
1c84918c74
fix: Fix OS error mapping on Windows
...
Needed to adjust #[cfg()]s to only use libc on unix targets.
2023-02-16 21:53:33 +01:00
Christoph Herzog
6d4a41abf0
deps: Remove unused dependency from vnet
...
Probably some copy-pasta leftover.
2023-02-16 21:29:37 +01:00
Christoph Herzog
8074253fe2
VFS cleanuup: remove redundant dependencies and feature flags
...
* Remove all dependencies to Wasmer crates (previously used for really
trivial type definitions)
* Remove feature flags that make no sense anymore:
- js/sys from wasmer
- std/core - nostd support was intended at some point, but isn't implement
2023-02-16 20:58:32 +01:00