2019-05-09 19:53:23 -05:00
|
|
|
#![deny(unused_imports, unused_variables)]
|
|
|
|
|
2019-01-31 23:51:34 -06:00
|
|
|
extern crate wasmer_runtime;
|
2019-02-02 17:43:59 -06:00
|
|
|
extern crate wasmer_runtime_core;
|
2019-01-31 23:51:34 -06:00
|
|
|
|
2019-03-29 15:50:16 +01:00
|
|
|
use libc::{uint32_t, uint8_t};
|
2019-01-31 23:51:34 -06:00
|
|
|
|
2019-03-29 14:41:39 +01:00
|
|
|
pub mod error;
|
2019-03-29 15:38:12 +01:00
|
|
|
pub mod export;
|
2019-03-29 15:05:17 +01:00
|
|
|
pub mod global;
|
2019-03-29 15:50:16 +01:00
|
|
|
pub mod import;
|
2019-03-29 15:14:05 +01:00
|
|
|
pub mod instance;
|
2019-03-29 14:57:08 +01:00
|
|
|
pub mod memory;
|
2019-03-29 14:50:34 +01:00
|
|
|
pub mod module;
|
2019-03-29 15:02:50 +01:00
|
|
|
pub mod table;
|
2019-03-29 14:40:26 +01:00
|
|
|
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,
|
2019-02-19 00:05:08 -06:00
|
|
|
pub max: wasmer_limit_option_t,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct wasmer_limit_option_t {
|
|
|
|
pub has_some: bool,
|
|
|
|
pub some: uint32_t,
|
2019-02-02 17:43:59 -06:00
|
|
|
}
|
|
|
|
|
2019-02-14 00:00:39 -06:00
|
|
|
#[repr(C)]
|
|
|
|
pub struct wasmer_byte_array {
|
|
|
|
bytes: *const uint8_t,
|
|
|
|
bytes_len: uint32_t,
|
|
|
|
}
|