xet-core-structures 1.5.1

Core data structures including MerkleHash, metadata shards, and Xorb objects.
Documentation
# 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 = "2024"
name = "xet-core-structures"
version = "1.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core data structures including MerkleHash, metadata shards, and Xorb objects."
homepage = "https://github.com/huggingface/xet-core"
readme = "README.md"
keywords = ["huggingface"]
categories = [
    "artificial-intelligence",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/huggingface/xet-core"
resolver = "2"

[features]
simulation = ["xet-runtime/simulation"]
smoke-test = []
strict = []

[lib]
name = "xet_core_structures"
path = "src/lib.rs"

[[bin]]
name = "bg4_prediction_benchmark"
path = "src/xorb_object/byte_grouping/bg4_prediction_benchmark.rs"

[[bin]]
name = "collect_compression_stats"
path = "src/xorb_object/byte_grouping/compression_stats/collect_compression_stats.rs"

[[bin]]
name = "shard_benchmark"
path = "src/metadata_shard/shard_benchmark.rs"

[[bench]]
name = "bg_split_regroup_bench"
path = "benches/bg_split_regroup_bench.rs"
bench = true
harness = false

[[bench]]
name = "compression_bench"
path = "benches/compression_bench.rs"
bench = true
harness = false

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1.8"

[dependencies.bytes]
version = "1.11"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.countio]
version = "0.3"
features = ["futures"]

[dependencies.csv]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.heapify]
version = "0.2"

[dependencies.itertools]
version = "0.14"

[dependencies.lazy_static]
version = "1.5"

[dependencies.lz4_flex]
version = "0.13"

[dependencies.more-asserts]
version = "0.3"

[dependencies.rand]
version = "0.9"
features = ["small_rng"]

[dependencies.regex]
version = "1"

[dependencies.safe-transmute]
version = "0.11"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.static_assertions]
version = "1.1"

[dependencies.tempfile]
version = "3.25"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.xet-runtime]
version = "1.5.1"

[dev-dependencies.bincode]
version = "1.3"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.half]
version = "2.7"

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tokio]
version = "1.49"
features = [
    "rt-multi-thread",
    "macros",
]

[target.'cfg(not(target_family = "wasm"))'.dependencies.bytemuck]
version = "1"

[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1.49"
features = [
    "time",
    "rt",
    "macros",
    "sync",
    "test-util",
    "io-util",
    "rt-multi-thread",
]

[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio-util]
version = "0.7"
features = ["io"]

[target.'cfg(not(target_family = "wasm"))'.dependencies.uuid]
version = "1"
features = ["v4"]

[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tempfile]
version = "3.25"

[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.4"
features = [
    "wasm_js",
    "wasm_js",
]

[target.'cfg(target_family = "wasm")'.dependencies.tokio]
version = "1.49"
features = [
    "sync",
    "macros",
    "io-util",
    "rt",
    "time",
]

[target.'cfg(target_family = "wasm")'.dependencies.uuid]
version = "1"
features = [
    "v4",
    "js",
]

[target.'cfg(target_family = "wasm")'.dependencies.web-time]
version = "1.1"