mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Moved the workspace to the root, Added the build scripts, ARM64 releases and the Docker image
Source/'s content is at the root now, Source/README.md merged into readme.md. Scripts at the root: build.ps1, test.ps1 (was check.ps1), release.ps1 (over release.py) and clean.ps1. Everything is LF except the .ps1 files. CI (.github/workflows/ci.yml) runs on a v* tag or by hand: the checks, then a release for Windows x64 and ARM64 and Linux x64 and ARM64, each on its own kind of runner, the archives kept as artifacts. release.py names the platform from the Rust host, make_wheel.py tags the wheel from the library's header. docker/: the server's image (built from source, the tools beside it, uid 10001), compose.yml and test.sh. CI builds amd64 and arm64 natively, checks them, and on a tag pushes them to ghcr.io with an index for <version> and latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
# 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.2.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.
|
||||
panic = "unwind"
|
||||
Reference in New Issue
Block a user