feat(c-api) Make wasi_config_t and wasi_env_t opaque structures.

Removing `repr(C)` make them opaque for cbindgen. Which is perfect for what we want.
This commit is contained in:
Ivan Enderlin
2020-09-29 16:01:52 +02:00
parent 4165e389dc
commit d55b701e9d
2 changed files with 1 additions and 2 deletions

View File

@@ -11,5 +11,6 @@ pub mod store;
pub mod trap;
pub mod types;
pub mod value;
#[cfg(feature = "wasi")]
pub mod wasi;

View File

@@ -26,7 +26,6 @@ use wasmer_wasi::{
#[derive(Debug, Default)]
#[allow(non_camel_case_types)]
#[repr(C)]
pub struct wasi_config_t {
inherit_stdout: bool,
inherit_stderr: bool,
@@ -91,7 +90,6 @@ pub extern "C" fn wasi_config_inherit_stdin(config: &mut wasi_config_t) {
}
#[allow(non_camel_case_types)]
#[repr(C)]
pub struct wasi_env_t {
/// cbindgen:ignore
inner: WasiEnv,