Skip to content

Commit

Permalink
Remove libc from dev-dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull authored and Xaeroxe committed Sep 3, 2023
1 parent f24fb58 commit 92b3942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ rustix = { version = "0.38.10", default-features = false, features = ["fs", "std
once_cell = "1"

[dev-dependencies]
libc = "0.2.147"
tempfile = "3.3.0"

[package.metadata.docs.rs]
Expand Down
6 changes: 2 additions & 4 deletions tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> {
use std::os::unix::fs::OpenOptionsExt;
let bin = dir.join(path).with_extension(extension);

#[cfg(target_os = "macos")]
let mode = libc::S_IXUSR as u32;
#[cfg(target_os = "linux")]
let mode = libc::S_IXUSR;
#[cfg(any(target_os = "macos", target_os = "linux"))]
let mode = rustix::fs::Mode::XUSR.bits();
let mode = 0o666 | mode;
fs::OpenOptions::new()
.write(true)
Expand Down

0 comments on commit 92b3942

Please sign in to comment.