-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (47 loc) · 1.4 KB
/
Cargo.toml
File metadata and controls
59 lines (47 loc) · 1.4 KB
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
[package]
name = "dlpark"
version = "0.6.0"
edition = "2024"
authors = ["SunDoge"]
license = "Apache-2.0"
description = "dlpack Rust binding for Python"
homepage = "https://crates.io/crates/dlpark"
documentation = "https://docs.rs/dlpark"
repository = "https://github.com/SunDoge/dlpark"
readme = "README.md"
exclude = [".github/"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bitflags = "2.9"
candle-core = { workspace = true, optional = true }
cudarc = { workspace = true, optional = true }
half = { workspace = true, optional = true }
image = { workspace = true, optional = true }
ndarray = { workspace = true, optional = true }
pyo3 = { workspace = true, optional = true }
snafu = "0.8"
[workspace]
members = ["examples/dlparkimg"]
resolver = "2"
[workspace.dependencies]
candle-core = "0.9"
half = "2.6"
ndarray = "0.17"
pyo3 = "0.28"
image = "0.25"
dlpark = { path = ".", default-features = false } # Add dlpark as a workspace dependency
cudarc = "0.19.2"
[features]
default = []
pyo3 = ["dep:pyo3"]
# support f16 and bf16
half = ["dep:half"]
ndarray = ["dep:ndarray"]
image = ["dep:image"]
cuda = ["cudarc/fallback-latest", "cudarc/cuda-version-from-build-system"]
# Not supported yet
# candle-cpu = ["dep:candle-core"]
# candle-cuda = ["dep:candle-core", "candle-core/cuda"]
# for examples/dlparkimg
[profile.dev.package."image"]
opt-level = 3