Skip to content

Commit e18b7ae

Browse files
committed
Edition 2018
1 parent a03c998 commit e18b7ae

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ license = "ISC"
77
homepage = "https://github.com/jedisct1/rust-precision"
88
repository = "https://github.com/jedisct1/rust-precision"
99
description = "Low overhead, high precision measurement crate"
10+
edition = "2018"
1011

1112
[dependencies]
1213
libc = "0.2"
1314

1415
[build-dependencies]
15-
gcc = "0.3"
16+
cc = "1"
1617
rustc_version = "0.2"
1718

1819
[profile.release]

build.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
extern crate gcc;
2-
extern crate rustc_version;
1+
use cc;
32

43
use rustc_version::{version_meta, Channel};
54

@@ -13,7 +12,7 @@ fn main() {
1312
if using_nightly && asm_capable_target {
1413
println!("cargo:rustc-cfg=asm");
1514
} else {
16-
gcc::Build::new()
15+
cc::Build::new()
1716
.file("src/cpucounter.c")
1817
.flag_if_supported("-fomit-frame-pointer")
1918
.opt_level(3)

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
//! let elapsed_total_secs = elapsed_total.as_secs_f64(&p);
2424
//! let hw_ticks = elapsed_total.ticks();
2525
//! ```
26-
extern crate libc;
2726
2827
mod config;
2928
mod cpucounter;

0 commit comments

Comments
 (0)