[dependencies.coreclr-hosting-shared]
default-features = false
version = "0.1"
[dependencies.derive_more]
default-features = false
features = ["deref", "from", "display"]
version = "2.0"
[dependencies.destruct-drop]
default-features = false
version = "0.2"
[dependencies.enum-map]
default-features = false
version = "2.7"
[dependencies.fn-ptr]
default-features = false
version = "0.9"
[dependencies.hostfxr-sys]
default-features = false
features = ["enum-map", "undocumented", "wrapper", "optional-apis"]
version = "0.13"
[dependencies.nethost-sys]
default-features = false
optional = true
version = "0.7"
[dependencies.num_enum]
default-features = false
version = "0.7"
[dependencies.once_cell]
default-features = false
version = "1.21"
[dependencies.thiserror]
default-features = false
version = "2.0"
[dev-dependencies.current_platform]
version = "0.2"
[dev-dependencies.glob]
version = "0.3"
[dev-dependencies.path-absolutize]
version = "3.1"
[dev-dependencies.rusty-fork]
version = "0.3"
[dev-dependencies.trybuild]
version = "1.0"
[dev-dependencies.widestring]
version = "1.2"
[[example]]
name = "call-managed-function"
path = "examples/call-managed-function/main.rs"
[[example]]
name = "call-native-function"
path = "examples/call-native-function/main.rs"
[[example]]
name = "passing-parameters"
path = "examples/passing-parameters/main.rs"
[[example]]
name = "return-string-from-managed"
path = "examples/return-string-from-managed/main.rs"
[[example]]
name = "run-app"
path = "examples/run-app/main.rs"
[[example]]
name = "run-app-with-args"
path = "examples/run-app-with-args/main.rs"
[features]
default = ["nethost-download", "net10_0", "utils"]
doc-cfg = []
latest = ["hostfxr-sys/latest", "net10_0"]
net10_0 = ["hostfxr-sys/net10_0", "net9_0"]
net5_0 = ["hostfxr-sys/net5_0", "netcore3_0"]
net6_0 = ["hostfxr-sys/net6_0", "net5_0"]
net7_0 = ["hostfxr-sys/net7_0", "net6_0"]
net8_0 = ["hostfxr-sys/net8_0", "net7_0"]
net9_0 = ["hostfxr-sys/net9_0", "net8_0"]
netcore1_0 = ["hostfxr-sys/netcore1_0"]
netcore2_0 = ["hostfxr-sys/netcore2_0", "netcore1_0"]
netcore2_1 = ["hostfxr-sys/netcore2_1", "netcore2_0"]
netcore3_0 = ["hostfxr-sys/netcore3_0", "netcore2_1"]
nethost = ["nethost-sys"]
nethost-download = ["nethost", "nethost-sys/download-nuget"]
nightly = []
utils = ["libc"]
[lib]
name = "netcorehost"
path = "src/lib.rs"
[package]
authors = ["OpenByte <development.openbyte@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "development-tools::ffi"]
description = "A Rust library for hosting the .NET Core runtime."
documentation = "https://docs.rs/netcorehost"
edition = "2024"
keywords = ["nethost", "hostfxr", "dotnet", "coreclr"]
license = "MIT"
name = "netcorehost"
readme = "README.md"
repository = "https://github.com/OpenByteDev/netcorehost"
version = "0.20.0"
[package.metadata.docs.rs]
features = ["nethost", "latest", "doc-cfg", "nightly", "utils"]
no-default-features = true
[target."cfg(not(windows))".dependencies.cstr]
default-features = false
version = "0.2"
[target."cfg(not(windows))".dependencies.libc]
default-features = false
optional = true
version = "0.2"
[target."cfg(not(windows))".dev-dependencies.libc]
default-features = false
version = "0.2"
[target."cfg(windows)".dependencies.widestring]
default-features = false
features = ["std"]
version = "1.2"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "custom_delegate_type"
path = "tests/custom_delegate_type.rs"
[[test]]
name = "environment_info"
path = "tests/environment_info.rs"
[[test]]
name = "error_writer"
path = "tests/error_writer.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "hello_world"
path = "tests/hello_world.rs"
[[test]]
name = "load_assembly_manually"
path = "tests/load_assembly_manually.rs"
[[test]]
name = "manual_close_frees_lib"
path = "tests/manual_close_frees_lib.rs"
[[test]]
name = "pdcstr"
path = "tests/pdcstr.rs"
[[test]]
name = "primary_and_secondary"
path = "tests/primary_and_secondary.rs"
[[test]]
name = "run_app"
path = "tests/run_app.rs"
[[test]]
name = "runtime_properties"
path = "tests/runtime_properties.rs"
[[test]]
name = "sdk_resolve"
path = "tests/sdk_resolve.rs"
[[test]]
name = "unhandled_managed_exeptions"
path = "tests/unhandled_managed_exeptions.rs"
[[test]]
name = "unmanaged_callers_only"
path = "tests/unmanaged_callers_only.rs"