* Update the top-level README.md and embedding documentation. wasmtime-api is now the primary external API crate, so recommend that instead of wasmtime-jit. Also, enable wasmtime-api's C API by default, so that it shows up on docs.rs, and to make it easier to use. And, add basic embedding documentation and link to it from the README.md. Credit to @yurydelendik for the content. * Use the new wasm-c-api URL. * Don't pass --features wasm-c-api, as it is now on by default.
45 lines
1.6 KiB
TOML
45 lines
1.6 KiB
TOML
[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 = { version = "0.49", features = ["enable-serde"] }
|
|
cranelift-native = { version = "0.49" }
|
|
cranelift-entity = { version = "0.49", features = ["enable-serde"] }
|
|
cranelift-wasm = { version = "0.49", features = ["enable-serde"] }
|
|
cranelift-frontend = { version = "0.49" }
|
|
wasmtime-runtime = { path="../wasmtime-runtime" }
|
|
wasmtime-environ = { path="../wasmtime-environ" }
|
|
wasmtime-jit = { path="../wasmtime-jit" }
|
|
wasmparser = { version = "0.39.2", default-features = false }
|
|
target-lexicon = { version = "0.9.0", default-features = false }
|
|
anyhow = "1.0.19"
|
|
thiserror = "1.0.4"
|
|
region = "2.0.0"
|
|
hashbrown = { version = "0.6.0", optional = true }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["cranelift-codegen/std", "cranelift-wasm/std", "wasmtime-environ/std", "wasmparser/std"]
|
|
core = ["hashbrown/nightly", "cranelift-codegen/core", "cranelift-wasm/core", "wasmtime-environ/core", "wasmparser/core"]
|
|
|
|
[dev-dependencies]
|
|
# for wasmtime.rs
|
|
wasi-common = { git = "https://github.com/CraneStation/wasi-common", rev = "2fe3530"}
|
|
docopt = "1.0.1"
|
|
serde = { "version" = "1.0.94", features = ["derive"] }
|
|
pretty_env_logger = "0.3.0"
|
|
wasmtime-wast = { path="../wasmtime-wast" }
|
|
wasmtime-wasi = { path="../wasmtime-wasi" }
|
|
rayon = "1.1"
|
|
file-per-thread-logger = "0.1.1"
|