Files
pezkuwi-subxt/substrate/primitives/sandbox/Cargo.toml
T
Alexander Theißen 531fd70e22 Remove dependency on sandboxing host functions (#9592)
* Embed wasmi into the runtime

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
2021-08-25 11:37:15 +00:00

47 lines
1.4 KiB
TOML
Executable File

[package]
name = "sp-sandbox"
version = "0.10.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "Apache-2.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
description = "This crate provides means to instantiate and execute wasm modules."
readme = "README.md"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasmi = { version = "0.9.0", default-features = false, features = ["core"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wasmi = "0.9.0"
[dependencies]
wasmi = { version = "0.9.0", optional = true }
sp-core = { version = "4.0.0-dev", default-features = false, path = "../core" }
sp-std = { version = "4.0.0-dev", default-features = false, path = "../std" }
sp-io = { version = "4.0.0-dev", default-features = false, path = "../io" }
sp-wasm-interface = { version = "4.0.0-dev", default-features = false, path = "../wasm-interface" }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
log = { version = "0.4", default-features = false }
[dev-dependencies]
wat = "1.0"
assert_matches = "1.3.0"
[features]
default = ["std"]
std = [
"wasmi",
"sp-core/std",
"sp-std/std",
"codec/std",
"sp-io/std",
"sp-wasm-interface/std",
"log/std",
]
strict = []
wasmer-sandbox = []