[package]
edition = "2021"
rust-version = "1.77"
name = "ruvector-core"
version = "2.2.3"
authors = ["Ruvector Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance Rust vector database core with HNSW indexing"
readme = "README.md"
license = "MIT"
repository = "https://github.com/ruvnet/ruvector"
[features]
api-embeddings = ["reqwest"]
default = [
"simd",
"simd-avx512",
"storage",
"hnsw",
"api-embeddings",
"parallel",
]
hnsw = ["hnsw_rs"]
memory-only = []
onnx-embeddings = [
"ort",
"tokenizers",
"hf-hub",
]
parallel = [
"rayon",
"crossbeam",
]
real-embeddings = []
simd = ["simsimd"]
simd-avx512 = []
storage = [
"redb",
"memmap2",
]
uuid-support = []
[lib]
name = "ruvector_core"
crate-type = ["rlib"]
path = "src/lib.rs"
bench = false
[[example]]
name = "embeddings_example"
path = "examples/embeddings_example.rs"
[[example]]
name = "neon_benchmark"
path = "examples/neon_benchmark.rs"
[[test]]
name = "advanced_features_integration"
path = "tests/advanced_features_integration.rs"
[[test]]
name = "concurrent_tests"
path = "tests/concurrent_tests.rs"
[[test]]
name = "embeddings_test"
path = "tests/embeddings_test.rs"
[[test]]
name = "hnsw_integration_test"
path = "tests/hnsw_integration_test.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "stress_tests"
path = "tests/stress_tests.rs"
[[test]]
name = "test_memory_pool"
path = "tests/test_memory_pool.rs"
[[test]]
name = "test_quantization"
path = "tests/test_quantization.rs"
[[test]]
name = "test_simd_correctness"
path = "tests/test_simd_correctness.rs"
[[test]]
name = "unit_tests"
path = "tests/unit_tests.rs"
[[bench]]
name = "batch_operations"
path = "benches/batch_operations.rs"
harness = false
[[bench]]
name = "bench_memory"
path = "benches/bench_memory.rs"
harness = false
[[bench]]
name = "bench_simd"
path = "benches/bench_simd.rs"
harness = false
[[bench]]
name = "comprehensive_bench"
path = "benches/comprehensive_bench.rs"
harness = false
[[bench]]
name = "distance_metrics"
path = "benches/distance_metrics.rs"
harness = false
[[bench]]
name = "hnsw_search"
path = "benches/hnsw_search.rs"
harness = false
[[bench]]
name = "quantization_bench"
path = "benches/quantization_bench.rs"
harness = false
[[bench]]
name = "real_benchmark"
path = "benches/real_benchmark.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.bincode]
version = "2.0.0-rc.3"
features = ["serde"]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.crossbeam]
version = "0.8"
optional = true
[dependencies.dashmap]
version = "6.1"
[dependencies.hf-hub]
version = "0.4"
optional = true
[dependencies.hnsw_rs]
version = "0.3"
optional = true
[dependencies.memmap2]
version = "0.9"
optional = true
[dependencies.ndarray]
version = "0.16"
features = ["serde"]
[dependencies.once_cell]
version = "1.20"
[dependencies.ort]
version = "2.0.0-rc.9"
optional = true
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.rand_distr]
version = "0.4"
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.redb]
version = "2.1"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"blocking",
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.rkyv]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.simsimd]
version = "5.9"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokenizers]
version = "0.20"
features = ["onig"]
optional = true
default-features = false
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.11"
features = [
"v4",
"serde",
"js",
"v4",
]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.mockall]
version = "0.13"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tempfile]
version = "3.13"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[lints.clippy]
absurd_extreme_comparisons = "allow"
approx_constant = "allow"
arc_with_non_send_sync = "allow"
assertions_on_constants = "allow"
assign_op_pattern = "allow"
await_holding_refcell_ref = "allow"
bind_instead_of_map = "allow"
bool_assert_comparison = "allow"
bool_comparison = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
cloned_ref_to_slice_refs = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
comparison_chain = "allow"
derivable_impls = "allow"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
double_ended_iterator_last = "allow"
elidable_lifetime_names = "allow"
excessive_precision = "allow"
explicit_auto_deref = "allow"
explicit_counter_loop = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
for_kv_map = "allow"
format_collect = "allow"
format_in_format_args = "allow"
format_push_string = "allow"
get_first = "allow"
identity_op = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignored_unit_patterns = "allow"
implicit_saturating_sub = "allow"
incompatible_msrv = "allow"
inconsistent_digit_grouping = "allow"
inline_always = "allow"
int_plus_one = "allow"
items_after_statements = "allow"
items_after_test_module = "allow"
iter_cloned_collect = "allow"
large_enum_variant = "allow"
large_stack_arrays = "allow"
len_without_is_empty = "allow"
len_zero = "allow"
let_and_return = "allow"
let_unit_value = "allow"
manual_abs_diff = "allow"
manual_checked_ops = "allow"
manual_clamp = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_flatten = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_memcpy = "allow"
manual_range_contains = "allow"
manual_repeat_n = "allow"
manual_slice_size_calculation = "allow"
manual_strip = "allow"
manual_swap = "allow"
manual_unwrap_or = "allow"
map_clone = "allow"
map_flatten = "allow"
map_unwrap_or = "allow"
match_like_matches_macro = "allow"
match_same_arms = "allow"
match_single_binding = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
mixed_attributes_style = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_bool = "allow"
needless_borrow = "allow"
needless_borrows_for_generic_args = "allow"
needless_lifetimes = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_return = "allow"
needless_update = "allow"
new_without_default = "allow"
no_effect = "allow"
non_canonical_partial_ord_impl = "allow"
nonminimal_bool = "allow"
option_as_ref_deref = "allow"
partialeq_to_none = "allow"
print_literal = "allow"
ptr_arg = "allow"
question_mark = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_field_names = "allow"
redundant_pattern_matching = "allow"
result_map_or_into_option = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
similar_names = "allow"
single_char_add_str = "allow"
single_char_pattern = "allow"
single_component_path_imports = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unit_arg = "allow"
unnecessary_cast = "allow"
unnecessary_filter_map = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_mut_passed = "allow"
unnecessary_sort_by = "allow"
unnecessary_struct_initialization = "allow"
unnecessary_to_owned = "allow"
unnecessary_unwrap = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_enumerate_index = "allow"
unused_self = "allow"
unusual_byte_groupings = "allow"
unwrap_or_default = "allow"
upper_case_acronyms = "allow"
useless_conversion = "allow"
useless_format = "allow"
useless_vec = "allow"
vec_init_then_push = "allow"
wildcard_imports = "allow"
wildcard_in_or_patterns = "allow"
writeln_empty_string = "allow"
[lints.clippy.almost_swapped]
level = "allow"
priority = 1
[lints.clippy.await_holding_lock]
level = "allow"
priority = 1
[lints.clippy.cast_abs_to_unsigned]
level = "allow"
priority = 1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.erasing_op]
level = "allow"
priority = 1
[lints.clippy.let_underscore_future]
level = "allow"
priority = 1
[lints.clippy.let_underscore_lock]
level = "allow"
priority = 1
[lints.clippy.missing_transmute_annotations]
level = "allow"
priority = 1
[lints.clippy.needless_character_iteration]
level = "allow"
priority = 1
[lints.clippy.no_effect_replace]
level = "allow"
priority = 1
[lints.clippy.not_unsafe_ptr_arg_deref]
level = "allow"
priority = 1
[lints.clippy.overly_complex_bool_expr]
level = "allow"
priority = 1
[lints.clippy.pedantic]
level = "allow"
priority = -2
[lints.clippy.repeat_vec_with_capacity]
level = "allow"
priority = 1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.clippy.unnecessary_get_then_check]
level = "allow"
priority = 1
[lints.clippy.zombie_processes]
level = "allow"
priority = 1
[lints.rust]
ambiguous_glob_reexports = "allow"
dead_code = "allow"
deprecated = "allow"
missing_docs = "allow"
non_camel_case_types = "allow"
non_local_definitions = "allow"
non_upper_case_globals = "allow"
static_mut_refs = "allow"
suspicious_double_ref_op = "allow"
unreachable_patterns = "allow"
unsafe_op_in_unsafe_fn = "allow"
unused_assignments = "allow"
unused_comparisons = "allow"
unused_doc_comments = "allow"
unused_imports = "allow"
unused_must_use = "allow"
unused_mut = "allow"
unused_parens = "allow"
unused_unsafe = "allow"
unused_variables = "allow"
[lints.rust.unexpected_cfgs]
level = "allow"
priority = -1