lmcode-rust-sample

lmcode-rust-sample is the native Rust reference Shop and Ledger host embedding the vendored dslvm crate and passing the 123-case canonical sample suite. It verifies all 206 standard and 45 host signatures with zero unsafe blocks, multi-part builder slots, dry-mode sentinels, and LMCODE_RETURN framing.

Quick reference

git clone https://github.com/lmctl-ai/lmcode-rust-sample.git
cd lmcode-rust-sample
python3 scripts/sync.py check
cargo build --release
./test.sh
AspectValueRole
Language & toolchainRust (stable, zero crates.io dependencies)Reference host implementation embedding lmcode-rust (vendor/lmcode-rust/dslvm)
Domain schema45 host signaturesShop, Items, Money, Ledger, Currency enum, operators, and Adjuster/Score interfaces
Standard cataloglmcode_std_v3Preloaded standard catalog plus opt-in print and assert_close testing helpers
--lmcode-schema [--json]Discovery flagPrint human summary or exact embedded dsl.schema: 2 JSON bytes (exit 0)
--lmcode-signaturesDiscovery flagPrint sorted canonical host and standard signatures (exit 0)
--lmcode / --first / --lastExecution flagsRun one or more compiled DSLB v6 chunks, dispatch @item/@total entries, and frame results
./target/release/lmcode-rust-sample --version
./target/release/lmcode-rust-sample --lmcode-schema --json
./target/release/lmcode-rust-sample --lmcode-signatures
./target/release/lmcode-rust-sample --lmcode sample-suite/bytecode/001-literals.dslb

Documentation pages

Source repository and releases