[package]
edition = "2024"
rust-version = "1.85"
name = "polyplug_dotnet"
version = "0.1.1"
authors = ["Islam Nofl (corrm) <islamnofl.official@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = ".NET loader for polyplug - loads .NET plugins via netcorehost"
homepage = "https://github.com/polyplug/polyplug"
readme = false
keywords = [
"plugin",
"runtime",
"ffi",
"cross-language",
"abi",
]
categories = [
"development-tools",
"api-bindings",
]
license = "MIT"
repository = "https://github.com/polyplug/polyplug"
resolver = "2"
[features]
download-nethost = ["netcorehost/nethost-download"]
[lib]
name = "polyplug_dotnet"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[test]]
name = "dotnet_loader"
path = "tests/dotnet_loader.rs"
[[bench]]
name = "dispatch_benchmark"
path = "benches/dispatch_benchmark.rs"
harness = false
[dependencies.netcorehost]
version = "0.20"
features = [
"nethost",
"net10_0",
]
[dependencies.once_cell]
version = "1.21"
[dependencies.pelite]
version = "0.10"
[dependencies.polyplug]
version = "0.1.1"
[dependencies.polyplug_abi]
version = "0.1.1"
[dependencies.polyplug_utils]
version = "0.1.1"
[dependencies.serde_json]
version = "1.0"
[dependencies.tempfile]
version = "3.27"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[lints.clippy]
clone_on_ref_ptr = "warn"
expect_used = "warn"
std_instead_of_core = "warn"
undocumented_unsafe_blocks = "warn"
unwrap_used = "deny"
[lints.rust]
improper_ctypes_definitions = "deny"
unsafe_op_in_unsafe_fn = "warn"