Export a couple of types from cranelift_module that were meant to be exported (#5074)
This commit is contained in:
@@ -42,8 +42,9 @@ mod traps;
|
||||
|
||||
pub use crate::data_context::{DataContext, DataDescription, Init};
|
||||
pub use crate::module::{
|
||||
DataId, FuncId, FuncOrDataId, Linkage, Module, ModuleCompiledFunction, ModuleDeclarations,
|
||||
ModuleError, ModuleExtName, ModuleReloc, ModuleResult,
|
||||
DataDeclaration, DataId, FuncId, FuncOrDataId, FunctionDeclaration, Linkage, Module,
|
||||
ModuleCompiledFunction, ModuleDeclarations, ModuleError, ModuleExtName, ModuleReloc,
|
||||
ModuleResult,
|
||||
};
|
||||
pub use crate::traps::TrapSite;
|
||||
|
||||
|
||||
@@ -185,8 +185,11 @@ impl From<FuncOrDataId> for ModuleExtName {
|
||||
/// Information about a function which can be called.
|
||||
#[derive(Debug)]
|
||||
pub struct FunctionDeclaration {
|
||||
#[allow(missing_docs)]
|
||||
pub name: String,
|
||||
#[allow(missing_docs)]
|
||||
pub linkage: Linkage,
|
||||
#[allow(missing_docs)]
|
||||
pub signature: ir::Signature,
|
||||
}
|
||||
|
||||
@@ -298,9 +301,13 @@ pub type ModuleResult<T> = Result<T, ModuleError>;
|
||||
/// Information about a data object which can be accessed.
|
||||
#[derive(Debug)]
|
||||
pub struct DataDeclaration {
|
||||
#[allow(missing_docs)]
|
||||
pub name: String,
|
||||
#[allow(missing_docs)]
|
||||
pub linkage: Linkage,
|
||||
#[allow(missing_docs)]
|
||||
pub writable: bool,
|
||||
#[allow(missing_docs)]
|
||||
pub tls: bool,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user