wasi_virt_layer 0.4.1

A virtual layer for WASI modules
Documentation
#[cfg(feature = "trace-fs")]
macro_rules! trace_fs {
    (
        $vfs:expr,
        $wasm:ty;
        $($arg:tt)*
    ) => {
        {
            #[cfg(feature = "std")]
            let msg = {
                format!($($arg)*)
            };

            #[cfg(not(feature = "std"))]
            let msg = {
                stringify!($($arg)*)
            };

            let b = msg.as_bytes();

            $crate::simple_debug::simple_debug_print(b);
        }
    };
}

#[cfg(not(feature = "trace-fs"))]
macro_rules! trace_fs {
    (
        $vfs:expr,
        $wasm:ty;
        $($arg:tt)*
    ) => {};
}

pub(crate) use trace_fs;