xref: /wasmtime-44.0.1/cranelift/jit/src/lib.rs (revision 073aedab)
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 
9 mod backend;
10 mod compiled_blob;
11 mod memory;
12 
13 pub use crate::backend::{JITBuilder, JITModule};
14 pub use crate::memory::{
15     ArenaMemoryProvider, BranchProtection, JITMemoryProvider, SystemMemoryProvider,
16 };
17 
18 /// Version number of this crate.
19 pub const VERSION: &str = env!("CARGO_PKG_VERSION");
20