[package]
edition = "2021"
name = "hakodb"
version = "0.8.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",
]
default = [
"net-sync",
"cloud-sync",
]
net-sync = [
"dep:tokio",
"dep:mdns-sd",
"dep:gethostname",
"dep:local-ip-address",
"dep:socket2",
]
[lib]
name = "hakodb"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[test]]
name = "cloud_sync_rooms"
path = "tests/cloud_sync_rooms.rs"
[[test]]
name = "codec_integrity"
path = "tests/codec_integrity.rs"
[[test]]
name = "cursor_parity"
path = "tests/cursor_parity.rs"
[[test]]
name = "data_migration"
path = "tests/data_migration.rs"
[[test]]
name = "ffi_roundtrip"
path = "tests/ffi_roundtrip.rs"
[[test]]
name = "fts_prefix"
path = "tests/fts_prefix.rs"
[[test]]
name = "local_only"
path = "tests/local_only.rs"
[[test]]
name = "oplog_fuzz"
path = "tests/oplog_fuzz.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.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"]
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.smallvec]
version = "1"
[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.26"
features = ["rustls-tls-native-roots"]
optional = true
[dependencies.zstd]
version = "0.13"
[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"
[profile.dev]
debug = "line-tables-only"
[profile.release]
strip = true