mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
e044fcf359
The rewrite's plan and decisions are in revamp.md. Steps 0 to 10 are done: the workspace and checks, bakashrot-proto, bakashrot-pki and bakashrot-cert, bakashrot-config, bakashrot-storage (schema v9), the server and the client library (every request but replication's, attachments and retention included), the C DLL with its C, PureBasic and Python bindings, and the bakashrot tool. Step 11 (replication) is next. OldSource/ is the old implementation, kept building and passing as the reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVTGs2SsufaH6zquzcb
2.3 KiB
2.3 KiB
BakaShrot - start here
A message store with replication: servers take messages per topic/node from authenticated clients, store them in SQLite, and replicate them between peers by name. Clients: a C DLL, CLI tools, a Python module. An internal tool on trusted machines.
Being rewritten in Rust (since 2026-11-13):
revamp.md: why, what's decided, what's proposed and open, the plan and its status. Read it first.Source/: the new implementation (Source/README.md: layout, commands, conventions;Source/docs/: designs,protocol.mdfirst).OldSource/: the old PureBasic implementation, the reference for the behaviour to carry over. It has its ownCLAUDE.md(build, test, traps),Notes.mdandDesign/; its paths are relative toOldSource/.
Toolchain
- Rust via rustup, in
%USERPROFILE%\.cargo\bin, which isn't on every shell's PATH: prepend it (export PATH="$HOME/.cargo/bin:$PATH"in bash;check.ps1does it itself). The toolchain is pinned (Source/rust-toolchain.toml, 1.100.0, MSVC; Visual Studio 18 has the linker). Source\check.ps1runs what CI runs; it must pass before a step is done.- PureBasic 5.73 and 6.40 for
OldSource/, seeOldSource/CLAUDE.md.
Working rules
- Commit only when the owner asks, on a branch (
revamp), notmaster. - Follow the plan's order (
revamp.md, "Plan"); a step is done when its tests pass and its docs are updated, then its status goes in the table. OldSource/is the reference: don't change it beyond keeping it building and passing, unless asked.- Decisions go in
revamp.md: moved to "Decided" only when the owner decides, with the date. - Use existing crates rather than reimplementing (MessagePack is
rmp-serde). - Files mix CRLF and LF: edits must keep each file's line endings
(
Source/is LF, the docs at the root and inOldSource/mostly CRLF). - Bash tool heredocs collapse
\\: write edit scripts to files, or use the Edit tool. - Run exes from a build folder (
OldSource\Build\,Source\target\): the antivirus blocks them in temp folders. - Generated keys and certificates never go in git (
Build/,target/). The one exception:OldSource/Examples/*/commit theirs on purpose (public, example-only, marked so).