# hf-xet
[](https://crates.io/crates/hf-xet)
[](https://docs.rs/hf-xet)
[](https://github.com/huggingface/xet-core/blob/main/LICENSE)
Client library for the [Hugging Face Xet](https://github.com/huggingface/xet-core)
data storage system. Provides the high-level session API for uploading and
downloading files with chunk-based deduplication.
## Overview
- **XetSession** — Top-level session managing authentication, configuration,
and concurrent file transfers
- **Upload & download** — Stream files to/from Hugging Face Hub with automatic
chunking, deduplication, and local caching
## Crate Ecosystem
`hf-xet` ties together the lower-level xet-core crates:
| [`xet-runtime`](https://crates.io/crates/xet-runtime) | Async runtime, config, logging |
| [`xet-core-structures`](https://crates.io/crates/xet-core-structures) | Merkle hashes, shards, Xorb objects |
| [`xet-client`](https://crates.io/crates/xet-client) | HTTP client for CAS and Hub APIs |
| [`xet-data`](https://crates.io/crates/xet-data) | Chunking, dedup, file reconstruction |
This crate is part of [xet-core](https://github.com/huggingface/xet-core),
the Rust backend for [huggingface_hub](https://github.com/huggingface/huggingface_hub).
## License
Apache-2.0