Files
wasmtime/lib/wasm/Cargo.toml
Dan Gohman 89e7d56120 Allow wasm embedders to reject wasm modules with unsupported features. (#345)
Define `WasmError` (and an accompanying `WasmResult`) to represent
errors translating WebAssembly functions. Make `translate_call` and
related functions return `WasmResult`s so that embedders have the
flexibility to reject features they don't support.

Move `InvalidInput` out of `CtonError` and into `WasmError`, where it's
now named `InvalidWebAssembly`, as it's a WebAssembly-specific error
condition. Also extend it to preserve the original error message and
bytecode offset.
2018-05-21 20:49:19 -07:00

30 lines
1.1 KiB
TOML

[package]
name = "cretonne-wasm"
version = "0.8.0"
authors = ["The Cretonne Project Developers"]
description = "Translator from WebAssembly to Cretonne IR"
repository = "https://github.com/cretonne/cretonne"
license = "Apache-2.0"
readme = "README.md"
keywords = ["webassembly", "wasm"]
[dependencies]
wasmparser = { version = "0.16.1", default-features = false }
cretonne-codegen = { path = "../codegen", version = "0.8.0", default-features = false }
cretonne-frontend = { path = "../frontend", version = "0.8.0", default-features = false }
hashmap_core = { version = "0.1.4", optional = true }
failure = { version = "0.1.1", default-features = false, features = ["derive"] }
failure_derive = { version = "0.1.1", default-features = false }
[dev-dependencies]
tempdir = "0.3.5"
[features]
default = ["std"]
std = ["cretonne-codegen/std", "cretonne-frontend/std", "wasmparser/std"]
core = ["hashmap_core", "cretonne-codegen/core", "cretonne-frontend/core", "wasmparser/core"]
[badges]
maintenance = { status = "experimental" }
travis-ci = { repository = "cretonne/cretonne" }