Skip to main content

asmkit/x86/
mod.rs

1//! X86 Assembler.
2//!
3//! This module provides functionality for encoding x86 instructions.
4//!
5//! Main entrypoint is the [`Assembler`] struct, which provides methods for encoding instructions.
6//! ## NOTE
7//!
8//! Dynamic code generation and text parsing are feature gated, enable `x86-dyn` and `x86-asm` respectively to use those features.
9//! But be aware that they increase the size of the crate significantly, so they are not enabled by default.
10//!
11//!
12pub mod arch_traits;
13#[cfg(feature = "x86")]
14pub mod assembler;
15#[cfg(feature = "x86")]
16pub mod features;
17#[cfg(feature = "x86")]
18pub mod opcodes;
19pub mod operands;
20
21pub use crate::X86Error;
22pub use crate::core::operand::imm;
23#[cfg(feature = "x86")]
24pub use assembler::*;
25#[cfg(feature = "x86")]
26pub use features::*;
27pub use operands::*;