feat: add server-only build

it's drastically faster to build,
mostly due to only including 1/10th of the dependencies
This commit is contained in:
electria 2026-08-16 14:13:41 -07:00
commit 1546c67fa3
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
3 changed files with 24 additions and 4 deletions

View file

@ -89,6 +89,12 @@
{
packages.default = crate;
packages.server-only = craneLib.buildPackage {
name = name + "-server-only";
src = ./.;
cargoExtraArgs = "--no-default-features";
};
checks = {
crate-clippy = craneLib.cargoClippy (
commonArgs