lattice-embed 0.2.2

SIMD-accelerated vector operations and embedding generation
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 = "lattice-embed"
version = "0.2.2"
authors = ["Ocean <ocean@lionagi.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SIMD-accelerated vector operations and embedding generation"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/ohdearquant/lattice"
resolver = "2"

[features]
avx512 = []
default = ["native"]
metal-gpu = ["lattice-inference/metal-gpu"]
native = ["dep:lattice-inference"]

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

[[example]]
name = "basic_embed"
path = "examples/basic_embed.rs"
required-features = ["native"]

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

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

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

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

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

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

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

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

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

[dependencies.blake3]
version = "1.5"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.lattice-inference]
version = "0.2.0"
features = ["f16"]
optional = true

[dependencies.lru]
version = "0.12"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = [
    "full",
    "sync",
    "rt",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

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

[dev-dependencies.simsimd]
version = "6"

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

[lints.clippy]
cloned_instead_of_copied = "warn"
implicit_clone = "warn"
incompatible_msrv = "allow"
large_enum_variant = "warn"
manual_let_else = "warn"
missing_safety_doc = "warn"
needless_range_loop = "allow"
needless_return = "warn"
redundant_closure_for_method_calls = "warn"
too_many_arguments = "warn"
type_complexity = "warn"
uninlined_format_args = "warn"

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.rust]
unsafe_op_in_unsafe_fn = "allow"