-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for the WASI ABI. #299
Merged
Merged
Changes from all commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
be08154
Add wasi crate
lachlansneff 0787d00
Add data support to import macro
lachlansneff e3a6b7c
Add skeleton for wasi abi
lachlansneff b7254ce
add stubs and dispatch
7b0992e
Instance now pulls state from the ImportObject
lachlansneff c045da3
Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into featur…
lachlansneff 94674e9
Add wasi state
lachlansneff bc863fc
hook up wasi to wasmer
72dd995
fix typo
dbc4176
Add env and args syscalls
lachlansneff 256253a
Fix clippy lint
lachlansneff 3c01c11
pass args and env vars to wasi
a69fdfe
implement wasi check
5c12fd0
fix test
e227b89
Merge #301
bors[bot] 21304cb
Merge branch 'feature/wasi' into feature/hook-up-wasi-to-wasmer
MarkMcCaskey ce22818
add feature gate on import
3323c3c
Merge #300
bors[bot] bde6bdf
Add all wasi types
lachlansneff 79133e5
Merge #303
bors[bot] aed9d3b
remove __wasi_ prefix
2982e6e
Merge #304
bors[bot] 46f90d3
fix conditional compliation
9478ba7
actually fix it
72ec4ab
Merge #305
bors[bot] c45de22
Add helper types and half-ish of the wasi signatures
lachlansneff bd09343
add structure for cross-platform wasi syscall implementations
90db12e
Finish up signatures and converting function types
lachlansneff d9b89b4
Fix bug in deref of WasmPtr<T, Array>
lachlansneff 39ccf40
Merge #306
bors[bot] ea27eff
keeep top level wasi calls that call out to platform-specific impls
d10d028
Merge branch 'feature/wasi' into feature/wasi-cross-platform-skeleton
MarkMcCaskey 514432c
call wasi files correctly
b1030d3
Add prestat_t
lachlansneff 4df5f02
Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into featur…
lachlansneff 23c09ac
add imports
48b5918
Merge branch 'master' into feature/wasi-fs
lachlansneff 48d34d9
improve calling of platform-specific code and impl linux clock calls
de241a0
fix linux impl bugs
1f8b90b
probably actually fix linux for real though
28d9d1f
move linux impl to unix (it works on osx too!)
88212d3
implement random_get()
35fbf57
add pread on linux
5dcb95d
fix basic errors in linux impl
e7a5c01
fix backward enumerate
147d71a
implement ValueType for prestat_t
42e8523
impl ValueType for fdstat_t
5cee576
add some syscall skeletons; context switching
e156ea2
comment out write logic in linux fd_pread until design discussion
4108c8f
Merge pull request #307 from wasmerio/feature/wasi-cross-platform-ske…
MarkMcCaskey 7addd92
add more stubs for fs calls
5b6856d
add lots of doc comments
68f1123
Add start of wasi fs
lachlansneff c12c7d5
Merge branch 'feature/wasi-fs' into feature/wasi
lachlansneff 61dd2e1
add more doc comments
ce35e57
Change ValueType trait and add basic fs
lachlansneff 23b1d1d
Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into featur…
lachlansneff 92ec719
Add wasi_try macro
lachlansneff 2dd7ec8
fix it up
84dc20a
Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into featur…
d164c7a
update wasi Cargo.toml
8bab9f1
init zbox first
lachlansneff 287c81d
Misc fixes
lachlansneff 6cec356
add debug lines to all wasi syscalls
4356293
get debug statements working; add some extra info
d421e91
implement some of fd_prestat_get
242f9f6
add hacked together impl of write for stdout and stderr
3a6e2c9
Change tagged and untagged methods
lachlansneff 6278ced
implement fd_write for files
04a8073
Merge branch 'feature/wasi' of github.com:wasmerio/wasmer into featur…
a4547e3
update cursor in file when writing to it
0b9fc5a
add null termination to args for wasi
e61c03a
impl fd_read (untested)
2de5a5d
implement datasync
e180fd1
add set_rights syscall
fe4195f
impl set_flags on fd
697bdc7
add rights checking fn for future-proofing reasons
37371eb
implement most of fd_filestat_set_times
7d07b6f
impl fd_seek
dd7cfac
implement fd_tell
ce4676d
implement fd_renumber
f70b75e
kind of implement fd_pwrite
b80dd07
implement happy path of fd_open
7d728fc
implement path_filestat_get
d04d1bf
improve debug statements for arg syscalls
10696c4
clean up platform-specific syscall code
e9e7a33
fix warnings and let it build on windows
xmclark 3b34ea6
Merge remote-tracking branch 'origin/feature/wasi' into feature/wasi
xmclark c1c99db
rename fs and fix (probable) bug in renumber syscall
207bd01
rename to destructor
xmclark 2686322
Merge remote-tracking branch 'origin/feature/wasi' into feature/wasi
xmclark bbf663a
Merge branch 'master' into feature/wasi
xmclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "wasmer-wasi" | ||
version = "0.2.1" | ||
license = "MIT" | ||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"] | ||
repository = "https://github.com/wasmerio/wasmer" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
wasmer-runtime-core = { path = "../runtime-core", version = "0.2.1" } | ||
libc = "0.2.50" | ||
rand = "0.6.5" | ||
# wasmer-runtime-abi = { path = "../runtime-abi" } | ||
hashbrown = "0.1.8" | ||
generational-arena = "0.2.2" | ||
log = "0.4.6" | ||
byteorder = "1.3.1" | ||
|
||
[dependencies.zbox] | ||
git = "https://github.com/wasmerio/zbox" | ||
branch = "bundle-libsodium" | ||
features = ["libsodium-bundled"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dtor
? maybedestructor
orfinalizer
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, either of those is fine.
dtor
was just short and it's common in the c++ world.