diff --git a/lib/api/src/js/mod.rs b/lib/api/src/js/mod.rs
index e9e9e329530..a172dffcf7d 100644
--- a/lib/api/src/js/mod.rs
+++ b/lib/api/src/js/mod.rs
@@ -54,7 +54,7 @@ pub use crate::js::function_env::{FunctionEnv, FunctionEnvMut};
 pub use crate::js::imports::Imports;
 pub use crate::js::instance::Instance;
 pub use crate::js::mem_access::{MemoryAccessError, WasmRef, WasmSlice, WasmSliceIter};
-pub use crate::js::module::{Module, ModuleTypeHints};
+pub use crate::js::module::{IoCompileError, Module, ModuleTypeHints};
 pub use crate::js::native::TypedFunction;
 pub use crate::js::native_type::NativeWasmTypeInto;
 pub use crate::js::ptr::{Memory32, Memory64, MemorySize, WasmPtr, WasmPtr64};
diff --git a/lib/api/src/js/module.rs b/lib/api/src/js/module.rs
index 47b751aaf42..36c7f355361 100644
--- a/lib/api/src/js/module.rs
+++ b/lib/api/src/js/module.rs
@@ -22,6 +22,7 @@ use wasmer_types::{
     Pages, TableType, Type,
 };
 
+/// IO Error on a Module Compilation
 #[derive(Debug)]
 #[cfg_attr(feature = "std", derive(Error))]
 pub enum IoCompileError {
diff --git a/lib/api/src/sys/mod.rs b/lib/api/src/sys/mod.rs
index 1c272a2a60e..d24be112dcb 100644
--- a/lib/api/src/sys/mod.rs
+++ b/lib/api/src/sys/mod.rs
@@ -23,7 +23,7 @@ pub use crate::sys::function_env::{FunctionEnv, FunctionEnvMut};
 pub use crate::sys::imports::Imports;
 pub use crate::sys::instance::{Instance, InstantiationError};
 pub use crate::sys::mem_access::{MemoryAccessError, WasmRef, WasmSlice, WasmSliceIter};
-pub use crate::sys::module::Module;
+pub use crate::sys::module::{IoCompileError, Module};
 pub use crate::sys::native::TypedFunction;
 pub use crate::sys::native_type::NativeWasmTypeInto;
 pub use crate::sys::store::{AsStoreMut, AsStoreRef, StoreMut, StoreRef};
diff --git a/lib/api/src/sys/module.rs b/lib/api/src/sys/module.rs
index 4b6807178ae..247530809e6 100644
--- a/lib/api/src/sys/module.rs
+++ b/lib/api/src/sys/module.rs
@@ -18,6 +18,7 @@ use wasmer_types::{
 use wasmer_types::{ExportType, ImportType};
 use wasmer_vm::InstanceHandle;
 
+/// IO Error on a Module Compilation
 #[derive(Error, Debug)]
 pub enum IoCompileError {
     /// An IO error