Skip to content

Commit

Permalink
Edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 12, 2019
1 parent a03c998 commit e18b7ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ license = "ISC"
homepage = "https://github.com/jedisct1/rust-precision"
repository = "https://github.com/jedisct1/rust-precision"
description = "Low overhead, high precision measurement crate"
edition = "2018"

[dependencies]
libc = "0.2"

[build-dependencies]
gcc = "0.3"
cc = "1"
rustc_version = "0.2"

[profile.release]
Expand Down
5 changes: 2 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
extern crate gcc;
extern crate rustc_version;
use cc;

use rustc_version::{version_meta, Channel};

Expand All @@ -13,7 +12,7 @@ fn main() {
if using_nightly && asm_capable_target {
println!("cargo:rustc-cfg=asm");
} else {
gcc::Build::new()
cc::Build::new()
.file("src/cpucounter.c")
.flag_if_supported("-fomit-frame-pointer")
.opt_level(3)
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
//! let elapsed_total_secs = elapsed_total.as_secs_f64(&p);
//! let hw_ticks = elapsed_total.ticks();
//! ```
extern crate libc;

mod config;
mod cpucounter;
Expand Down

0 comments on commit e18b7ae

Please sign in to comment.