-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Wasmtime API for embedder (#287)
* Migrate wasm-rust-api code to wasmtime.
- Loading branch information
1 parent
8ea883a
commit ca79149
Showing
23 changed files
with
2,791 additions
and
29 deletions.
There are no files selected for viewing
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,43 @@ | ||
[package] | ||
name = "wasmtime-api" | ||
authors = ["The Wasmtime Project Developers"] | ||
version = "0.1.0" | ||
description = "High-level API to expose the Wasmtime runtime" | ||
license = "Apache-2.0 WITH LLVM-exception" | ||
repository = "https://github.com/CraneStation/wasmtime" | ||
edition = "2018" | ||
|
||
[lib] | ||
name = "wasmtime_api" | ||
crate-type = ["lib", "staticlib", "cdylib"] | ||
|
||
[dependencies] | ||
cranelift-codegen = "0.40.0" | ||
cranelift-native = "0.40.0" | ||
cranelift-entity = "0.40.0" | ||
cranelift-wasm = "0.40.0" | ||
cranelift-frontend = "0.40.0" | ||
wasmtime-runtime = { path="../wasmtime-runtime" } | ||
wasmtime-environ = { path="../wasmtime-environ" } | ||
wasmtime-jit = { path="../wasmtime-jit" } | ||
wasmparser = "0.36" | ||
failure = { version = "0.1.3", default-features = false } | ||
failure_derive = { version = "0.1.3", default-features = false } | ||
target-lexicon = { version = "0.4.0", default-features = false } | ||
region = "2.0.0" | ||
|
||
[features] | ||
default = [] | ||
wasm-c-api = [] | ||
|
||
[dev-dependencies] | ||
# for wasmtime.rs | ||
wasi-common = { git = "https://github.com/CraneStation/wasi-common", rev = "8ea7a98"} | ||
docopt = "1.0.1" | ||
serde = { "version" = "1.0.94", features = ["derive"] } | ||
pretty_env_logger = "0.3.0" | ||
wabt = "0.9.0" | ||
wasmtime-wast = { path="../wasmtime-wast" } | ||
wasmtime-wasi = { path="../wasmtime-wasi" } | ||
rayon = "1.1" | ||
file-per-thread-logger = "0.1.1" |
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,3 @@ | ||
# Implementation of wasm-c-api in Rust | ||
|
||
https://github.com/WebAssembly/wasm-c-api |
Oops, something went wrong.