Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

cranelift-jit: re-export JITMemoryKind (#13632)

Mukhammedali Berektassuly61ba992de8de
diff --git a/cranelift/jit/src/lib.rs b/cranelift/jit/src/lib.rs
index 177aa60085..058cf907a3 100644
--- a/cranelift/jit/src/lib.rs
+++ b/cranelift/jit/src/lib.rs
@@ -12,7 +12,7 @@ mod memory;
pub use crate::backend::{JITBuilder, JITModule};
pub use crate::memory::{
- ArenaMemoryProvider, BranchProtection, JITMemoryProvider, SystemMemoryProvider,
+ ArenaMemoryProvider, BranchProtection, JITMemoryKind, JITMemoryProvider, SystemMemoryProvider,
};
/// Version number of this crate.
diff --git a/cranelift/jit/src/memory/mod.rs b/cranelift/jit/src/memory/mod.rs
index 7a9e8b77eb..8163032d2b 100644
--- a/cranelift/jit/src/memory/mod.rs
+++ b/cranelift/jit/src/memory/mod.rs
@@ -16,6 +16,7 @@ pub enum BranchProtection {
BTI,
}
+/// The kind of memory allocation requested by a [`JITMemoryProvider`].
pub enum JITMemoryKind {
/// Allocate memory that will be executable once finalized.
Executable,