-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
31 lines (25 loc) · 785 Bytes
/
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
[package]
name = "dlpark"
version = "0.4.1"
edition = "2021"
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]
half = { version = "2.3", optional = true }
pyo3 = { version = "0.21", optional = true }
[workspace]
members = ["examples/from_numpy", "examples/with_pyo3", "examples/dlparkimg"]
[features]
default = []
pyo3 = ["dep:pyo3"]
half = ["dep:half"] # support f16 and bf16
# for examples/dlparkimg
[profile.dev.package."image"]
opt-level = 3