This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::sync::Mutex; | |
use loupe::MemoryUsage; | |
use wasmer::{FunctionMiddleware, FunctionType, ModuleMiddleware, Type}; | |
use wasmer_types::{FunctionIndex, ImportIndex}; | |
use wasmer_vm::ModuleInfo; | |
#[derive(Debug, MemoryUsage)] | |
struct MyMiddleware { | |
// This would then be passed to FunctionMiddleware things, which would use |