From 0eef05142a03cbe393e8e346d401991d45878a81 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Tue, 21 Aug 2018 19:47:12 -0400 Subject: ripgrep: move minimum version to Rust stable This also updates some code to make use of our more liberal versioning requirement, including the use of crossbeam-channel instead of the MsQueue from the older an unmaintained crossbeam 0.3. This does regrettably add a sizable number of dependencies, however, compile times seem mostly unaffected. Closes #1019 --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/app.rs b/src/app.rs index 7f20fbe3..a776abec 100644 --- a/src/app.rs +++ b/src/app.rs @@ -125,7 +125,7 @@ fn compile_cpu_features() -> Vec<&'static str> { } /// Returns the relevant CPU features enabled at runtime. -#[cfg(all(ripgrep_runtime_cpu, target_arch = "x86_64"))] +#[cfg(target_arch = "x86_64")] fn runtime_cpu_features() -> Vec<&'static str> { // This is kind of a dirty violation of abstraction, since it assumes // knowledge about what specific SIMD features are being used. @@ -145,7 +145,7 @@ fn runtime_cpu_features() -> Vec<&'static str> { } /// Returns the relevant CPU features enabled at runtime. -#[cfg(not(all(ripgrep_runtime_cpu, target_arch = "x86_64")))] +#[cfg(not(target_arch = "x86_64"))] fn runtime_cpu_features() -> Vec<&'static str> { vec![] } -- cgit v1.2.3