-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
77 lines (65 loc) · 1.7 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[workspace]
members = ["crates/nvtx-sys"]
[workspace.package]
version = "0.1.0"
authors = ["Voltron Data"]
edition = "2021"
rust-version = "1.77.0"
description = "NVIDIA NVTX bindings for Rust"
repository = "https://github.com/voltrondata/nvtx-rs"
readme = "README.md"
publish = false
license = "Apache-2.0"
[package]
name = "nvtx"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
description.workspace = true
repository.workspace = true
readme.workspace = true
publish.workspace = true
license.workspace = true
[features]
default = [
"color-name",
"name-current-thread",
"cuda",
"cuda_runtime",
"tracing",
]
color-name = ["dep:color-name"]
name-current-thread = ["dep:gettid"]
cuda = ["nvtx-sys/cuda"]
cuda_runtime = ["nvtx-sys/cuda_runtime"]
tracing = ["dep:tracing-core", "dep:tracing-subscriber", "dep:color-name"]
[dependencies]
color-name = { version = "1.1.0", optional = true }
gettid = { version = "0.1.3", optional = true }
nvtx-sys = { path = "crates/nvtx-sys" }
tracing-core = { version = "0.1.33", optional = true }
tracing-subscriber = { version = "0.3.19", optional = true }
widestring = "1.1.0"
[dev-dependencies]
tracing = { version = "0.1.41", features = ["attributes"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2.168"
[[example]]
name = "domain"
required-features = ["color-name"]
[[example]]
name = "range"
required-features = ["color-name"]
[[example]]
name = "range_start_end"
required-features = ["color-name"]
[[example]]
name = "threads"
required-features = ["name-current-thread"]
[[example]]
name = "domain_threads"
required-features = ["name-current-thread"]
[[example]]
name = "tracing"
required-features = ["tracing"]