LibJS: Extract BytecodeDef into a shared Rust crate

Move the Bytecode.def parser, field type info, and layout computation
out of Rust/build.rs into a standalone BytecodeDef crate. This allows
both the Rust bytecode codegen (build.rs) and the upcoming AsmIntGen
tool to share a single source of truth for instruction field offsets
and sizes.

The AsmIntGen directory is excluded from the workspace since it has
its own Cargo.toml and is built separately by CMake.
This commit is contained in:
Andreas Kling
2026-03-06 22:07:06 +01:00
committed by Andreas Kling
parent 24e0b704b9
commit d2760d09b7
Notes: github-actions[bot] 2026-03-07 12:12:23 +00:00
6 changed files with 273 additions and 194 deletions

View File

@@ -13,3 +13,6 @@ unicode-ident = "1.0"
num-bigint = "0.4"
num-traits = "0.2"
num-integer = "0.1"
[build-dependencies]
bytecode_def = { path = "../BytecodeDef" }