holochain_sqlite 0.2.2-beta-rc.1

Abstractions for persistence of Holochain state via SQLite
Documentation
[package]
name = "holochain_sqlite"
version = "0.2.2-beta-rc.1"
description = "Abstractions for persistence of Holochain state via SQLite"
license = "Apache-2.0"
homepage = "https://github.com/holochain/holochain"
documentation = "https://docs.rs/holochain_sqlite"
authors = [ "Holochain Core Dev Team <devcore@holochain.org>" ]
edition = "2021"

[dependencies]
async-trait = "0.1"
anyhow = "1.0.26"
byteorder = "1.3.4"
cfg-if = "0.1"
# pinned here with = to fix a compilation issue in a dependent crate.
# feel free to drop the = if it causes problems in the future.
chashmap = "=2.2.0"
chrono = { version = "0.4.22", default-features = false, features = ["clock", "std", "oldtime", "serde"] }
derive_more = "0.99.3"
either = "1.5.0"
fallible-iterator = "0.2.0"
failure = "0.1.6"
fixt = { version = "^0.2.1", path = "../fixt" }
futures = "0.3.1"
holo_hash = { path = "../holo_hash", version = "^0.2.2-beta-rc.0"}
holochain_serialized_bytes = "=0.0.51"
holochain_util = { version = "^0.2.2-beta-rc.0", path = "../holochain_util", features = ["backtrace"] }
holochain_zome_types = { version = "^0.2.2-beta-rc.1", path = "../holochain_zome_types" }
kitsune_p2p = { version = "^0.2.2-beta-rc.1", path = "../kitsune_p2p/kitsune_p2p" }
lazy_static = "1.4.0"
once_cell = "1.4.1"
must_future = "0.1.1"
nanoid = "0.3.0"
num_cpus = "1.13.0"
num-traits = "0.2"
page_size = "0.4.2"
parking_lot = "0.10"
rand = "0.8.5"
r2d2 = "0.8"
r2d2_sqlite = { version = "0.1", package = "r2d2_sqlite_neonphog" }
rmp-serde = "0.15"
scheduled-thread-pool = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = { version = "1.0.51", features = [ "preserve_order" ] }
shrinkwraprs = "0.3.0"
tempfile = "3.3"
thiserror = "1.0.22"
tokio = { version = "1.27", features = [ "macros", "rt-multi-thread", "io-util", "sync", "time" ] }
tracing = "0.1.18"
tracing-futures = "0.2"
getrandom = "0.2.7"

rusqlite = { version = "0.29", features = [
  "blob",        # better integration with blob types (Read, Write, etc)
  "backup",
  "trace",
  "functions",   # rust scalar / agg / window functions
  #"chrono",      # integration with chrono crate
  #"hooks",       # sqlite notification callbacks
  #"serde_json",  # integration with serde_json crate
  #"url",         # integration with url crate
  #"uuid",        # integration with uuid crate
] }

[dev-dependencies]
holochain_sqlite = { path = ".", features = ["test_utils", "slow_tests"] }
holochain_trace = { path = "../holochain_trace" }
nanoid = "0.4.0"

[build-dependencies]
pretty_assertions = "0.7.2"
sqlformat = "0.1.6"

[features]
default = [ "test_utils", "sqlite" ]

test_utils = [ ]

slow_tests = []

# Use at-rest encryption of databases
sqlite-encrypted = [
  "rusqlite/bundled-sqlcipher-vendored-openssl",
  "holo_hash/sqlite-encrypted",
  "holochain_zome_types/sqlite-encrypted",
  "kitsune_p2p/sqlite-encrypted",
]

# Compile SQLite from source rather than depending on a library
sqlite = [
  "rusqlite/bundled",
  "holo_hash/sqlite",
  "holochain_zome_types/sqlite",
  "kitsune_p2p/sqlite",
  "r2d2_sqlite/bundled",
]