Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sysinfo requirement from 0.29 to 0.30 #80

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ proptest.workspace = true
static_assertions.workspace = true

# Used in examples to portably query the OS process list
sysinfo = { version = "0.29", default-features = false }
sysinfo = { version = "0.30", default-features = false }

# Used to test file I/O
tempfile = "3.8"
Expand Down
3 changes: 1 addition & 2 deletions examples/bind_process_cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use hwlocality::{
object::{types::ObjectType, TopologyObject},
ProcessId, Topology,
};
use sysinfo::SystemExt;

/// Example which binds an arbitrary process (in this example this very same one)
/// to the last processing unit (core or hyperthread).
Expand All @@ -19,7 +18,7 @@ fn main() -> eyre::Result<()> {
println!("This example needs support for querying and setting process CPU bindings");
return Ok(());
}
if !sysinfo::System::IS_SUPPORTED {
if !sysinfo::IS_SUPPORTED_SYSTEM {
println!("This example needs support for querying current PID");
return Ok(());
}
Expand Down
4 changes: 2 additions & 2 deletions examples/process_cpu_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use hwlocality::{
},
ProcessId, Topology,
};
use sysinfo::{ProcessRefreshKind, RefreshKind, System, SystemExt};
use sysinfo::{ProcessRefreshKind, RefreshKind, System};

/// Example which displays process CPU bindings
fn main() -> eyre::Result<()> {
Expand All @@ -20,7 +20,7 @@ fn main() -> eyre::Result<()> {
println!("This example needs support for querying process CPU bindings");
return Ok(());
}
if !sysinfo::System::IS_SUPPORTED {
if !sysinfo::IS_SUPPORTED_SYSTEM {
println!("This example needs support for querying the process list");
return Ok(());
}
Expand Down
1 change: 0 additions & 1 deletion src/topology/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ pub(crate) mod tests {
},
panic::UnwindSafe,
};
use sysinfo::PidExt;
use tempfile::NamedTempFile;

// Check that public types in this module keep implementing all expected
Expand Down