nvtx 2.0.0

NVIDIA Tools Extension SDK
# 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 = "2021"
rust-version = "1.77.0"
name = "nvtx"
version = "2.0.0"
authors = [
    "NVIDIA",
    "Voltron Data",
]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "NVIDIA Tools Extension SDK"
readme = "README.md"
keywords = [
    "cuda",
    "nsight",
    "nvidia",
    "nvtx",
    "profiling",
]
categories = [
    "api-bindings",
    "development-tools::profiling",
    "no-std",
]
license = "Apache-2.0 WITH LLVM-exception"
repository = "https://github.com/NVIDIA/NVTX"

[features]
alloc = [
    "dep:spin",
    "nvtx-sys/alloc",
    "widestring/alloc",
]
color-name = [
    "std",
    "dep:color-name",
]
cuda = ["nvtx-sys/cuda"]
cuda_runtime = ["nvtx-sys/cuda_runtime"]
default = [
    "std",
    "color-name",
    "name-current-thread",
    "cuda",
    "cuda_runtime",
    "tracing",
]
name-current-thread = [
    "std",
    "dep:gettid",
]
std = [
    "alloc",
    "nvtx-sys/std",
    "widestring/std",
]
tracing = [
    "std",
    "color-name",
    "dep:tracing-core",
    "dep:tracing-subscriber",
]

[lib]
name = "nvtx"
path = "src/lib.rs"

[[example]]
name = "domain"
path = "examples/domain.rs"
required-features = ["color-name"]

[[example]]
name = "domain_threads"
path = "examples/domain_threads.rs"
required-features = ["name-current-thread"]

[[example]]
name = "range"
path = "examples/range.rs"
required-features = ["color-name"]

[[example]]
name = "range_start_end"
path = "examples/range_start_end.rs"
required-features = ["color-name"]

[[example]]
name = "threads"
path = "examples/threads.rs"
required-features = ["name-current-thread"]

[[example]]
name = "tracing"
path = "examples/tracing.rs"
required-features = ["tracing"]

[dependencies.color-name]
version = "1.2.0"
optional = true

[dependencies.gettid]
version = "0.1.4"
optional = true

[dependencies.nvtx-sys]
version = "2.0.0"
default-features = false

[dependencies.spin]
version = "0.10.0"
optional = true

[dependencies.tracing-core]
version = "0.1.36"
optional = true

[dependencies.tracing-subscriber]
version = "0.3.23"
optional = true

[dependencies.widestring]
version = "1.2.1"
default-features = false

[dev-dependencies.tracing]
version = "0.1.41"
features = ["attributes"]

[target."cfg(unix)".dependencies.libc]
version = "0.2.183"

[lints.clippy]
alloc_instead_of_core = "deny"
allow_attributes = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
expect_used = "deny"
float_cmp = "allow"
implicit_return = "allow"
mod_module_files = "deny"
multiple_unsafe_ops_per_block = "deny"
panic = "deny"
print_stdout = "warn"
pub_use = "allow"
pub_with_shorthand = "allow"
pub_without_shorthand = "deny"
question_mark_used = "allow"
self_named_module_files = "allow"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
single_call_fn = "allow"
todo = "warn"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unreadable_literal = "allow"
unwrap_used = "deny"
use_debug = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.complexity]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1