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"
7
7
homepage = " https://github.com/jedisct1/rust-precision"
8
8
repository = " https://github.com/jedisct1/rust-precision"
9
9
description = " Low overhead, high precision measurement crate"
10
+ edition = " 2018"
10
11
11
12
[dependencies ]
12
13
libc = " 0.2"
13
14
14
15
[build-dependencies ]
15
- gcc = " 0.3 "
16
+ cc = " 1 "
16
17
rustc_version = " 0.2"
17
18
18
19
[profile .release ]
Original file line number Diff line number Diff line change 1
- extern crate gcc;
2
- extern crate rustc_version;
1
+ use cc;
3
2
4
3
use rustc_version:: { version_meta, Channel } ;
5
4
@@ -13,7 +12,7 @@ fn main() {
13
12
if using_nightly && asm_capable_target {
14
13
println ! ( "cargo:rustc-cfg=asm" ) ;
15
14
} else {
16
- gcc :: Build :: new ( )
15
+ cc :: Build :: new ( )
17
16
. file ( "src/cpucounter.c" )
18
17
. flag_if_supported ( "-fomit-frame-pointer" )
19
18
. opt_level ( 3 )
Original file line number Diff line number Diff line change 23
23
//! let elapsed_total_secs = elapsed_total.as_secs_f64(&p);
24
24
//! let hw_ticks = elapsed_total.ticks();
25
25
//! ```
26
- extern crate libc;
27
26
28
27
mod config;
29
28
mod cpucounter;
You can’t perform that action at this time.
0 commit comments