Skip to content
Myr

Remove cfg-if dependency

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 9df6174 · Browse files · 3 files+10 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+10 added−14 removed

  • other:+10 added−14 removed

3 files+10 added−14 removed

modified:src/timer/mod.rs+10 added-12 removed
1mod internal;1use std::process::Child;23mod internal;4pub mod wallclocktimer;55use cfg_if::cfg_if;6#[cfg(windows)]7mod windows_timer;8#[cfg(windows)]9pub use self::windows_timer::get_cpu_timer;107cfg_if! {8 if #[cfg(windows)] {9 mod windows_timer;10 pub use self::windows_timer::get_cpu_timer;11 } else {12 mod unix_timer;13 pub use self::unix_timer::get_cpu_timer;14 }15}16use std::process::Child;11#[cfg(not(windows))]12mod unix_timer;13#[cfg(not(windows))]14pub use self::unix_timer::get_cpu_timer;1516/// Defines start functionality of a timer.17pub trait TimerStart {18 fn start() -> Self;
8 unmodified lines
modified:Cargo.lock-1 removed
237 unmodified lines
238dependencies = [239 "approx",240 "assert_cmd",241 "atty",242 "cfg-if",242 "clap",243 "colored",244 "csv",245 "indicatif",
584 unmodified lines
modified:Cargo.toml-1 removed