Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
sp-wasm-interface: remove useless wasmi impl (#14208)
Browse files Browse the repository at this point in the history
Co-authored-by: parity-processbot <>
  • Loading branch information
koushiro authored May 29, 2023
1 parent ab634fd commit 48817b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 129 deletions.
44 changes: 2 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions primitives/wasm-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["derive"] }
impl-trait-for-tuples = "0.2.2"
log = { version = "0.4.17", optional = true }
wasmi = { version = "0.13.2", optional = true }
wasmtime = { version = "8.0.1", default-features = false, optional = true }
anyhow = { version = "1.0.68", optional = true }
sp-std = { version = "5.0.0", default-features = false, path = "../std" }

[features]
default = [ "std" ]
std = [ "codec/std", "log", "sp-std/std", "wasmi", "wasmtime" ]
wasmtime = [ "dep:wasmtime", "anyhow" ]
default = ["std"]
std = ["codec/std", "log", "sp-std/std", "wasmtime"]
wasmtime = ["dep:wasmtime", "anyhow"]
3 changes: 0 additions & 3 deletions primitives/wasm-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

use sp_std::{borrow::Cow, iter::Iterator, marker::PhantomData, mem, result, vec, vec::Vec};

#[cfg(feature = "wasmi")]
mod wasmi_impl;

#[cfg(not(all(feature = "std", feature = "wasmtime")))]
#[macro_export]
macro_rules! if_wasmtime_is_enabled {
Expand Down
80 changes: 0 additions & 80 deletions primitives/wasm-interface/src/wasmi_impl.rs

This file was deleted.

0 comments on commit 48817b5

Please sign in to comment.