42 lines
692 B
Rust
Raw Normal View History

#![deny(unused_imports, unused_variables)]
2019-01-31 23:51:34 -06:00
extern crate wasmer_runtime;
extern crate wasmer_runtime_core;
2019-01-31 23:51:34 -06:00
use libc::{uint32_t, uint8_t};
2019-01-31 23:51:34 -06:00
pub mod error;
pub mod export;
pub mod global;
pub mod import;
pub mod instance;
pub mod memory;
pub mod module;
pub mod table;
pub mod value;
2019-01-31 23:51:34 -06:00
#[allow(non_camel_case_types)]
#[repr(C)]
2019-02-11 19:07:28 -06:00
pub enum wasmer_result_t {
WASMER_OK = 1,
WASMER_ERROR = 2,
2019-02-09 13:37:07 -06:00
}
2019-02-04 21:46:47 -06:00
#[repr(C)]
pub struct wasmer_limits_t {
pub min: uint32_t,
pub max: wasmer_limit_option_t,
}
#[repr(C)]
pub struct wasmer_limit_option_t {
pub has_some: bool,
pub some: uint32_t,
}
2019-02-14 00:00:39 -06:00
#[repr(C)]
pub struct wasmer_byte_array {
bytes: *const uint8_t,
bytes_len: uint32_t,
}