Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Andre Bogus <bogusandre@gmail.de>", "Joshua Landau <joshua@landau.ws
description = "count occurrences of a given byte, or the number of UTF-8 code points, in a byte slice, fast"
edition = "2018"
name = "bytecount"
version = "0.6.8"
version = "0.6.9"
license = "Apache-2.0/MIT"
repository = "https://github.com/llogiq/bytecount"
categories = ["algorithms", "no-std"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The [newlinebench](https://github.com/llogiq/newlinebench) repository has furthe

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

In your crate root (`lib.rs` or `main.rs`, depending on if you are writing a
library or application), add `extern crate bytecount;`. Now you can simply use
Expand Down
12 changes: 4 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
//! still on small strings.

#![cfg_attr(feature = "generic-simd", feature(portable_simd))]

#![deny(missing_docs)]
#![cfg_attr(not(feature = "runtime-dispatch-simd"), no_std)]

Expand All @@ -50,10 +49,7 @@ mod integer_simd;
feature = "runtime-dispatch-simd",
any(target_arch = "x86", target_arch = "x86_64")
),
all(
target_arch = "aarch64",
target_endian = "little"
),
all(target_arch = "aarch64", target_endian = "little"),
target_arch = "wasm32",
feature = "generic-simd"
))]
Expand Down Expand Up @@ -97,9 +93,9 @@ pub fn count(haystack: &[u8], needle: u8) -> usize {
}
}
#[cfg(all(
target_arch = "aarch64",
target_arch = "aarch64",
target_endian = "little",
not(feature = "generic_simd")
not(feature = "generic-simd")
))]
{
unsafe {
Expand Down Expand Up @@ -165,7 +161,7 @@ pub fn num_chars(utf8_chars: &[u8]) -> usize {
#[cfg(all(
target_arch = "aarch64",
target_endian = "little",
not(feature = "generic_simd")
not(feature = "generic-simd")
))]
{
unsafe {
Expand Down
Loading