triviumdb 0.7.0

A high-performance memory-mmap hybrid search engine built for AI, combining dense vector, sparse text, graph relations, and JSON metadata.
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 = "triviumdb"
version = "0.7.0"
authors = ["YoKONCy <2752026184@qq.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance memory-mmap hybrid search engine built for AI, combining dense vector, sparse text, graph relations, and JSON metadata."
readme = "README.md"
keywords = [
    "vector-database",
    "graph-database",
    "hybrid-search",
    "rag",
    "mmap",
]
categories = [
    "database",
    "data-structures",
    "algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/YoKONCy/TriviumDB"

[features]
cli = []
default = []
nodejs = [
    "dep:napi",
    "dep:napi-derive",
]
python = ["dep:pyo3"]
usearch-bench = ["dep:usearch"]

[lib]
name = "triviumdb"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "trivium_repair"
path = "src/bin/trivium_repair.rs"
required-features = ["cli"]

[[bin]]
name = "triviumdb"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "unit"
path = "tests/unit/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aho-corasick]
version = "1.1.4"

[dependencies.bincode]
version = "1.3"

[dependencies.bytemuck]
version = "1.25.0"
features = ["derive"]

[dependencies.crc32fast]
version = "1.5.0"

[dependencies.fs2]
version = "0.4.3"

[dependencies.half]
version = "2.7.1"
features = [
    "bytemuck",
    "serde",
]

[dependencies.libloading]
version = "0.8"

[dependencies.memmap2]
version = "0.9"

[dependencies.napi]
version = "2"
features = [
    "napi8",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.pyo3]
version = "0.23"
features = [
    "extension-module",
    "abi3-py39",
]
optional = true

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dependencies.usearch]
version = "2.25.1"
optional = true
default-features = false

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

[dev-dependencies.instant-distance]
version = "0.6"

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

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

[build-dependencies.napi-build]
version = "2"

[profile.release]
lto = true
codegen-units = 1