Skip to content

Commit

Permalink
Merge pull request #280 from najaco/criterion_rustix_upgrade
Browse files Browse the repository at this point in the history
Dependency upgrades (rustix, criterion)
  • Loading branch information
eminence authored Jul 19, 2023
2 parents d7ea846 + 2ef8c0e commit cd39683
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions procfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ serde1 = ["serde", "procfs-core/serde1"]

[dependencies]
procfs-core = { path = "../procfs-core", version = "0.16.0-RC1", default-features = false }
rustix = { version = "0.37.0", features = ["fs", "process", "param", "thread"] }
rustix = { version = "0.38.4", features = ["fs", "process", "param", "system", "thread"] }
bitflags = { version = "2.0", default-features = false }
lazy_static = "1.0.2"
chrono = {version = "0.4.20", optional = true, features = ["clock"], default-features = false }
Expand All @@ -28,7 +28,7 @@ backtrace = { version = "0.3", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }

[dev-dependencies]
criterion = "0.4"
criterion = "0.5"
procinfo = "0.4.2"
failure = "0.1"
libc = "0.2.139"
Expand Down
2 changes: 1 addition & 1 deletion procfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl Current for KernelConfig {
unreachable!("flate2 feature not enabled")
}
} else {
let kernel = rustix::process::uname();
let kernel = rustix::system::uname();

let filename = format!("{}-{}", BOOT_CONFIG, kernel.release().to_string_lossy());

Expand Down
6 changes: 3 additions & 3 deletions procfs/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl Process {
Ok(_) => OFlags::PATH | OFlags::DIRECTORY | OFlags::CLOEXEC,
Err(_) => OFlags::PATH | OFlags::DIRECTORY | OFlags::CLOEXEC,
};
let file = wrap_io_error!(root, rustix::fs::openat(rustix::fs::cwd(), &root, flags, Mode::empty()))?;
let file = wrap_io_error!(root, rustix::fs::openat(rustix::fs::CWD, &root, flags, Mode::empty()))?;

let pidres = root
.as_path()
Expand All @@ -233,7 +233,7 @@ impl Process {
})
.and_then(|s| s.to_string_lossy().parse::<i32>().ok())
.or_else(|| {
rustix::fs::readlinkat(rustix::fs::cwd(), &root, Vec::new())
rustix::fs::readlinkat(rustix::fs::CWD, &root, Vec::new())
.ok()
.and_then(|s| s.to_string_lossy().parse::<i32>().ok())
});
Expand Down Expand Up @@ -947,7 +947,7 @@ pub fn all_processes_with_root(root: impl AsRef<Path>) -> ProcResult<ProcessesIt
let dir = wrap_io_error!(
root,
rustix::fs::openat(
rustix::fs::cwd(),
rustix::fs::CWD,
root,
OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC,
Mode::empty()
Expand Down

0 comments on commit cd39683

Please sign in to comment.