[package]
edition = "2024"
rust-version = "1.88"
name = "rusttorch-data"
version = "0.4.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed datasets, samplers, batching, and loading for RustTorch"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/newpoluton-alt/RustTorch"
resolver = "2"
[package.metadata.docs.rs]
no-default-features = true
features = ["doc-only"]
[features]
default = []
doc-only = ["rusttorch-core/doc-only"]
download-libtorch = ["rusttorch-core/download-libtorch"]
[lib]
name = "rusttorch_data"
path = "src/lib.rs"
[[example]]
name = "checkpoint"
path = "examples/checkpoint.rs"
[[example]]
name = "loader"
path = "examples/loader.rs"
[[test]]
name = "batch_sampler"
path = "tests/batch_sampler.rs"
[[test]]
name = "checkpoint_map"
path = "tests/checkpoint_map.rs"
[[test]]
name = "checkpoint_stream"
path = "tests/checkpoint_stream.rs"
[[test]]
name = "collate"
path = "tests/collate.rs"
[[test]]
name = "current_api"
path = "tests/current_api.rs"
[[test]]
name = "datasets"
path = "tests/datasets.rs"
[[test]]
name = "distributed_sampler"
path = "tests/distributed_sampler.rs"
[[test]]
name = "loader_builder"
path = "tests/loader_builder.rs"
[[test]]
name = "map_workers"
path = "tests/map_workers.rs"
[[test]]
name = "memory_budget"
path = "tests/memory_budget.rs"
[[test]]
name = "pin_memory"
path = "tests/pin_memory.rs"
[[test]]
name = "samplers"
path = "tests/samplers.rs"
[[test]]
name = "stream_workers"
path = "tests/stream_workers.rs"
[[test]]
name = "transform"
path = "tests/transform.rs"
[[test]]
name = "worker_context"
path = "tests/worker_context.rs"
[[test]]
name = "worker_lifecycle"
path = "tests/worker_lifecycle.rs"
[[bench]]
name = "data_loader"
path = "benches/data_loader.rs"
harness = false
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.rand]
version = "0.8"
[dependencies.rand_chacha]
version = "0.3"
[dependencies.rusttorch-core]
version = "=0.4.0"
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tch]
version = "=0.26.0"
default-features = false