add: compiler
This commit is contained in:
21
rpgrt/Cargo.toml
Normal file
21
rpgrt/Cargo.toml
Normal 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).
|
||||
Reference in New Issue
Block a user