-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
65 lines (54 loc) · 1.69 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
[package]
name = "ai-dataloader"
version = "0.6.2"
authors = ["Tudy Gourmelen <[email protected]>"]
edition = "2021"
description = "Rust implementation to the PyTorch DataLoader"
readme = "README.md"
repository = "https://github.com/Tudyx/ai-dataloader"
documentation = "https://docs.rs/ai-dataloader/"
license = "MIT OR Apache-2.0"
keywords = ["dataloader", "pytorch", "tensorflow", "AI", "machine_learning"]
categories = ["science"]
rust-version = "1.63"
[lib]
bench = false
[package.metadata.docs.rs]
all-features = true
# tch doc are broken without this feature.
features = ["tch/doc-only"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["rayon"]
rayon = ["dep:rayon", "dep:once_cell"]
[dependencies]
ndarray = { version = "0.15.4", features = ["serde"] }
ndarray-rand = "0.14.0"
itertools = "0.13.0"
rand = "0.8.5"
tch = { version = "0.18.0", optional = true, features = ["download-libtorch"] }
rayon = { version = "1.7.0", optional = true }
once_cell = { version = "1.17.1", optional = true }
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
csv = "1.1.6"
image = "0.25.1"
nshare = { version = "0.9.0", features = ["ndarray", "image"] }
[[example]]
name = "iterable"
path = "examples/iterable.rs"
[[bench]]
name = "throughput"
harness = false
[lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
rust_2024_compatibility = { level = "warn", priority = -1 }
missing_docs = "warn"
missing_debug_implementations = "warn"
[lints.clippy]
all = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
clone_on_ref_ptr = "warn"
fn_params_excessive_bools = "warn"
module_name_repetitions = "allow"