netcorehost 0.20.1

A Rust library for hosting the .NET Core runtime.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "netcorehost"
version = "0.20.1"
authors = ["OpenByte <development.openbyte@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for hosting the .NET Core runtime."
documentation = "https://docs.rs/netcorehost"
readme = "README.md"
keywords = [
    "nethost",
    "hostfxr",
    "dotnet",
    "coreclr",
]
categories = [
    "api-bindings",
    "development-tools::ffi",
]
license = "MIT"
repository = "https://github.com/OpenByteDev/netcorehost"

[package.metadata.docs.rs]
features = [
    "nethost",
    "latest",
    "doc-cfg",
    "nightly",
    "utils",
]
no-default-features = true

[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"

[[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"

[[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"

[dependencies.coreclr-hosting-shared]
version = "0.1"
default-features = false

[dependencies.derive_more]
version = "2.1"
features = [
    "deref",
    "from",
    "display",
]
default-features = false

[dependencies.destruct-drop]
version = "0.2"
default-features = false

[dependencies.enum-map]
version = "2.7"
default-features = false

[dependencies.fn-ptr]
version = "0.9"
default-features = false

[dependencies.hostfxr-sys]
version = "0.13"
features = [
    "enum-map",
    "undocumented",
    "wrapper",
    "optional-apis",
]
default-features = false

[dependencies.nethost-sys]
version = "0.8"
optional = true
default-features = false

[dependencies.num_enum]
version = "0.7"
default-features = false

[dependencies.once_cell]
version = "1.21"
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[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"

[target."cfg(not(windows))".dependencies.cstr]
version = "0.2"
default-features = false

[target."cfg(not(windows))".dependencies.libc]
version = "0.2"
optional = true
default-features = false

[target."cfg(not(windows))".dev-dependencies.libc]
version = "0.2"
default-features = false

[target."cfg(windows)".dependencies.widestring]
version = "1.2"
features = ["std"]
default-features = false