Skip to content

Commit

Permalink
Turn off nix's default features (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
smalis-msft authored Aug 14, 2023
1 parent 671b323 commit 7219e8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
23 changes: 0 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ clap = { version = "4", optional = true, features = ["derive", "wrap_help"] }
count-zeroes = { version = "0.2.0", optional = true }

[features]
default = [ "nix" ]
cli = [ "lazy_static", "ansi_term", "pad", "unicode-width", "linefeed", "rand", "clap", "count-zeroes" ]

[target.'cfg(target_os = "linux")'.dependencies]
nix = ">= 0.22, < 0.27"
nix = { version = ">= 0.24, < 0.27", default-features = false, features = ["ioctl"], optional = true }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ use std::ops::{Index, IndexMut, RangeInclusive};
use thiserror::Error;

/// Linux specific helpers
#[cfg(target_os = "linux")]
#[cfg(all(target_os = "linux", feature = "nix"))]
pub mod linux;

const DEFAULT_ALIGN: u64 = 2048;
Expand Down

0 comments on commit 7219e8b

Please sign in to comment.