dlpark 0.8.0

dlpack Rust binding for Python
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 = "dlpark"
version = "0.8.0"
build = false
include = [
    "CHANGELOG.md",
    "Cargo.lock",
    "Cargo.toml",
    "LICENSE",
    "README.md",
    "benches/**",
    "examples/profile_builder.rs",
    "src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "dlpack Rust binding for Python"
homepage = "https://crates.io/crates/dlpark"
documentation = "https://docs.rs/dlpark"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/SunDoge/dlpark"
resolver = "2"

[package.metadata.docs.rs]
no-default-features = true
features = [
    "candle",
    "half",
    "image",
    "ndarray",
]

[features]
candle = ["dep:candle-core"]
cpu-all = [
    "candle",
    "half",
    "image",
    "ndarray",
    "pyo3",
]
cudarc = [
    "cudarc/cuda-version-from-build-system",
    "cudarc/fallback-latest",
    "dep:cudarc",
]
default = []
half = ["dep:half"]
image = ["dep:image"]
miri = [
    "candle",
    "half",
    "image",
    "ndarray",
]
ndarray = ["dep:ndarray"]
pyo3 = ["dep:pyo3"]

[lib]
name = "dlpark"
path = "src/lib.rs"
doctest = false

[[example]]
name = "profile_builder"
path = "examples/profile_builder.rs"

[[bench]]
name = "builder"
path = "benches/builder.rs"
harness = false

[dependencies.bitflags]
version = "2.9"

[dependencies.candle-core]
version = "0.11"
optional = true

[dependencies.cudarc]
version = "0.19.2"
optional = true

[dependencies.half]
version = "2.7"
optional = true

[dependencies.image]
version = "0.25"
optional = true
default-features = false

[dependencies.ndarray]
version = "0.17"
features = ["std"]
optional = true
default-features = false

[dependencies.pyo3]
version = "0.29"
optional = true

[dependencies.snafu]
version = "0.9"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.pprof]
version = "0.15.0"
features = ["flamegraph"]

[profile.dev.package."*"]
opt-level = 2

[profile.profiling]
debug = 2
inherits = "release"