[package]
edition = "2021"
name = "hakodb"
version = "0.23.21"
authors = ["AbcDev Team"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedded & Cloud-native Document Engine"
readme = "README.md"
license = "MIT"
repository = "https://github.com/hakodb/hakodb"
[features]
cloud-sync = [
"dep:tokio",
"dep:tokio-tungstenite",
"dep:rustls",
"dep:futures-util",
"dep:rmp-serde",
]
compression = ["dep:zstd"]
default = [
"net-sync",
"cloud-sync",
"socket-sync",
"compression",
]
header = ["dep:cbindgen"]
net-sync = [
"dep:tokio",
"dep:mdns-sd",
"dep:gethostname",
"dep:local-ip-address",
"dep:socket2",
]
socket-sync = ["dep:tokio"]
[lib]
name = "hakodb"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "projection_decode"
path = "examples/projection_decode.rs"
[[test]]
name = "access_path"
path = "tests/access_path.rs"
[[test]]
name = "access_path_range"
path = "tests/access_path_range.rs"
[[test]]
name = "aggregate_covering"
path = "tests/aggregate_covering.rs"
[[test]]
name = "aggregate_minmax"
path = "tests/aggregate_minmax.rs"
[[test]]
name = "cancel"
path = "tests/cancel.rs"
[[test]]
name = "cancel_maintenance"
path = "tests/cancel_maintenance.rs"
[[test]]
name = "cloud_sync_ffi_park"
path = "tests/cloud_sync_ffi_park.rs"
[[test]]
name = "cloud_sync_rooms"
path = "tests/cloud_sync_rooms.rs"
[[test]]
name = "codec_integrity"
path = "tests/codec_integrity.rs"
[[test]]
name = "codec_paths"
path = "tests/codec_paths.rs"
[[test]]
name = "composite_eq_anchor"
path = "tests/composite_eq_anchor.rs"
[[test]]
name = "composite_persist_restart"
path = "tests/composite_persist_restart.rs"
[[test]]
name = "cursor_parity"
path = "tests/cursor_parity.rs"
[[test]]
name = "effective_config"
path = "tests/effective_config.rs"
[[test]]
name = "ensure_indexes"
path = "tests/ensure_indexes.rs"
[[test]]
name = "eq_crosstype"
path = "tests/eq_crosstype.rs"
[[test]]
name = "ffi_cancel"
path = "tests/ffi_cancel.rs"
[[test]]
name = "ffi_execute_json_parity"
path = "tests/ffi_execute_json_parity.rs"
[[test]]
name = "ffi_json_views"
path = "tests/ffi_json_views.rs"
[[test]]
name = "ffi_roundtrip"
path = "tests/ffi_roundtrip.rs"
[[test]]
name = "ffi_traverse"
path = "tests/ffi_traverse.rs"
[[test]]
name = "ffi_vector"
path = "tests/ffi_vector.rs"
[[test]]
name = "ffi_wave217"
path = "tests/ffi_wave217.rs"
[[test]]
name = "field_stats"
path = "tests/field_stats.rs"
[[test]]
name = "fts_prefix"
path = "tests/fts_prefix.rs"
[[test]]
name = "hybrid_search"
path = "tests/hybrid_search.rs"
[[test]]
name = "index_batch"
path = "tests/index_batch.rs"
[[test]]
name = "index_drop"
path = "tests/index_drop.rs"
[[test]]
name = "index_ready"
path = "tests/index_ready.rs"
[[test]]
name = "index_routing"
path = "tests/index_routing.rs"
[[test]]
name = "index_schema_all"
path = "tests/index_schema_all.rs"
[[test]]
name = "issue22_audit"
path = "tests/issue22_audit.rs"
[[test]]
name = "issue22_covering"
path = "tests/issue22_covering.rs"
[[test]]
name = "issue71_ffi_surface"
path = "tests/issue71_ffi_surface.rs"
[[test]]
name = "issue71_unique"
path = "tests/issue71_unique.rs"
[[test]]
name = "issue71b_dotted"
path = "tests/issue71b_dotted.rs"
[[test]]
name = "issue71c_elem_match"
path = "tests/issue71c_elem_match.rs"
[[test]]
name = "issue71c_pipeline"
path = "tests/issue71c_pipeline.rs"
[[test]]
name = "issue71d_explain_schema"
path = "tests/issue71d_explain_schema.rs"
[[test]]
name = "issue71f_projection"
path = "tests/issue71f_projection.rs"
[[test]]
name = "issue71g_schema_ffi"
path = "tests/issue71g_schema_ffi.rs"
[[test]]
name = "issue80_clock_blackhole"
path = "tests/issue80_clock_blackhole.rs"
[[test]]
name = "json_bytes_parity"
path = "tests/json_bytes_parity.rs"
[[test]]
name = "local_only"
path = "tests/local_only.rs"
[[test]]
name = "lock_stats"
path = "tests/lock_stats.rs"
[[test]]
name = "open_exclusive"
path = "tests/open_exclusive.rs"
[[test]]
name = "oplog_fuzz"
path = "tests/oplog_fuzz.rs"
[[test]]
name = "p3_ergonomics"
path = "tests/p3_ergonomics.rs"
[[test]]
name = "planner_between"
path = "tests/planner_between.rs"
[[test]]
name = "projected_order"
path = "tests/projected_order.rs"
[[test]]
name = "projected_residual"
path = "tests/projected_residual.rs"
[[test]]
name = "projection_contract"
path = "tests/projection_contract.rs"
[[test]]
name = "quickwins_31_32_33_6"
path = "tests/quickwins_31_32_33_6.rs"
[[test]]
name = "read_json"
path = "tests/read_json.rs"
[[test]]
name = "read_only"
path = "tests/read_only.rs"
[[test]]
name = "rename_collection"
path = "tests/rename_collection.rs"
[[test]]
name = "reset_delete_semantics"
path = "tests/reset_delete_semantics.rs"
[[test]]
name = "residual_raw_json"
path = "tests/residual_raw_json.rs"
[[test]]
name = "restore_backup"
path = "tests/restore_backup.rs"
[[test]]
name = "scan_fused_equiv"
path = "tests/scan_fused_equiv.rs"
[[test]]
name = "selectivity"
path = "tests/selectivity.rs"
[[test]]
name = "socket_sync"
path = "tests/socket_sync.rs"
[[test]]
name = "soft_delete"
path = "tests/soft_delete.rs"
[[test]]
name = "tier_compact_race"
path = "tests/tier_compact_race.rs"
[[test]]
name = "topn_parity"
path = "tests/topn_parity.rs"
[[test]]
name = "traverse"
path = "tests/traverse.rs"
[[test]]
name = "traverse_encrypted"
path = "tests/traverse_encrypted.rs"
[[test]]
name = "traverse_query"
path = "tests/traverse_query.rs"
[[test]]
name = "vector_hnsw"
path = "tests/vector_hnsw.rs"
[[test]]
name = "vector_knn"
path = "tests/vector_knn.rs"
[[test]]
name = "write_path"
path = "tests/write_path.rs"
[[bench]]
name = "read_path"
path = "benches/read_path.rs"
harness = false
[[bench]]
name = "write_path"
path = "benches/write_path.rs"
harness = false
[dependencies.bincode]
version = "1.3"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.crc32fast]
version = "1"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.fxhash]
version = "0.2.1"
[dependencies.gethostname]
version = "0.5"
optional = true
[dependencies.hashbrown]
version = "0.14"
features = ["serde"]
[dependencies.itoa]
version = "1"
[dependencies.local-ip-address]
version = "0.5"
optional = true
[dependencies.mdns-sd]
version = "0.11"
optional = true
[dependencies.memmap2]
version = "0.9"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.rayon]
version = "1.8"
[dependencies.rmp-serde]
version = "1.3"
optional = true
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.smallvec]
version = "1"
features = ["serde"]
[dependencies.socket2]
version = "0.5"
optional = true
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"net",
"io-util",
"sync",
"macros",
"time",
]
optional = true
[dependencies.tokio-tungstenite]
version = "0.30"
features = ["rustls-tls-native-roots"]
optional = true
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.bincode]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"net",
"time",
"sync",
]
[build-dependencies.cbindgen]
version = "0.28"
optional = true
[lints.clippy]
field_reassign_with_default = "allow"
[profile.dev]
debug = "line-tables-only"
[profile.release]
lto = "thin"
codegen-units = 1
strip = true