Files
yaak-mountain-loop/crates/common/yaak-database/Cargo.toml
T

38 lines
1.3 KiB
TOML

[package]
name = "yaak-database"
version = "0.1.0"
edition = "2024"
publish = false
[dependencies]
chrono = { version = "0.4.38", features = ["serde"] }
include_dir = "0.7"
log = { workspace = true }
nanoid = "0.5.0"
rusqlite = { version = "0.38", features = ["bundled", "chrono"] }
sea-query-rusqlite = { version = "0.8.0", features = ["with-chrono"] }
sea-query = { version = "1.0", features = ["with-chrono", "attr"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
thiserror = { workspace = true }
ts-rs = { workspace = true }
[features]
# Whole-database encryption: links SQLCipher in place of SQLite, with OpenSSL built in.
sqlcipher = ["rusqlite/bundled-sqlcipher-vendored-openssl", "dep:openssl-sys"]
[dev-dependencies]
tempfile = "3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# The OpenSSL SQLCipher links, initialized without its exit-time cleanup.
openssl-sys = { version = "0.9", optional = true }
r2d2 = "0.8.10"
r2d2_sqlite = { version = "0.32" }
# nanoid pulls getrandom, which needs to be told how to reach the browser's
# CSPRNG on wasm32-unknown-unknown. Native targets are unaffected.
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3.4", features = ["wasm_js"] }
uuid = { version = "1", features = ["js"] }