luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
use crate::enums::kind::Kind;
use crate::records::address_a_64::AddressA64;
use crate::records::label::Label;
use crate::records::patch::Patch;
use crate::records::register_a_64::RegisterA64;
use alloc::string::String;
use alloc::vec::Vec;

#[derive(Debug, Clone)]
#[repr(C)]
pub struct AssemblyBuilderA64 {
    // `data`/`code`/`text` are the public observable output in the C++
    // AssemblyBuilderA64 (tests read `build.code`); the X64 builder already
    // exposes them `pub`.
    pub data: Vec<u8>,
    pub code: Vec<u32>,
    pub text: String,
    pub(crate) log_text: bool,
    pub(crate) features: u32,
    pub(crate) next_label: u32,
    pub(crate) pending_labels: Vec<Patch>,
    pub(crate) label_locations: Vec<u32>,
    pub(crate) finalized: bool,
    pub(crate) overflowed: bool,
    pub(crate) data_pos: usize,
    pub(crate) code_pos: *mut u32,
    pub(crate) code_end: *mut u32,
}