fix flakes should depend on exprs

This commit is contained in:
do butterflies cry? 2026-03-29 18:28:21 +10:00
parent 0fc901f032
commit d6f3b5a691
Signed by: cry
GPG key ID: F68745A836CA0412
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ path = "src/lib.rs"
default = []
store = ["nixide-sys/nix-store-c"]
exprs = ["store", "nixide-sys/nix-expr-c"]
flakes = ["store", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"]
flakes = ["exprs", "nixide-sys/nix-flake-c", "nixide-sys/nix-fetchers-c"]
[dependencies]
libc = "0.2.183"

View file

@ -81,7 +81,7 @@ fn init_libstore() {
/// > that does not rely on Rust's stdlib services.
/// > - Excerpt from the [github:mmastrac/rust-ctor README.md](https://github.com/mmastrac/rust-ctor?tab=readme-ov-file#warnings)
#[ctor]
#[cfg(feature = "expr")]
#[cfg(feature = "exprs")]
fn init_libexpr() {
unsafe {
INIT_LIBEXPR_STATUS = Some(util::wrap::nix_fn!(|ctx: &errors::ErrorContext| unsafe {