mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Merged bakashrot-cert into bakashrot as bakashrot cert, Made the programs smaller, Added a -HybridCrt switch
- `bakashrot cert ca|issue|revoke|show` (same options) replaces bakashrot-cert: aws-lc, the C runtime and clap once, 2.53 MB instead of 2.85 + 1.73 MB on Windows; guides, docs, release.py, Docker updated - The tool built with its own profile, release-tools (panic = "abort", about 15% smaller); the DLL and the server keep unwind - clap without colours and suggestions (40 KB, 9 crates fewer) - SQLite without FTS3/FTS5, R-Tree, dbstat, STAT4, soundex(), extension loading and column metadata (LIBSQLITE3_FLAGS): the server 4.68 to 4.37 MB; a storage test checks they're out - build.ps1 / release.ps1 -HybridCrt (.cargo/hybrid-crt.toml): the UCRT from Windows, about 180 KB less per program, still nothing to install; static stays the default, README.txt says which - revamp.md: what was weighed and left (UPX, fully dynamic CRT, nightly options, OMIT_* flags), aws-lc kept over Graviola (490 KB bigger) and ring (no ML-KEM) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+10
-9
@@ -9,7 +9,7 @@ What apps connect with, in layers:
|
||||
| C header | `bindings/c/bakashrot.h` | generated from the DLL (cbindgen) |
|
||||
| PureBasic | `bindings/purebasic/` | the prototypes and the error codes |
|
||||
| Python | `bindings/python/bakashrot.py` | `Client` over the DLL (ctypes), standard library only |
|
||||
| The tools | `crates/bakashrot-tools`: `bakashrot` | the command line, over `bakashrot-client` |
|
||||
| The tool | `crates/bakashrot-tools`: `bakashrot` | the command line, over `bakashrot-client`; `bakashrot cert`, the certificates |
|
||||
|
||||
Decided in `../revamp.md`, "Decided" (2026-11-13). What goes over the
|
||||
wire: `protocol.md`; the server's side: `server.md`.
|
||||
@@ -20,14 +20,14 @@ names, queries.
|
||||
## Who connects: certificates
|
||||
|
||||
A client is its certificate, issued by the CA the servers trust
|
||||
(`certificates.md`, `bakashrot-cert issue`): its name is its node, its
|
||||
(`certificates.md`, `bakashrot cert issue`): its name is its node, its
|
||||
roles say what it may do on each server (`config.md`). It needs the CA's
|
||||
certificate (to check the server's), its own certificate and key, and the
|
||||
CA's CRL if there is one (servers it revokes are refused).
|
||||
|
||||
### `client.toml`
|
||||
|
||||
What Python's `Client.from_file()` and the tools read. Paths are relative
|
||||
What Python's `Client.from_file()` and the tool read. Paths are relative
|
||||
to the file's folder.
|
||||
|
||||
```toml
|
||||
@@ -108,13 +108,14 @@ getters. Run directly, it's an example: `ClientExample <DllPath> <CaFile>
|
||||
with an attachment, reading both back (run by hand against a server;
|
||||
not in CI, which has no PureBasic).
|
||||
|
||||
## The tools
|
||||
## The tool
|
||||
|
||||
`bakashrot`, one program to push, read, query and list (`bakashrot-cert`,
|
||||
for the CA, is apart: `certificates.md`). Each command connects with
|
||||
`-c <file>` (`client.toml` by default), does one thing and exits: 0, 1 on a
|
||||
failure (why on stderr: `Refused by the server (NotAllowed): ...`,
|
||||
`Failed to connect to ...`), 2 on bad arguments. `--help` on each.
|
||||
`bakashrot`, one program to push, read, query and list, and to make the
|
||||
certificates (`bakashrot cert`, no server needed: `certificates.md`).
|
||||
Each other command connects with `-c <file>` (`client.toml` by default),
|
||||
does one thing and exits: 0, 1 on a failure (why on stderr: `Refused by
|
||||
the server (NotAllowed): ...`, `Failed to connect to ...`), 2 on bad
|
||||
arguments. `--help` on each.
|
||||
|
||||
```text
|
||||
bakashrot push logs '{"t":21}' Pushed as message #42
|
||||
|
||||
Reference in New Issue
Block a user