Skip to content

Commit

Permalink
Disable simdutf8 by default, release 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
djkoloski committed Jul 17, 2021
1 parent 248669c commit b0df0de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions bytecheck/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bytecheck"
version = "0.6.2"
version = "0.6.3"
authors = ["David Koloski <djkoloski@gmail.com>"]
edition = "2018"
description = "Derive macro for bytecheck"
Expand All @@ -14,9 +14,9 @@ readme = "crates-io.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bytecheck_derive = { version = "=0.6.2", path = "../bytecheck_derive", default-features = false }
bytecheck_derive = { version = "=0.6.3", path = "../bytecheck_derive", default-features = false }
ptr_meta = "0.1"
simdutf8 = { version = "0.1", default-features = false }
simdutf8 = { version = "0.1", default-features = false, optional = true }

# Support for various common crates. These are primarily to get users off the ground and build some
# momentum.
Expand All @@ -30,4 +30,5 @@ uuid = { version = "0.8", optional = true }
[features]
default = ["std"]
verbose = []
std = ["bytecheck_derive/std", "simdutf8/std"]
simdutf8_std = ["simdutf8/std"]
std = ["bytecheck_derive/std"]
6 changes: 4 additions & 2 deletions bytecheck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ use core::{
ops, ptr, slice,
};
use ptr_meta::PtrExt;
#[cfg(not(feature = "verbose"))]
#[cfg(not(feature = "simdutf8"))]
use core::str::{from_utf8, Utf8Error};
#[cfg(all(feature = "simdutf8", not(feature = "verbose")))]
use simdutf8::basic::{from_utf8, Utf8Error};
#[cfg(feature = "verbose")]
#[cfg(all(feature = "simdutf8", feature = "verbose"))]
use simdutf8::compat::{from_utf8, Utf8Error};

pub use bytecheck_derive::CheckBytes;
Expand Down
2 changes: 1 addition & 1 deletion bytecheck_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bytecheck_derive"
version = "0.6.2"
version = "0.6.3"
authors = ["David Koloski <djkoloski@gmail.com>"]
edition = "2018"
description = "Derive macro for bytecheck"
Expand Down

0 comments on commit b0df0de

Please sign in to comment.