File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ license = "ISC"
77homepage = " https://github.com/jedisct1/rust-precision"
88repository = " https://github.com/jedisct1/rust-precision"
99description = " Low overhead, high precision measurement crate"
10+ edition = " 2018"
1011
1112[dependencies ]
1213libc = " 0.2"
1314
1415[build-dependencies ]
15- gcc = " 0.3 "
16+ cc = " 1 "
1617rustc_version = " 0.2"
1718
1819[profile .release ]
Original file line number Diff line number Diff line change 1- extern crate gcc;
2- extern crate rustc_version;
1+ use cc;
32
43use 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 )
Original file line number Diff line number Diff line change 2323//! let elapsed_total_secs = elapsed_total.as_secs_f64(&p);
2424//! let hw_ticks = elapsed_total.ticks();
2525//! ```
26- extern crate libc;
2726
2827mod config;
2928mod cpucounter;
You can’t perform that action at this time.
0 commit comments