[package]
edition = "2024"
rust-version = "1.95.0"
name = "mono-rt"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dynamic bindings to the Mono runtime for process injection into Unity games and Mono-hosted applications on Windows"
readme = "README.md"
keywords = [
"mono",
"unity",
"runtime",
"bindings",
"gamedev",
]
categories = [
"game-development",
"api-bindings",
"os::windows-apis",
]
license = "GPL-3.0-only"
repository = "https://github.com/theo-abel/mono-rt"
[package.metadata.docs.rs]
targets = ["x86_64-pc-windows-msvc"]
exclude = [
"src/bin/**",
"tests/fixtures/**",
]
[features]
integration-tests = []
[lib]
name = "mono_rt"
path = "src/lib.rs"
[[bin]]
name = "mono-rt-integration"
path = "src/bin/integration/main.rs"
required-features = ["integration-tests"]
[[test]]
name = "field_rw"
path = "tests/field_rw.rs"
[[test]]
name = "handle_types"
path = "tests/handle_types.rs"
[[test]]
name = "init_errors"
path = "tests/init_errors.rs"
[[test]]
name = "null_bytes"
path = "tests/null_bytes.rs"
[[test]]
name = "uninit"
path = "tests/uninit.rs"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1.44"
[dependencies.windows]
version = "0.62.2"
features = [
"Win32_Foundation",
"Win32_System_LibraryLoader",
]
[lints.clippy]
pedantic = "warn"
[lints.rust]
warnings = "deny"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
strip = true