mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
cf8264b21d
- Removed `[server] topics` and `[replication] replicated_topics`: a push is taken by its roles' `push_topics`, a replicated message by the peer's `accept_topics`; a topic exists from its first message. - Topics that only came from a peer are read and listed like any other; `ListNames` lists the topics with messages, filtered by the roles. - A push to a topic no role names is `NotAllowed`; `UnknownName` is only for nodes. - Clients' queries: every PRAGMA refused as it's prepared (SQLite's authorizer), `PRAGMA query_only = 0` used to take effect. - Noted the leads found by reading the code in `docs/known-issues.md`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
30 lines
1004 B
TOML
30 lines
1004 B
TOML
[package]
|
|
name = "bakashrot-storage"
|
|
description = "BakaShrot's database: SQLite, schema v9, messages by stream, attachments, read-only queries."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
# The limits (message ids, attachment parts).
|
|
bakashrot-proto = { path = "../bakashrot-proto" }
|
|
# Synchronous, as the config says it.
|
|
bakashrot-config = { path = "../bakashrot-config" }
|
|
# SQLite itself compiled in (`bundled`): the same version everywhere, with
|
|
# its JSON functions, no system library to install. `fallible_uint`: u64
|
|
# in and out, an error past i64::MAX instead of a wrap. `hooks`: the
|
|
# authorizer that refuses PRAGMAs in clients' queries.
|
|
rusqlite = { version = "0.42.0", features = ["bundled", "fallible_uint", "hooks"] }
|
|
# Query results as JSON.
|
|
serde_json = "1.0.154"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1.0.154"
|