Skip to content

Commit

Permalink
fix default conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Oct 14, 2024
1 parent 1a90bc2 commit ce2bc07
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ compile_error!("This crate cannot use the secret-service without an explicit fla
//
// pick the *nix keystore
//
#[cfg(all(target_os = "linux", feature = "keyutils"))]
#[cfg(all(
target_os = "linux",
any(feature = "linux-native", feature = "keyutils"),
))]
pub mod keyutils;
#[cfg(all(
target_os = "linux",
Expand Down Expand Up @@ -226,7 +229,11 @@ pub use secret_service_with_keyutils as default;
// fallback to mock if neither keyutils nor secret service is available
#[cfg(all(
any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"),
not(any(feature = "keyutils", feature = "secret-service")),
not(any(
feature = "linux-native",
feature = "keyutils",
feature = "secret-service",
)),
))]
pub use mock as default;

Expand Down

0 comments on commit ce2bc07

Please sign in to comment.