Cargo Features

[dependencies]
holochain_sqlite = { version = "0.5.0-dev.6", default-features = false, features = ["slow_tests", "test_utils", "sqlite-encrypted", "sqlite", "instrument", "holochain_util"] }
default = holochain_util, kitsune_p2p_types, sqlite

These default features are set whenever holochain_sqlite is added without default-features = false somewhere in the dependency tree.

slow_tests
test_utils

Affects access::set_acquire_timeout, pool::set_connection_timeout

sqlite-encrypted

Use at-rest encryption of databases

Enables bundled-sqlcipher-vendored-openssl of hc_r2d2_sqlite and rusqlite, sqlite-encrypted of holo_hash, holochain_zome_types, kitsune_p2p_bin_data, kitsune_p2p_dht_arc, and kitsune_p2p_types

Affects access::encrypt_unencrypted_database

sqlite default

Compile SQLite from source rather than depending on a library

Enables bundled of hc_r2d2_sqlite and rusqlite, sqlite of holo_hash, holochain_zome_types, kitsune_p2p_bin_data, kitsune_p2p_dht_arc, and kitsune_p2p_types

instrument

Enables tracing instrumentation
(we experience segfaults in some tests if there is too much instrumentation)

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

reminder - do not use workspace deps

holochain_util default
kitsune_p2p_types default sqlite sqlite-encrypted?