mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-11-29 05:57:07 +02:00
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
This commit is contained in:
@@ -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![]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user