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 5b41a06d0c 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>
2026-11-17 21:13:58 +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.3.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"