brik64-bir 2.0.0

BRIK-64 BIR bytecode runtime — embed the BIR interpreter in any Rust project
Documentation
  • Coverage
  • 100%
    29 out of 29 items documented3 out of 14 items with examples
  • Size
  • Source code size: 16.72 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • brik64-admin

brik64-bir

Crates.io docs.rs License

Embeddable BRIK-64 BIR bytecode runtime for Rust.

BIR (BRIK Intermediate Representation) is the portable bytecode format produced by the brikc compiler. This crate lets you load and execute BIR programs from any Rust project — no compiler toolchain required at runtime.

Installation

[dependencies]
brik64-bir = "2.0"

Usage

use brik64_bir::{BirModule, BirInterpreter};

let bir_source = std::fs::read_to_string("program.bir").unwrap();
let module = BirModule::parse(&bir_source).unwrap();
let mut interp = BirInterpreter::new(module);
let result = interp.run("fn::main", &[]).unwrap();
println!("Result: {}", result);

BIR Format

BIR is a human-readable line-based bytecode:

FUNCTION fn::add [$a $b] -> i64
  LOAD $x $a
  LOAD $y $b
  CALL_MC 0          ; MC_00 ADD8
  STORE $result $r0
  RETURN $result
END

Links

License

Apache-2.0 — © 2026 BRIK-64 Inc.