[package]
edition = "2021"
rust-version = "1.70"
name = "ruvector-sona"
version = "0.2.1"
authors = ["RuVector Team <team@ruvector.dev>"]
build = false
include = [
"src/**/*",
"Cargo.toml",
"README.md",
"LICENSE-MIT",
"LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-Optimizing Neural Architecture - Runtime-adaptive learning for LLM routers with two-tier LoRA, EWC++, and ReasoningBank"
homepage = "https://github.com/ruvnet/ruvector/tree/main/crates/sona"
documentation = "https://docs.rs/ruvector-sona"
readme = "README.md"
keywords = [
"neural",
"learning",
"lora",
"llm",
"adaptive",
]
categories = [
"science",
"algorithms",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ruvnet/ruvector"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[features]
default = ["serde-support"]
napi = [
"dep:napi",
"dep:napi-derive",
"serde-support",
]
serde-support = [
"serde",
"serde_json",
]
wasm = [
"wasm-bindgen",
"wasm-bindgen-futures",
"console_error_panic_hook",
"js-sys",
"web-sys",
"getrandom",
"serde-support",
]
[lib]
name = "ruvector_sona"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.crossbeam]
version = "0.8"
[dependencies.getrandom]
version = "0.2"
features = ["js"]
optional = true
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.napi]
version = "2.16"
optional = true
[dependencies.napi-derive]
version = "2.16"
optional = true
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3"
features = [
"console",
"Performance",
"Window",
]
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.once_cell]
version = "1.19"
[dev-dependencies.rand]
version = "0.8"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[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