[package]
edition = "2024"
rust-version = "1.100"
name = "day-persistence"
version = "0.4.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite persistence for the Day observable model."
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/daybrite/day-persistence"
[features]
bundled = ["rusqlite?/bundled"]
cipher = ["rusqlite?/bundled-sqlcipher-vendored-openssl"]
datetime = ["dep:day-spec"]
default = [
"driver-rusqlite",
"bundled",
"pieces",
]
driver-rusqlite = [
"dep:rusqlite",
"dep:day-sqlite-worker",
"dep:day-spec",
]
pieces = [
"dep:day-pieces",
"dep:day-spec",
]
system = []
[lib]
name = "day_persistence"
path = "src/lib.rs"
[[test]]
name = "attached"
path = "tests/attached.rs"
[[test]]
name = "blob"
path = "tests/blob.rs"
[[test]]
name = "cascade"
path = "tests/cascade.rs"
[[test]]
name = "cipher"
path = "tests/cipher.rs"
[[test]]
name = "container"
path = "tests/container.rs"
[[test]]
name = "datetime"
path = "tests/datetime.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "exotic"
path = "tests/exotic.rs"
[[test]]
name = "external"
path = "tests/external.rs"
[[test]]
name = "fold_batches"
path = "tests/fold_batches.rs"
[[test]]
name = "fts_spatial"
path = "tests/fts_spatial.rs"
[[test]]
name = "identifiers"
path = "tests/identifiers.rs"
[[test]]
name = "joins"
path = "tests/joins.rs"
[[test]]
name = "lazy"
path = "tests/lazy.rs"
[[test]]
name = "liveset"
path = "tests/liveset.rs"
[[test]]
name = "migration"
path = "tests/migration.rs"
[[test]]
name = "predicates"
path = "tests/predicates.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "recovery"
path = "tests/recovery.rs"
[[test]]
name = "relation_query"
path = "tests/relation_query.rs"
[[test]]
name = "relations"
path = "tests/relations.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[[test]]
name = "ui_autosave"
path = "tests/ui_autosave.rs"
[[test]]
name = "undo_persist"
path = "tests/undo_persist.rs"
[[test]]
name = "unique"
path = "tests/unique.rs"
[[test]]
name = "wide_keys"
path = "tests/wide_keys.rs"
[[test]]
name = "worker"
path = "tests/worker.rs"
[dependencies.day-async]
version = "0.*"
[dependencies.day-macros]
version = "0.*"
[dependencies.day-model]
version = "0.*"
[dependencies.day-persistence-macros]
version = "0.*"
[dependencies.day-pieces]
version = "0.*"
features = ["model"]
optional = true
[dependencies.day-process]
version = "0.*"
[dependencies.day-reactive]
version = "0.*"
[dependencies.day-spec]
version = "0.*"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1"
[dev-dependencies.day-core]
version = "0.*"
[dev-dependencies.day-mock]
version = "0.*"
[dev-dependencies.day-pieces]
version = "0.*"
features = ["model"]
[dev-dependencies.day-spec]
version = "0.*"
[dev-dependencies.rusqlite]
version = "0.40"
features = ["bundled"]
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.day-sqlite-worker]
version = "0.*"
optional = true
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.rusqlite]
version = "0.40"
features = ["functions"]
optional = true
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
fn_params_excessive_bools = "allow"
many_single_char_names = "allow"
must_use_candidate = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1