diff --git a/Cargo.toml b/Cargo.toml index 419be6de..ee28f1e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,16 +12,14 @@ license = "MIT" edition = '2018' [dependencies.x86] -version = "0.45.0" +version = "0.47.0" features = ["performance-counter"] [dependencies] bitflags = "1.2.1" libc = "0.2" mmap = "0.1.*" -byteorder = "1.3.4" nom = "4.2.3" -phf = "0.9.0" [[bin]] name = "perfcnt-list" diff --git a/rust-toolchain b/rust-toolchain index 07ade694..2bf5ad04 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly \ No newline at end of file +stable diff --git a/src/bin/list.rs b/src/bin/list.rs index e8d86628..19895f45 100644 --- a/src/bin/list.rs +++ b/src/bin/list.rs @@ -1,6 +1,3 @@ -extern crate perfcnt; -extern crate x86; - use x86::perfcnt::intel::{events, EventDescription}; fn print_counter(id: &str, info: &EventDescription) { diff --git a/src/bin/parse.rs b/src/bin/parse.rs index eec5f6f8..c75fc8f0 100644 --- a/src/bin/parse.rs +++ b/src/bin/parse.rs @@ -1,5 +1,3 @@ -extern crate perfcnt; - use std::env; use std::fs::File; use std::io::prelude::*; diff --git a/src/bin/stats.rs b/src/bin/stats.rs index fcfc4c96..e9bd19e2 100644 --- a/src/bin/stats.rs +++ b/src/bin/stats.rs @@ -1,7 +1,3 @@ -extern crate perfcnt; -extern crate phf; -extern crate x86; - use x86::perfcnt::intel::events; fn print_stats(year: &'static str, name: &'static str, size: usize) {