* Move the C API to a separate crate This commit moves the C API from `crates/api/src/wasm.rs` to `crates/capi/src/lib.rs` to be located in a separate crate. There's a number of reasons for this: * When a Rust program depends on the `wasmtime` crate, there's no need to compile in the C API. * This should improve compile times of the `wasmtime` crate since it's not producing artifacts which aren't always used. * The development of the C API can be guaranteed to only use the public API of the `wasmtime` crate itself. Some CI pieces are tweaked and this overall shouldn't have much impact on users, it's intended that it's a cleanup/speedup for developers! * Disable rustdoc/tests for capi * Review feedback * Add back in accidentally deleted comment * More renamings * Try to fix dotnet build
41 lines
1.2 KiB
TOML
41 lines
1.2 KiB
TOML
[package]
|
|
name = "wasmtime"
|
|
version = "0.9.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "High-level API to expose the Wasmtime runtime"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
wasmtime-runtime = { path = "../runtime", version = "0.9.0" }
|
|
wasmtime-environ = { path = "../environ", version = "0.9.0" }
|
|
wasmtime-jit = { path = "../jit", version = "0.9.0" }
|
|
wasmparser = { version = "0.47.0", default-features = false }
|
|
target-lexicon = { version = "0.10.0", default-features = false }
|
|
anyhow = "1.0.19"
|
|
region = "2.0.0"
|
|
libc = "0.2"
|
|
cfg-if = "0.1.9"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = "0.3.7"
|
|
|
|
[dev-dependencies]
|
|
# for wasmtime.rs
|
|
wasi-common = { path = "../wasi-common", version = "0.9.0" }
|
|
pretty_env_logger = "0.3.0"
|
|
rayon = "1.2.1"
|
|
file-per-thread-logger = "0.1.1"
|
|
wat = "1.0"
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[features]
|
|
# Enables experimental support for the lightbeam codegen backend, an alternative
|
|
# to cranelift. Requires Nightly Rust currently, and this is not enabled by
|
|
# default.
|
|
lightbeam = ["wasmtime-jit/lightbeam"]
|