make ldd / where features optional

This commit is contained in:
atagen 2025-11-03 16:41:38 +11:00
parent e9fe5a3471
commit 93e0dfc34e
3 changed files with 29 additions and 11 deletions

View file

@ -2,11 +2,17 @@
name = "yoke"
version = "0.1.0"
authors = [ "atagen" ]
description = "A simple sandboxing tool, similar to bwrap"
description = "CLI sandboxing tool similar to landrun or bwrap"
repository = "https://git.atagen.co/atagen/yoke"
license = "GPL-3.0-or-later"
edition = "2024"
[features]
default = []
ldd = ["dep:elb-dl"]
which = ["dep:which"]
[profile.release]
strip = true
opt-level = "s"
@ -14,7 +20,7 @@ codegen-units = 1
[dependencies]
anyhow = "1.0.100"
elb-dl = { version = "0.3.2", features = ["glibc"], default-features = false }
exec = "0.3.1"
landlock = "0.4.3"
which = "8.0.0"
exec = "0.3.1"
elb-dl = { version = "0.3.2", features = ["glibc"], default-features = false, optional = true }
which = { version = "8.0.0", optional = true }