-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
60 lines (54 loc) · 2.29 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[package]
name = "netcorehost"
version = "0.17.0"
description = "A Rust library for hosting the .NET Core runtime."
readme = "README.md"
repository = "https://github.com/OpenByteDev/netcorehost"
documentation = "https://docs.rs/netcorehost"
license = "MIT"
authors = ["OpenByte <[email protected]>"]
edition = "2021"
categories = ["api-bindings", "external-ffi-bindings"]
keywords = ["nethost", "hostfxr", "dotnet", "bindings", "coreclr"]
[dependencies]
num_enum = { version = "0.7", default-features = false }
thiserror = { version = "1.0", default-features = false }
derive_more = { version = "0.99", features = ["deref", "from", "display"], default-features = false }
hostfxr-sys = { version = "0.11", features = ["enum-map", "undocumented", "wrapper", "optional-apis"], default-features = false }
coreclr-hosting-shared = { version = "0.1", default-features = false }
destruct-drop = { version = "0.2", default-features = false }
ffi-opaque = { version = "2.0", default-features = false }
enum-map = { version = "2.7", default-features = false }
once_cell = { version = "1.19", default-features = false }
nethost-sys = { version = "0.7", optional = true, default-features = false }
[target.'cfg(windows)'.dependencies]
widestring = { version = "1.1", features = ["std"], default-features = false }
[target.'cfg(not(windows))'.dependencies]
cstr = { version = "0.2", default-features = false }
[dev-dependencies]
trybuild = "1.0"
current_platform = "0.2"
glob = "0.3"
widestring = "1.1"
rusty-fork = "0.3"
path-absolutize = "3.1"
[features]
default = ["nethost-download", "net8_0"]
nethost-download = ["nethost", "nethost-sys/download-nuget"]
nethost = ["nethost-sys"]
nightly = []
doc-cfg = []
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"]
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/net8_0", "net8_0"]
latest = ["hostfxr-sys/latest", "net9_0"]
# Prevent downloading nethost library when building on docs.rs.
[package.metadata.docs.rs]
features = ["nethost", "latest", "doc-cfg", "nightly"]
no-default-features = true