From af755a1241b839d89e24d4e2d27e278f87b35ee5 Mon Sep 17 00:00:00 2001 From: bQUARKz Date: Fri, 20 Feb 2026 19:49:23 +0000 Subject: [PATCH] clean up --- Cargo.lock | 9 ++++++++- Cargo.toml | 1 + VERSION.txt | 2 +- crates/console/prometeu-bytecode/src/abi.rs | 2 -- crates/console/prometeu-bytecode/src/lib.rs | 4 ++-- crates/console/prometeu-hal/src/cartridge_loader.rs | 2 +- crates/console/prometeu-vm/src/lib.rs | 2 +- crates/host/prometeu-host-desktop-winit/Cargo.toml | 2 +- crates/tools/prometeu-cli/Cargo.toml | 3 --- 9 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 87129c7d..f22bfef7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1469,6 +1469,14 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +[[package]] +name = "pbxgen-stress" +version = "0.1.0" +dependencies = [ + "anyhow", + "prometeu-bytecode", +] + [[package]] name = "percent-encoding" version = "2.3.2" @@ -1606,7 +1614,6 @@ dependencies = [ name = "prometeu-cli" version = "0.1.0" dependencies = [ - "anyhow", "clap", "prometeu-host-desktop-winit", ] diff --git a/Cargo.toml b/Cargo.toml index b3c850e5..7e6459fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ members = [ "crates/host/prometeu-host-desktop-winit", "crates/tools/prometeu-cli", + "crates/tools/pbxgen-stress", "crates/dev/prometeu-test-support", "crates/dev/prometeu-layer-tests", "crates/dev/prometeu-quality-checks", diff --git a/VERSION.txt b/VERSION.txt index 6e8bf73a..8b137891 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.1.0 + diff --git a/crates/console/prometeu-bytecode/src/abi.rs b/crates/console/prometeu-bytecode/src/abi.rs index 9349f5a6..d0d76f98 100644 --- a/crates/console/prometeu-bytecode/src/abi.rs +++ b/crates/console/prometeu-bytecode/src/abi.rs @@ -1,8 +1,6 @@ //! This module defines the Application Binary Interface (ABI) of the Prometeu Virtual Machine. //! It specifies how instructions are encoded in bytes and how they interact with memory. -// --- Runtime Trap Codes (post-HIP reset) --- - /// Attempted to execute an unknown or invalid opcode. pub const TRAP_ILLEGAL_INSTRUCTION: u32 = 0x0000_0001; /// Out-of-bounds access (e.g., stack/heap/local index out of range). diff --git a/crates/console/prometeu-bytecode/src/lib.rs b/crates/console/prometeu-bytecode/src/lib.rs index 70e19eb8..f0d3dd9f 100644 --- a/crates/console/prometeu-bytecode/src/lib.rs +++ b/crates/console/prometeu-bytecode/src/lib.rs @@ -1,14 +1,14 @@ mod abi; mod decoder; mod layout; -mod model; +pub mod model; mod opcode; mod opcode_spec; mod program_image; mod value; pub mod isa; // canonical ISA boundary (core and future profiles) mod disassembler; -mod assembler; +pub mod assembler; pub use abi::{ TrapInfo, TRAP_BAD_RET_SLOTS, TRAP_DIV_ZERO, TRAP_ILLEGAL_INSTRUCTION, TRAP_INVALID_FUNC, diff --git a/crates/console/prometeu-hal/src/cartridge_loader.rs b/crates/console/prometeu-hal/src/cartridge_loader.rs index 7919d8f9..da773018 100644 --- a/crates/console/prometeu-hal/src/cartridge_loader.rs +++ b/crates/console/prometeu-hal/src/cartridge_loader.rs @@ -43,7 +43,7 @@ impl DirectoryCartridgeLoader { return Err(CartridgeError::UnsupportedVersion); } - let program_path = path.join("program.pbc"); + let program_path = path.join("program.pbx"); if !program_path.exists() { return Err(CartridgeError::MissingProgram); } diff --git a/crates/console/prometeu-vm/src/lib.rs b/crates/console/prometeu-vm/src/lib.rs index e124f737..11c89bb3 100644 --- a/crates/console/prometeu-vm/src/lib.rs +++ b/crates/console/prometeu-vm/src/lib.rs @@ -5,7 +5,7 @@ mod local_addressing; #[cfg(not(test))] mod verifier; #[cfg(test)] -pub mod verifier; +mod verifier; mod virtual_machine; mod vm_init_error; mod object; diff --git a/crates/host/prometeu-host-desktop-winit/Cargo.toml b/crates/host/prometeu-host-desktop-winit/Cargo.toml index 4b7f0afb..9d10ccd1 100644 --- a/crates/host/prometeu-host-desktop-winit/Cargo.toml +++ b/crates/host/prometeu-host-desktop-winit/Cargo.toml @@ -11,7 +11,7 @@ path = "src/main.rs" [package.metadata.dist] dist = true -include = ["../../VERSION.txt"] +include = ["../../../VERSION.txt"] [dependencies] prometeu-firmware = { path = "../../console/prometeu-firmware" } diff --git a/crates/tools/prometeu-cli/Cargo.toml b/crates/tools/prometeu-cli/Cargo.toml index 29aef0bc..cd07bdfa 100644 --- a/crates/tools/prometeu-cli/Cargo.toml +++ b/crates/tools/prometeu-cli/Cargo.toml @@ -16,11 +16,8 @@ path = "src/bin/prometeu-runtime.rs" [package.metadata.dist] dist = true include = [ - "../../../VERSION.txt", - "../../../dist-staging/devtools/debugger-protocol" ] [dependencies] clap = { version = "4.5", features = ["derive"] } prometeu-host-desktop-winit = { path = "../../host/prometeu-host-desktop-winit" } -anyhow = "1.0.100"