tinyquant-core 0.0.0

CPU-only vector quantization codec — core types, codec, corpus, and backend trait (no_std).
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 = "2021"
rust-version = "1.81"
name = "tinyquant-core"
version = "0.0.0"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU-only vector quantization codec — core types, codec, corpus, and backend trait (no_std)."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/better-with-models/TinyQuant"

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

[[example]]
name = "dump_codec_fixture"
path = "examples/dump_codec_fixture.rs"

[[example]]
name = "dump_rotation_fixture"
path = "examples/dump_rotation_fixture.rs"
required-features = ["std"]

[[test]]
name = "backend_trait"
path = "tests/backend_trait.rs"

[[test]]
name = "batch_determinism"
path = "tests/batch_determinism.rs"

[[test]]
name = "batch_parallel"
path = "tests/batch_parallel.rs"

[[test]]
name = "codebook"
path = "tests/codebook.rs"

[[test]]
name = "codec_config"
path = "tests/codec_config.rs"

[[test]]
name = "codec_fixture_parity"
path = "tests/codec_fixture_parity.rs"

[[test]]
name = "codec_service"
path = "tests/codec_service.rs"

[[test]]
name = "compressed_vector"
path = "tests/compressed_vector.rs"

[[test]]
name = "compression_policy"
path = "tests/compression_policy.rs"

[[test]]
name = "corpus_aggregate"
path = "tests/corpus_aggregate.rs"

[[test]]
name = "corpus_events"
path = "tests/corpus_events.rs"

[[test]]
name = "corpus_insertion_order"
path = "tests/corpus_insertion_order.rs"

[[test]]
name = "entry_meta_value"
path = "tests/entry_meta_value.rs"

[[test]]
name = "errors"
path = "tests/errors.rs"

[[test]]
name = "quantize"
path = "tests/quantize.rs"

[[test]]
name = "residual"
path = "tests/residual.rs"

[[test]]
name = "rotation_cache"
path = "tests/rotation_cache.rs"

[[test]]
name = "rotation_fixture_parity"
path = "tests/rotation_fixture_parity.rs"

[[test]]
name = "rotation_matrix"
path = "tests/rotation_matrix.rs"

[[test]]
name = "simd_dispatch_cache"
path = "tests/simd_dispatch_cache.rs"

[[test]]
name = "simd_parity_all_dispatch"
path = "tests/simd_parity_all_dispatch.rs"

[[test]]
name = "simd_parity_avx2"
path = "tests/simd_parity_avx2.rs"

[[test]]
name = "simd_parity_neon"
path = "tests/simd_parity_neon.rs"

[[test]]
name = "simd_parity_scalar"
path = "tests/simd_parity_scalar.rs"

[[test]]
name = "simd_parity_under_every_dispatch"
path = "tests/simd_parity_under_every_dispatch.rs"

[[test]]
name = "smoke"
path = "tests/smoke.rs"

[[test]]
name = "types"
path = "tests/types.rs"

[[test]]
name = "vector_entry"
path = "tests/vector_entry.rs"

[dependencies.faer]
version = "0.19"
default-features = false

[dependencies.half]
version = "2.4"
features = ["bytemuck"]
default-features = false

[dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false

[dependencies.libm]
version = "0.2"
default-features = false

[dependencies.rand_chacha]
version = "0.3"
default-features = false

[dependencies.sha2]
version = "0.10"
default-features = false

[dependencies.spin]
version = "0.9"
features = [
    "mutex",
    "spin_mutex",
]
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dev-dependencies.bytemuck]
version = "1"
features = ["derive"]
default-features = false

[dev-dependencies.rand]
version = "0.8"
features = [
    "std",
    "std_rng",
]
default-features = false

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

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

[features]
avx512 = ["simd"]
default = []
simd = ["std"]
std = []