add: compiler

This commit is contained in:
2026-03-12 21:41:30 -07:00
parent 90de2206db
commit 3498b018e5
10 changed files with 6190 additions and 78 deletions

21
rpgrt/Cargo.toml Normal file
View File

@@ -0,0 +1,21 @@
[package]
name = "rpgrt"
version = "0.1.0"
edition = "2021"
# ─────────────────────────────────────────────────────────────────────────────
# Build as a C-compatible shared library (librpgrt.so) so that RPG IV programs
# compiled by rust-langrpg can link against it at runtime.
# ─────────────────────────────────────────────────────────────────────────────
[lib]
name = "rpgrt"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
# cdylib → produces librpgrt.so (loaded by compiled RPG binaries)
# rlib → allows `cargo test` to run the unit tests in src/lib.rs
[dependencies]
# No external dependencies — the runtime is intentionally minimal and relies
# only on the Rust standard library and libc (linked automatically).