diff --git a/nixide-sys/Cargo.toml b/nixide-sys/Cargo.toml index a0764de..640e70c 100644 --- a/nixide-sys/Cargo.toml +++ b/nixide-sys/Cargo.toml @@ -10,26 +10,24 @@ authors = [ "_cry64 " ] edition = "2024" build = "build.rs" -[package.metadata.docs.rs] -targets = [ "x86_64-unknown-linux-gnu" ] - [lib] path = "src/lib.rs" # NOTE: `[features]` have a 1-1 correspondence to the # NOTE: shared libraries produced by the Nix C API. [features] -default = ["nix-util-c"] -nix-util-c = [] -nix-store-c = [] -nix-expr-c = [] +default = [ "nix-util-c" ] +all = [ "nix-util-c", "nix-store-c", "nix-expr-c", "nix-fetchers-c", "nix-flake-c", "nix-main-c" ] +nix-util-c = [] +nix-store-c = [] +nix-expr-c = [] nix-fetchers-c = [] -nix-flake-c = [] -nix-main-c = [] +nix-flake-c = [] +nix-main-c = [] [build-dependencies] itertools = "0.14.0" -heck = "0.5.0" +heck = "0.5.0" # rust-bindgen bindgen = { default-features = false, features = [ "logging", "runtime" ], version = "0.72.1" } diff --git a/nixide/Cargo.toml b/nixide/Cargo.toml index d1ec29c..a3c223b 100644 --- a/nixide/Cargo.toml +++ b/nixide/Cargo.toml @@ -14,17 +14,18 @@ path = "src/lib.rs" [features] default = ["nix"] -nix = ["nixide-sys/nix-util-c", "nixide-sys/nix-main-c"] -store = ["nix", "nixide-sys/nix-store-c"] -exprs = ["store", "nixide-sys/nix-expr-c"] -flakes = ["exprs", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"] +all = ["nix", "store", "exprs", "flakes"] +nix = ["nixide-sys/nix-util-c", "nixide-sys/nix-main-c"] +store = ["nix", "nixide-sys/nix-store-c"] +exprs = ["store", "nixide-sys/nix-expr-c"] +flakes = ["exprs", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"] [dependencies] -libc = "0.2.183" -stdext = "0.3.3" -ctor = "0.6.3" +libc = "0.2.183" +stdext = "0.3.3" +ctor = "0.6.3" nixide-sys = { path = "../nixide-sys", version = "0.1.0" } -tempfile = "3.27.0" +tempfile = "3.27.0" [dev-dependencies] serial_test = "3.4.0"