mirror of
https://github.com/azalea-rs/simdnbt.git
synced 2025-08-02 23:44:40 +00:00
use patched simd_cesu8 to fix compilation
This commit is contained in:
parent
be87181bd9
commit
80997f7f71
5 changed files with 7 additions and 6 deletions
5
Cargo.lock
generated
5
Cargo.lock
generated
|
@ -738,8 +738,7 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "simd_cesu8"
|
name = "simd_cesu8"
|
||||||
version = "1.0.1"
|
version = "1.0.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/EightFactorial/simd_cesu8#546354e0c62ffd08de95cfedc4a09ed7683adac4"
|
||||||
checksum = "7c14f02c32cc4ef5068b0e15bee4513942f59165add7778a518b4d507b3b97ab"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc_version",
|
"rustc_version",
|
||||||
"simdutf8",
|
"simdutf8",
|
||||||
|
@ -747,7 +746,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "simdnbt"
|
name = "simdnbt"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azalea-nbt",
|
"azalea-nbt",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
|
|
@ -9,3 +9,6 @@ debug = false
|
||||||
[profile.bench]
|
[profile.bench]
|
||||||
lto = true
|
lto = true
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
simd_cesu8 = { git = 'https://github.com/EightFactorial/simd_cesu8' }
|
||||||
|
|
|
@ -32,6 +32,7 @@ ussr-nbt = "0.2.1"
|
||||||
default = ["derive"]
|
default = ["derive"]
|
||||||
derive = ["dep:simdnbt-derive"]
|
derive = ["dep:simdnbt-derive"]
|
||||||
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
debug = false
|
debug = false
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![feature(portable_simd)]
|
#![feature(portable_simd)]
|
||||||
#![feature(array_chunks)]
|
|
||||||
#![allow(internal_features)]
|
#![allow(internal_features)]
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(allocator_api)]
|
#![feature(allocator_api)]
|
||||||
|
|
|
@ -24,8 +24,7 @@ pub struct Mutf8String {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn is_plain_ascii(slice: &[u8]) -> bool {
|
fn is_plain_ascii(slice: &[u8]) -> bool {
|
||||||
let mut is_plain_ascii = true;
|
let mut is_plain_ascii = true;
|
||||||
let chunks_32_exact = slice.array_chunks::<32>();
|
let (chunks_32_exact, mut remainder) = slice.as_chunks::<32>();
|
||||||
let mut remainder = chunks_32_exact.remainder();
|
|
||||||
if remainder.len() > 16 {
|
if remainder.len() > 16 {
|
||||||
let chunk;
|
let chunk;
|
||||||
(chunk, remainder) = remainder.split_first_chunk::<16>().unwrap();
|
(chunk, remainder) = remainder.split_first_chunk::<16>().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue