add feature "all"

This commit is contained in:
do butterflies cry? 2026-04-14 14:45:16 +10:00
parent 938a8662d4
commit b0d1f5ae82
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 17 additions and 18 deletions

View file

@ -10,26 +10,24 @@ authors = [ "_cry64 <them@dobutterfliescry.net>" ]
edition = "2024" edition = "2024"
build = "build.rs" build = "build.rs"
[package.metadata.docs.rs]
targets = [ "x86_64-unknown-linux-gnu" ]
[lib] [lib]
path = "src/lib.rs" path = "src/lib.rs"
# NOTE: `[features]` have a 1-1 correspondence to the # NOTE: `[features]` have a 1-1 correspondence to the
# NOTE: shared libraries produced by the Nix C API. # NOTE: shared libraries produced by the Nix C API.
[features] [features]
default = ["nix-util-c"] default = [ "nix-util-c" ]
nix-util-c = [] all = [ "nix-util-c", "nix-store-c", "nix-expr-c", "nix-fetchers-c", "nix-flake-c", "nix-main-c" ]
nix-store-c = [] nix-util-c = []
nix-expr-c = [] nix-store-c = []
nix-expr-c = []
nix-fetchers-c = [] nix-fetchers-c = []
nix-flake-c = [] nix-flake-c = []
nix-main-c = [] nix-main-c = []
[build-dependencies] [build-dependencies]
itertools = "0.14.0" itertools = "0.14.0"
heck = "0.5.0" heck = "0.5.0"
# rust-bindgen # rust-bindgen
bindgen = { default-features = false, features = [ "logging", "runtime" ], version = "0.72.1" } bindgen = { default-features = false, features = [ "logging", "runtime" ], version = "0.72.1" }

View file

@ -14,17 +14,18 @@ path = "src/lib.rs"
[features] [features]
default = ["nix"] default = ["nix"]
nix = ["nixide-sys/nix-util-c", "nixide-sys/nix-main-c"] all = ["nix", "store", "exprs", "flakes"]
store = ["nix", "nixide-sys/nix-store-c"] nix = ["nixide-sys/nix-util-c", "nixide-sys/nix-main-c"]
exprs = ["store", "nixide-sys/nix-expr-c"] store = ["nix", "nixide-sys/nix-store-c"]
flakes = ["exprs", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"] exprs = ["store", "nixide-sys/nix-expr-c"]
flakes = ["exprs", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"]
[dependencies] [dependencies]
libc = "0.2.183" libc = "0.2.183"
stdext = "0.3.3" stdext = "0.3.3"
ctor = "0.6.3" ctor = "0.6.3"
nixide-sys = { path = "../nixide-sys", version = "0.1.0" } nixide-sys = { path = "../nixide-sys", version = "0.1.0" }
tempfile = "3.27.0" tempfile = "3.27.0"
[dev-dependencies] [dev-dependencies]
serial_test = "3.4.0" serial_test = "3.4.0"