1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00
Files
BakaShrot/Cargo.toml
T
aziascreations c513d8bf05 Added filtered name lists and the DLL's enumerations, Opened the query connection read-only, Bumped to 0.4.0
- Protocol 8: ListTopics / ListNodes became one ListNames [kind, topics,
  nodes], each filter a name or a pattern: the topics a node pushed to,
  the nodes that pushed to a topic, wildcards included. No storage
  change; the permissions are the lists' (may_list_topic,
  may_list_nodes_of)
- The DLL: the JSON getters are suffixed AsJson (GetNamesListAsJson,
  GetQueryResultAsJson); ListNamesA/W replaces ListTopics / ListNodes.
  Beside them, Win32-like enumerations: EnumerateNames / EnumerateQuery,
  NextName / NextQueryRow (before the first item at first), getters,
  CloseEnum (enumerations.rs). They don't outlive their client:
  FreeClient closes them
- C#: EnumerateTopics / EnumerateNodes / EnumerateQuery as IEnumerable
  (QueryRow for a query), fetched at each foreach, closed in finally
- Queries: the connection opens the file read-only
  (SQLITE_OPEN_READ_ONLY), a fifth guard beside query_only, the
  read-only statement check, one statement only and the PRAGMA-denying
  authorizer; a unit test checks the handle is read-only
- Python, PureBasic, the tool, docs, guides and revamp.md (step 16)
  updated; versions 0.4.0 everywhere

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:19:04 +01:00

48 lines
1.6 KiB
TOML

# The BakaShrot workspace: every crate is in crates/, see readme.md for the
# layout and revamp.md for the plan.
[workspace]
resolver = "3"
members = ["crates/*"]
[workspace.package]
version = "0.4.0"
edition = "2024"
rust-version = "1.100"
license = "CC0-1.0"
authors = ["Herwin Bozet (NibblePoker)"]
repository = "https://github.com/aziascreations/BakaShrot"
publish = false
# Every crate takes these with `[lints] workspace = true`. `unsafe_code` is
# "deny", not "forbid", so the C API crate can allow it at its root.
[workspace.lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
[profile.release]
# Optimized for size: 25-31% smaller programs and DLL (the server 6.6 MB
# to 4.7 MB), about 5% fewer pushes with `normal` (none with `full`, the
# disk's), the same handshakes and attachments. Measured 2026-11-14;
# "z" is barely smaller, the C (aws-lc, SQLite) kept at 3 adds 1.2 MB for
# nothing measurable.
opt-level = "s"
lto = true
codegen-units = 1
strip = true
# Kept on purpose: the C DLL catches panics at every export (catch_unwind),
# which "abort" would make impossible, and the server loses only the
# connection that panicked (tokio catches it), not every one.
panic = "unwind"
# The tool (bakashrot), released with this (build.ps1, release.py, the
# Dockerfile): a panic ends its command either way, and without unwinding
# it's about 15% smaller (measured 2026-11-17 on Windows: 2.53 MB, its
# certificates' commands in it). Its own folder, target/release-tools/.
[profile.release-tools]
inherits = "release"
panic = "abort"