fib-quant 0.1.0-alpha.1

Experimental Rust implementation of the FibQuant radial-angular vector quantization core
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.75"
name = "fib-quant"
version = "0.1.0-alpha.1"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "CITATION.cff",
    "CHANGELOG.md",
    "RELEASE_CHECKLIST.md",
    "src/**",
    "tests/**",
    "benches/**",
    "deny.toml",
    "examples/**",
    "docs/compression/**",
    "docs/kv/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Experimental Rust implementation of the FibQuant radial-angular vector quantization core"
homepage = "https://github.com/recursiveintell/fib-quant"
documentation = "https://docs.rs/fib-quant"
readme = "README.md"
keywords = [
    "quantization",
    "vector",
    "kv-cache",
    "llm",
    "compression",
]
categories = [
    "compression",
    "science",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/recursiveintell/fib-quant"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
kv = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "kv_attention_ref"
path = "benches/kv_attention_ref.rs"
harness = false
required-features = ["kv"]

[[bench]]
name = "kv_encode_decode"
path = "benches/kv_encode_decode.rs"
harness = false
required-features = ["kv"]

[dependencies.blake3]
version = "1.8.3"

[dependencies.half]
version = "2"

[dependencies.nalgebra]
version = "0.33"
features = ["serde-serialize"]

[dependencies.rand]
version = "0.8"

[dependencies.rand_chacha]
version = "0.3"

[dependencies.rand_distr]
version = "0.4"

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.statrs]
version = "0.17"

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.criterion]
version = "0.7"
features = ["html_reports"]

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

[lints.rust]
unsafe_code = "forbid"