luaur-common 0.1.1

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate alloc;

use crate::records::event::Event;
use crate::records::global_context::GlobalContext;
use alloc::vec::Vec;
use std::sync::Arc;

#[derive(Debug, Clone)]
pub struct ThreadContext {
    pub(crate) global_context: Arc<GlobalContext>,
    pub(crate) thread_id: u32,
    pub(crate) events: Vec<Event>,
    pub(crate) data: Vec<core::ffi::c_char>,
}

impl ThreadContext {
    pub(crate) const kEventFlushLimit: usize = 8192;
}