aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_vm/src/lib.rs
blob: 2210a571b6dfc1246bd162fc4ea540be7bd6097f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![allow(dead_code)]
#![warn(
    clippy::wildcard_imports,
    clippy::string_add,
    clippy::string_add_assign,
    clippy::manual_ok_or,
    unused_lifetimes
)]

const STACK_SIZE: usize = 1024;

pub struct VM {
    stack: [u8; STACK_SIZE],
    constants: Vec<u8>,
}

#[cfg(test)]
mod tests {
    #[test]
    fn add_program() {}
}