polyplug_dotnet 0.1.2

.NET loader for polyplug - loads .NET plugins via netcorehost
[package]
name = "polyplug_dotnet"
description = ".NET loader for polyplug - loads .NET plugins via netcorehost"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
keywords.workspace = true
categories.workspace = true

# docs.rs builds in a network-isolated sandbox; netcorehost loads hostfxr at runtime
# (no .NET SDK needed at build). Pin to the Linux target and expose the `docsrs` cfg.
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "docsrs"]

[lib]
name = "polyplug_dotnet"
path = "src/lib.rs"
crate-type = ["rlib", "cdylib"]

[dependencies]
polyplug = { workspace = true }
polyplug_abi = { workspace = true }
polyplug_utils = { workspace = true }
netcorehost = { workspace = true, features = ["nethost", "net10_0"] }
pelite = { workspace = true }
tempfile = { workspace = true }
once_cell = { workspace = true }
serde_json = { workspace = true }

[features]
download-nethost = ["netcorehost/nethost-download"]

[dev-dependencies]
criterion = { workspace = true }

[[bench]]
name = "dispatch_benchmark"
harness = false

[lints]
workspace = true