# 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.63" name = "ai-dataloader" version = "0.6.2" authors = ["Tudy Gourmelen "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rust implementation to the PyTorch DataLoader" documentation = "https://docs.rs/ai-dataloader/" readme = "README.md" keywords = [ "dataloader", "pytorch", "tensorflow", "AI", "machine_learning", ] categories = ["science"] license = "MIT OR Apache-2.0" repository = "https://github.com/Tudyx/ai-dataloader" [package.metadata.docs.rs] all-features = true features = ["tch/doc-only"] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "ai_dataloader" path = "src/lib.rs" bench = false [[example]] name = "iterable" path = "examples/iterable.rs" [[test]] name = "integration_tests" path = "tests/integration_tests.rs" [[bench]] name = "throughput" path = "benches/throughput.rs" harness = false [dependencies.itertools] version = "0.13.0" [dependencies.ndarray] version = "0.15.4" features = ["serde"] [dependencies.ndarray-rand] version = "0.14.0" [dependencies.once_cell] version = "1.17.1" optional = true [dependencies.rand] version = "0.8.5" [dependencies.rayon] version = "1.7.0" optional = true [dependencies.tch] version = "0.17.0" features = ["download-libtorch"] optional = true [dev-dependencies.criterion] version = "0.5.1" features = ["html_reports"] [dev-dependencies.csv] version = "1.1.6" [dev-dependencies.image] version = "0.25.1" [dev-dependencies.nshare] version = "0.9.0" features = [ "ndarray", "image", ] [features] default = ["rayon"] rayon = [ "dep:rayon", "dep:once_cell", ] [lints.clippy] clone_on_ref_ptr = "warn" fn_params_excessive_bools = "warn" module_name_repetitions = "allow" [lints.clippy.all] level = "warn" priority = -1 [lints.clippy.cargo] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] missing_debug_implementations = "warn" missing_docs = "warn" [lints.rust.rust_2018_idioms] level = "warn" priority = -1 [lints.rust.rust_2024_compatibility] level = "warn" priority = -1