From 6a568ee4c19806982145acec775e7b7649e55083 Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Thu, 3 Mar 2022 21:57:29 +1100 Subject: [PATCH] Update and remove unused deps --- Cargo.toml | 4 +--- rust-toolchain | 2 +- src/bin/list.rs | 3 --- src/bin/parse.rs | 2 -- src/bin/stats.rs | 4 ---- 5 files changed, 2 insertions(+), 13 deletions(-) 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) {