Skip to content

Commit f06647f

Browse files
committed
fix generic-simd feature, bump version to 0.6.9
1 parent 91a8062 commit f06647f

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Andre Bogus <bogusandre@gmail.de>", "Joshua Landau <joshua@landau.ws
33
description = "count occurrences of a given byte, or the number of UTF-8 code points, in a byte slice, fast"
44
edition = "2018"
55
name = "bytecount"
6-
version = "0.6.8"
6+
version = "0.6.9"
77
license = "Apache-2.0/MIT"
88
repository = "https://github.com/llogiq/bytecount"
99
categories = ["algorithms", "no-std"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The [newlinebench](https://github.com/llogiq/newlinebench) repository has furthe
1212

1313
To use bytecount in your crate, if you have [cargo-edit](https://github.com/killercup/cargo-edit), just type
1414
`cargo add bytecount` in a terminal with the crate root as the current path. Otherwise you can manually edit your
15-
`Cargo.toml` to add `bytecount = 0.6.8` to your `[dependencies]` section.
15+
`Cargo.toml` to add `bytecount = 0.6.9` to your `[dependencies]` section.
1616

1717
In your crate root (`lib.rs` or `main.rs`, depending on if you are writing a
1818
library or application), add `extern crate bytecount;`. Now you can simply use

src/lib.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
//! still on small strings.
3333
3434
#![cfg_attr(feature = "generic-simd", feature(portable_simd))]
35-
3635
#![deny(missing_docs)]
3736
#![cfg_attr(not(feature = "runtime-dispatch-simd"), no_std)]
3837

@@ -50,10 +49,7 @@ mod integer_simd;
5049
feature = "runtime-dispatch-simd",
5150
any(target_arch = "x86", target_arch = "x86_64")
5251
),
53-
all(
54-
target_arch = "aarch64",
55-
target_endian = "little"
56-
),
52+
all(target_arch = "aarch64", target_endian = "little"),
5753
target_arch = "wasm32",
5854
feature = "generic-simd"
5955
))]
@@ -97,9 +93,9 @@ pub fn count(haystack: &[u8], needle: u8) -> usize {
9793
}
9894
}
9995
#[cfg(all(
100-
target_arch = "aarch64",
96+
target_arch = "aarch64",
10197
target_endian = "little",
102-
not(feature = "generic_simd")
98+
not(feature = "generic-simd")
10399
))]
104100
{
105101
unsafe {
@@ -165,7 +161,7 @@ pub fn num_chars(utf8_chars: &[u8]) -> usize {
165161
#[cfg(all(
166162
target_arch = "aarch64",
167163
target_endian = "little",
168-
not(feature = "generic_simd")
164+
not(feature = "generic-simd")
169165
))]
170166
{
171167
unsafe {

0 commit comments

Comments
 (0)