fix(c-api) Move the middleware API into the unstable module.

This commit is contained in:
Ivan Enderlin
2021-03-01 15:27:56 +01:00
parent d660943b45
commit 2bc502bd47
4 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,5 @@
#[cfg(feature = "deprecated")]
pub mod deprecated;
pub mod error;
#[cfg(feature = "middlewares")]
pub mod metering;
mod ordered_resolver;
pub mod wasm_c_api;

View File

@ -1,6 +1,6 @@
// C API for metering.
use super::wasm_c_api::instance::wasm_instance_t;
use super::super::super::instance::wasm_instance_t;
use std::sync::Arc;
use wasmer::wasmparser::Operator;
use wasmer_middlewares::{

View File

@ -0,0 +1 @@
pub mod metering;

View File

@ -1,3 +1,5 @@
pub mod engine;
#[cfg(feature = "middlewares")]
pub mod middlewares;
pub mod module;
pub mod target_lexicon;