cranelift_jit/lib.rs
1//! Top-level lib.rs for `cranelift_jit`.
2//!
3//! There is an [example project](https://github.com/bytecodealliance/cranelift-jit-demo/)
4//! which shows how to use some of the features of `cranelift_jit`.
5
6#![deny(missing_docs, unreachable_pub)]
7#![expect(unsafe_op_in_unsafe_fn, reason = "crate isn't migrated yet")]
8
9mod backend;
10mod compiled_blob;
11mod memory;
12
13pub use crate::backend::{JITBuilder, JITModule};
14pub use crate::memory::{
15 ArenaMemoryProvider, BranchProtection, JITMemoryProvider, SystemMemoryProvider,
16};
17
18/// Version number of this crate.
19pub const VERSION: &str = env!("CARGO_PKG_VERSION");