optimise packaging for size

This commit is contained in:
atagen 2025-10-31 15:30:19 +11:00
parent 924b3c7e62
commit 38fa6cc4a8
2 changed files with 13 additions and 2 deletions

View file

@ -1,10 +1,20 @@
[package]
name = "yoke"
version = "0.1.0"
authors = [ "atagen" ]
description = "A simple sandboxing tool, similar to bwrap"
repository = "https://git.atagen.co/atagen/yoke"
license = "GPL-3.0-or-later"
edition = "2024"
[profile.release]
strip = true
opt-level = "s"
codegen-units = 1
[dependencies]
anyhow = "1.0.100"
exec = "0.3.1"
gumdrop = "0.8.1"
landlock = "0.4.3"

View file

@ -36,10 +36,11 @@
inherit (details) version;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
RUSTFLAGS = "-C prefer-dynamic=yes";
meta = {
description = "A simple sandboxing tool, similar to bwrap";
homepage = "https://git.atagen.co/atagen/yoke";
description = details.description;
homepage = details.repository;
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.atagen ];
mainProgram = details.name;