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::data_context::{DataContext, DataDescription, Init};
|
||||||
pub use crate::module::{
|
pub use crate::module::{
|
||||||
DataId, FuncId, FuncOrDataId, Linkage, Module, ModuleCompiledFunction, ModuleDeclarations,
|
DataDeclaration, DataId, FuncId, FuncOrDataId, FunctionDeclaration, Linkage, Module,
|
||||||
ModuleError, ModuleExtName, ModuleReloc, ModuleResult,
|
ModuleCompiledFunction, ModuleDeclarations, ModuleError, ModuleExtName, ModuleReloc,
|
||||||
|
ModuleResult,
|
||||||
};
|
};
|
||||||
pub use crate::traps::TrapSite;
|
pub use crate::traps::TrapSite;
|
||||||
|
|
||||||
|
|||||||
@@ -185,8 +185,11 @@ impl From<FuncOrDataId> for ModuleExtName {
|
|||||||
/// Information about a function which can be called.
|
/// Information about a function which can be called.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct FunctionDeclaration {
|
pub struct FunctionDeclaration {
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub linkage: Linkage,
|
pub linkage: Linkage,
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub signature: ir::Signature,
|
pub signature: ir::Signature,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -298,9 +301,13 @@ pub type ModuleResult<T> = Result<T, ModuleError>;
|
|||||||
/// Information about a data object which can be accessed.
|
/// Information about a data object which can be accessed.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct DataDeclaration {
|
pub struct DataDeclaration {
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub linkage: Linkage,
|
pub linkage: Linkage,
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub writable: bool,
|
pub writable: bool,
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub tls: bool,
|
pub tls: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user