diff options
| author | Cody <cody@codyq.dev> | 2023-03-30 02:44:54 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-03-30 02:44:54 -0500 |
| commit | 2970520a9592b5c6d45291f54073552a474b71b4 (patch) | |
| tree | f42ecc1be0989367cf7c70d0b7909bac0b86904e /crates/sloth_vm/src/lib.rs | |
| parent | bb95375f8b24141bf7dfe5a8b1bba5c995f61253 (diff) | |
| download | sloth-2970520a9592b5c6d45291f54073552a474b71b4.tar.gz | |
Restructure
Diffstat (limited to 'crates/sloth_vm/src/lib.rs')
| -rw-r--r-- | crates/sloth_vm/src/lib.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs new file mode 100644 index 0000000..2210a57 --- /dev/null +++ b/crates/sloth_vm/src/lib.rs @@ -0,0 +1,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() {} +} |
