commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
44542872b211d37c3b94a0ea630ca898e3a65044
Matthias Einwag
2019-09-09T05:36:34
Use static dispatch in ManualResetEvent futures This aligns the design with what is done for Mutex and Semaphore Futures. The change also adds typedefs for less generic future types.
diff --git a/src/sync/manual_reset_event.rs b/src/sync/manual_reset_event.rs index 3866df0..8df4c59 100644 --- a/src/sync/manual_reset_event.rs +++ b/src/sync/manual_reset_event.rs @@ -2,7 +2,6 @@ use futures_core::future::{Future, FusedFuture}; use futures_core::task::{Context, Poll, Waker}; -use core::marker::Pha...
2
18
32
b5a051e9a9db564d02b4b9ad0a529874956110cf
Matthias Einwag
2019-09-09T05:23:51
Make the futures returned by synchronization primitives Send The Send property is determined based on whether a thread-safe Mutex is used. This allows to use them in multithreaded runtimes.
diff --git a/src/sync/manual_reset_event.rs b/src/sync/manual_reset_event.rs index e907be1..3866df0 100644 --- a/src/sync/manual_reset_event.rs +++ b/src/sync/manual_reset_event.rs @@ -2,6 +2,7 @@ use futures_core::future::{Future, FusedFuture}; use futures_core::task::{Context, Poll, Waker}; +use core::marker::Pha...
6
122
17
4ea73c9f60d476f5951ff8fc2fcbfd9bed29467c
Matthias Einwag
2019-09-09T04:49:52
Allow the timer to run run in multithreaded runtimes The timer functionality has been split into 2 different timer and Future types: - Timer and TimerFuture - LocalTimer and LocalTimerFuture This allows to keep the futures non-generic and the timer to be usable as a trait object.
diff --git a/src/timer/mod.rs b/src/timer/mod.rs index fd29cd0..047b58e 100644 --- a/src/timer/mod.rs +++ b/src/timer/mod.rs @@ -18,7 +18,9 @@ pub use self::clock::{ mod timer; pub use self::timer::{ - GenericTimerService, TimerFuture, Timer, + GenericTimerService, + LocalTimerFuture, TimerFuture, + Loc...
3
136
28
07a3cb960d4635d54a6386b2f936894ff3730a66
Matthias Einwag
2019-09-08T23:17:12
Make channel futures Send Previous versions of the library couldn't be used with multithreaded runtimes because the Futures haven't been marked as Send - even though they technically were (had been synchronized by thread-safe mutexes). Since however not all channels are thread-safe (LocalChannels are not) it is not p...
diff --git a/src/channel/channel_future.rs b/src/channel/channel_future.rs index c14ab15..99ff89f 100644 --- a/src/channel/channel_future.rs +++ b/src/channel/channel_future.rs @@ -1,5 +1,6 @@ use futures_core::future::{Future, FusedFuture}; use futures_core::task::{Context, Poll, Waker}; +use core::marker::PhantomDa...
8
247
106
3b15bf10c5f27499de839f94ef71564fcb3c9a15
Matthias Einwag
2019-09-08T03:25:40
Use an associated constant for array length in array-backed buffers This avoids to create a reference to the not-initialized array.
diff --git a/src/buffer/real_array.rs b/src/buffer/real_array.rs index af460e0..34f47fa 100644 --- a/src/buffer/real_array.rs +++ b/src/buffer/real_array.rs @@ -17,7 +17,9 @@ /// use futures_intrusive::channel::Channel; /// /// struct I32x384Array([i32; 384]); -/// unsafe impl RealArray<i32> for I32x384Array {} +///...
2
11
6
a3033632c6274ae9815613e9ddad45ef8075c116
Matthias Einwag
2019-09-08T03:19:11
Update dependencies Move to the most recent version of all dependencies.
diff --git a/Cargo.toml b/Cargo.toml index d932faf..7ffbd6c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,17 +18,17 @@ std = ["futures-core-preview/std", "parking_lot"] default = ["std"] [dependencies] -futures-core-preview = { version = "0.3.0-alpha.16", default-features = false } -lock_api = "0.2" -parking_lot ...
1
8
8
3f8b10de607cd32470dfe8267e51e977d549900e
Matthias Einwag
2019-09-08T03:00:46
Remove usage of async closures They actually haven't been needed, a normal closure which returns Futures is good enough.
diff --git a/tests/mpmc_channel.rs b/tests/mpmc_channel.rs index 43de0b5..540642f 100644 --- a/tests/mpmc_channel.rs +++ b/tests/mpmc_channel.rs @@ -1,5 +1,3 @@ -#![feature(async_closure)] - use futures::future::{Future, FusedFuture}; use futures::task::{Context, Poll}; use futures_intrusive::channel::{LocalChannel,...
1
2
4
962c87b9e1278c79f8fd28fc8a1e06a55e49cce4
Steven Fackler
2019-09-06T22:55:10
Fix up features async_await is now stable, but async closures are on a separate feature now.
diff --git a/benches/mpmc_channel.rs b/benches/mpmc_channel.rs index 4819fc8..a1ea03e 100644 --- a/benches/mpmc_channel.rs +++ b/benches/mpmc_channel.rs @@ -1,5 +1,3 @@ -#![feature(async_await)] - use futures::{join, FutureExt}; use futures::{ channel::mpsc, @@ -271,4 +269,4 @@ criterion_group!{ config = Cr...
10
14
30
e87569ef6938875df2fabdbc8e0217570fd4060e
Ankur Sinha
2025-05-22T16:14:19
chore: ignore unneeded files from crate (#1)
diff --git a/Cargo.toml b/Cargo.toml index 0a1cac6..5bb332c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,4 @@ repository = "https://github.com/Nugine/outref" keywords = ["write-only", "reference", "slice"] categories = ["no-std", "rust-patterns"] rust-version = "1.63.0" +exclude = ["/.github/", "/justfile"]
1
1
0
1f475502b36ebd3dfc37571339171c4024997194
Nugine
2025-03-06T08:50:26
feat: relax `Copy` bound
diff --git a/Cargo.toml b/Cargo.toml index 16c3a7d..0a1cac6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.5.2" +version = "0.6.0-dev" edition = "2021" description = "Out reference" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 220ab90..37384cf 100644 ...
2
29
25
a5d5bd765d4a0503a16bd33aa62c38c3ab6da417
Nugine
2025-03-06T08:30:45
feat: add new methods
diff --git a/src/lib.rs b/src/lib.rs index 2ff3702..220ab90 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,6 +154,17 @@ impl<'a, T> Out<'a, T> { pub fn as_mut_ptr(&mut self) -> *mut T { self.data.as_ptr().cast() } + + /// Writes a value to the pointee and returns a mutable reference to it. + ...
1
29
0
61a4126f37e34dd7c6386240dbc38bce490599ca
Nugine
2025-03-06T08:08:39
style: adjust lints
diff --git a/src/lib.rs b/src/lib.rs index 8509023..2ff3702 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,13 +54,12 @@ //! } //! ``` #![deny( - missing_docs, + missing_docs, // clippy::all, clippy::cargo, - clippy::missing_const_for_fn, - clippy::missing_inline_in_public_items, - clippy::m...
1
5
6
237d73a7c18ba55ef7a572ead0f27f4525a75a57
Nugine
2025-03-06T08:08:39
docs: update
diff --git a/src/lib.rs b/src/lib.rs index 4563a6c..8509023 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,58 @@ //! Out reference ([`&'a out T`](Out)). +//! +//! An out reference is similar to a mutable reference, but it may point to uninitialized memory. +//! An out reference may be used to initialize the point...
1
55
48
d0bbb510ec0e381cfa8f86bb5e4f94fd63912a9c
Nugine
2025-02-23T06:35:55
fix: lints
diff --git a/src/lib.rs b/src/lib.rs index c0d07d2..4563a6c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -212,6 +212,7 @@ impl<'a, T> Out<'a, [T]> { /// This trait can be trusted to be implemented correctly for all types. pub unsafe trait AsOut<T: ?Sized> { /// Returns an out reference to self. + #[must_use] ...
1
1
4
d49f75b5c3ee7511f4db6aeb0612a084c754dbd0
Nugine
2025-02-02T06:17:42
fix: lints
diff --git a/src/lib.rs b/src/lib.rs index 61bac1f..c0d07d2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,10 +21,10 @@ use core::slice; /// /// [`&'a out T`](Out) can be converted from: /// + [`&'a mut MaybeUninit<T>`](core::mem::MaybeUninit) -/// and [`&'a mut [MaybeUninit<T>]`](core::mem::MaybeUninit), -/// ...
1
3
3
cbbce9e3977ef154023bbda0660027c5e523766a
Nugine
2025-01-15T09:02:17
release v0.5.2
diff --git a/Cargo.toml b/Cargo.toml index 575bc16..16c3a7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.5.1" +version = "0.5.2" edition = "2021" description = "Out reference" license = "MIT"
1
1
1
bca3620a30c68bde71bdc995e7b5b401e04c6812
Nugine
2025-01-15T08:57:12
fix lints
diff --git a/src/lib.rs b/src/lib.rs index 09cecc3..61bac1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -181,7 +181,7 @@ impl<'a, T> Out<'a, [T]> { pub unsafe fn into_uninit_slice(self) -> &'a mut [MaybeUninit<T>] { let len = self.len(); let data = self.data.as_ptr().cast(); - unsafe { sli...
1
1
1
7d432da1e1d196f9a9d4f0c28b460989bec19cb0
Nugine
2023-02-27T05:07:16
add examples
diff --git a/src/lib.rs b/src/lib.rs index 7bbd818..09cecc3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,39 @@ use core::slice; /// and [`&'a mut MaybeUninit<T>`](core::mem::MaybeUninit) /// /[`&'a mut [MaybeUninit<T>]`](core::mem::MaybeUninit). /// -/// Any reads through an out reference may read uninitial...
1
33
1
0609a3cefac2744be2f2737def0ed4fef2c41865
Nugine
2023-01-02T04:38:48
release v0.5.1
diff --git a/Cargo.toml b/Cargo.toml index 96ccdf9..575bc16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.5.0" +version = "0.5.1" edition = "2021" description = "Out reference" license = "MIT"
1
1
1
9b29ab7504f1de7a52435953610b042bb0cc3b32
Nugine
2023-01-02T04:38:47
add into_uninit[_slice]
diff --git a/src/lib.rs b/src/lib.rs index caa852e..7bbd818 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,7 @@ use core::marker::PhantomData; use core::mem::MaybeUninit; use core::ptr::{self, NonNull}; +use core::slice; /// Out reference ([`&'a out T`](Out)). /// @@ -20,12 +21,15 @@ use core::ptr::{self,...
1
26
2
71fec0569ba017b1166b992c0d7cb92f667c222b
Nugine
2022-12-28T02:25:48
release v0.5.0
diff --git a/Cargo.toml b/Cargo.toml index f8d5c89..96ccdf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.5.0-dev" +version = "0.5.0" edition = "2021" description = "Out reference" license = "MIT"
1
1
1
351882e845bf3bbd62138b21f4bc5e79f9f54a3f
Nugine
2022-12-13T15:47:09
rename from_raw to new
diff --git a/Cargo.toml b/Cargo.toml index cd22ccd..f8d5c89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.4.0" +version = "0.5.0-dev" edition = "2021" description = "Out reference" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index c8c2176..caa852e 100644 ...
2
6
6
29a529af1c7bb788fb9842b0ece461ef61aad991
Nugine
2022-10-30T16:18:23
release v0.4.0
diff --git a/Cargo.toml b/Cargo.toml index cd0c7ad..cd22ccd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.4.0-dev" +version = "0.4.0" edition = "2021" description = "Out reference" license = "MIT"
1
1
1
0a59a13ff13c329d24142a0acba54cb19dd772d2
Nugine
2022-10-10T17:08:41
update test
diff --git a/src/lib.rs b/src/lib.rs index 54e53ab..a8c5117 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -123,7 +123,9 @@ mod tests { let data = buf.as_mut_ptr(); unsafe { if len > 0 { - if mem::size_of::<T>() == 1 { + if mem::size_of::<T>() == 0 { + ...
1
4
11
a0f506db91cd349a93e7160acbebdbfe5d5ce22c
Nugine
2022-09-11T09:01:59
release v0.3.0
diff --git a/Cargo.toml b/Cargo.toml index 0f3359a..aa59fd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "outref" -version = "0.2.0" +version = "0.3.0" edition = "2021" description = "A write-only reference" license = "MIT"
1
1
1
06fd56c08745a33426815132a109caa5383b61eb
Nugine
2022-09-11T08:17:35
refactor
diff --git a/src/lib.rs b/src/lib.rs index df01b83..54e53ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ use core::mem::MaybeUninit; use core::ptr::{self, NonNull}; /// A write-only reference. +#[repr(transparent)] pub struct OutRef<'a, T: ?Sized> { data: NonNull<T>, _marker: PhantomData<&'...
1
23
22
b87a6d393274393b1e51d8ccfb06d4771426c632
Nugine
2022-08-20T09:52:02
test: fill_vec
diff --git a/src/lib.rs b/src/lib.rs index 2d1fd30..df01b83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,11 +7,11 @@ clippy::missing_inline_in_public_items, clippy::must_use_candidate )] -#![no_std] +#![cfg_attr(not(test), no_std)] use core::marker::PhantomData; use core::mem::MaybeUninit; -use core::p...
1
60
3
45cf3956ed23645e61031f31fabc81751960d8f2
Nugine
2022-08-20T05:25:13
refactor
diff --git a/src/lib.rs b/src/lib.rs index c2a2d16..2d1fd30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,8 @@ clippy::all, clippy::cargo, clippy::missing_const_for_fn, - clippy::missing_inline_in_public_items + clippy::missing_inline_in_public_items, + clippy::must_use_candidate )] #![n...
1
47
85
9e7511933beacf7b37da63e733750a4c3baa405c
Jake Swensen
2025-07-26T04:30:02
fix: make thiserror buildable
diff --git a/src/error.rs b/src/error.rs index 5930c10..4ddc2a7 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,4 +1,4 @@ -#[derive(Clone, Copy, PartialEq)] +#[derive(Clone, Copy, PartialEq, Eq)] #[cfg_attr(feature = "defmt-03", derive(defmt::Format))] pub enum Error { InvalidChar, @@ -22,8 +22,7 @@ impl ::co...
1
2
3
004e4b2e16c887ede6e7b9b7af0b56541535f37f
Rudxain
2025-04-19T19:05:39
docs: fix "Saftey" typos
diff --git a/src/encode.rs b/src/encode.rs index a5234a2..9532397 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -29,7 +29,7 @@ fn hex_string_custom_case(src: &[u8], upper_case: bool) -> String { if cfg!(debug_assertions) { String::from_utf8(buffer).unwrap() } else { - // Saftey: We just wr...
1
3
3
fe2c4fabad0bfa13d32a78650693886ff49b062b
Rudxain
2025-04-19T19:04:36
`undocumented_unsafe_blocks = warn`
diff --git a/Cargo.toml b/Cargo.toml index c32ed14..fe5905c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,3 +46,6 @@ harness = false [[bench]] name = "check" harness = false + +[lints.clippy] +undocumented_unsafe_blocks = "warn"
1
3
0
56153638a89067f1cf43ebbc600b4ae2b163f5f6
Eval EXEC
2025-03-10T08:22:00
cargo: set MSRV to 1.61.0
diff --git a/Cargo.toml b/Cargo.toml index 4fae222..c32ed14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,18 +3,14 @@ name = "faster-hex" version = "0.10.0" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" +rust-version = "1.61.0" keywords = ["simd", "hex", "no-std"] license = "MIT" description = "...
1
5
9
dfeadbc3631bdc8a64844855e702888552f4cdfd
Eval EXEC
2025-02-06T08:24:31
Add unit test for option serde macros
diff --git a/src/serde.rs b/src/serde.rs index 4698684..0413671 100644 --- a/src/serde.rs +++ b/src/serde.rs @@ -232,7 +232,9 @@ faster_hex_serde_option_macros!(option_nopfx_uppercase, false, CheckCase::Upper) #[cfg(test)] mod tests { use super::{ - nopfx_ignorecase, nopfx_lowercase, nopfx_uppercase, with...
1
134
16
b88ab3a5aacf01b4d50b26b16ebd45c82d2ae401
Eval EXEC
2025-02-06T08:24:17
Re-export serde option macros
diff --git a/src/lib.rs b/src/lib.rs index badfd0e..e510f25 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,9 @@ pub use crate::error::Error; #[cfg(feature = "serde")] pub use crate::serde::{ - deserialize, nopfx_ignorecase, nopfx_lowercase, nopfx_uppercase, serialize, withpfx_ignorecase, + deserialize,...
1
3
1
c79fa0fe17269c9c650a99d8a9244043fbae8619
Eval EXEC
2025-02-06T08:23:04
Support option-macro serde macro
diff --git a/src/serde.rs b/src/serde.rs index 89e328c..4698684 100644 --- a/src/serde.rs +++ b/src/serde.rs @@ -10,7 +10,10 @@ mod internal { #[cfg(feature = "alloc")] use alloc::{borrow::Cow, format, string::ToString, vec}; use core::iter::FromIterator; - use serde::{de::Error, Deserializer, Seriali...
1
84
1
b67c41fa70aee562b40af5e295ce123d0d6f2bfb
Lynnesbian
2024-09-26T23:20:11
Gate SSE41 and AVX2 vectorisation behind x86/64
diff --git a/src/decode.rs b/src/decode.rs index b1ded82..86c5bd8 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -120,7 +120,6 @@ pub fn hex_check_with_case(src: &[u8], check_case: CheckCase) -> bool { match crate::vectorization_support() { crate::Vectorization::Neon => unsafe { hex_check_neon_...
3
2
3
b9e8c92f917ec9621fe9913fbd67c9322dd82f6d
Lynnesbian
2024-09-26T21:38:26
Remove now-unnecessary unreachable statements
diff --git a/src/decode.rs b/src/decode.rs index e01ca38..b1ded82 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -112,7 +112,6 @@ pub fn hex_check_with_case(src: &[u8], check_case: CheckCase) -> bool { hex_check_sse_with_case(src, check_case) }, crate::Vectorization::None =...
3
0
5
6ab50549f76fe8848786a4fbc5f864e71ea7fce9
Lynne
2024-09-24T00:56:01
Gate Vectorization::Neon to aarch64 Co-authored-by: Quake Wang <quake.wang@gmail.com>
diff --git a/src/lib.rs b/src/lib.rs index aa5e267..5083da3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,7 @@ pub(crate) enum Vectorization { None = 0, SSE41 = 1, AVX2 = 2, + #[cfg(target_arch = "aarch64")] Neon = 3, }
1
1
0
7f3266e1dfc5d16366074a88476c6cc3b0f4b63b
Lynnesbian
2024-09-23T05:38:57
Formatting
diff --git a/src/lib.rs b/src/lib.rs index 142efa8..30e585f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,10 +73,7 @@ pub(crate) fn vectorization_support() -> Vectorization { return val; } - #[cfg(all( - target_arch = "aarch64", - target_feature = "neon" - ))] + #[cfg(all(target...
1
3
7
859221bbcfd2256047b5bf6d334f30beb906ee3f
Lynnesbian
2024-09-23T01:39:09
Add missing use statements
diff --git a/src/lib.rs b/src/lib.rs index 7f248cb..142efa8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,6 +33,9 @@ pub use crate::encode::hex_to; #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub use crate::decode::{hex_check_sse, hex_check_sse_with_case}; +#[cfg(target_arch = "aarch64")] +pub use cr...
1
3
0
b956608756b2e09808aa74ee8238348f027c735a
Lynnesbian
2024-09-17T09:11:01
Fix no-std builds
diff --git a/src/lib.rs b/src/lib.rs index a77afe6..7f248cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -156,11 +156,14 @@ unsafe fn avx2_support_no_cache_x86() -> bool { #[cfg(target_arch = "aarch64")] #[cold] fn vectorization_support_no_cache_arm() -> Vectorization { - #[cfg(target_arch = "aarch64")] + #[cfg...
1
4
1
6d33a11be4fc268a75dd68bf9c4f25947b321d4e
Lynnesbian
2024-09-17T07:51:51
Add ARM NEON check implementation
diff --git a/src/decode.rs b/src/decode.rs index 5d42208..1d8a6ba 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -1,5 +1,7 @@ // avx2 decode modified from https://github.com/zbjornson/fast-hex/blob/master/src/hex.cc +#[cfg(target_arch = "aarch64")] +use core::arch::aarch64::*; #[cfg(target_arch = "x86")] use co...
1
166
8
0feb5d5c2b51cabd64c2ec273d66b03c4945362a
Lynnesbian
2024-09-17T05:26:39
Add ARM NEON encode implementation Currently only runs on `aarch64`, because `arm` NEON intrinsics are unstable: https://github.com/rust-lang/rust/issues/111800
diff --git a/src/decode.rs b/src/decode.rs index be8ea59..5d42208 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -110,6 +110,7 @@ pub fn hex_check_with_case(src: &[u8], check_case: CheckCase) -> bool { hex_check_sse_with_case(src, check_case) }, crate::Vectorization::None =...
3
111
3
e31a4f14799846a9aba70fc799a1cd5546da8b42
Lynnesbian
2024-09-16T02:51:53
check bit 28 for avx support
diff --git a/src/lib.rs b/src/lib.rs index aa54d2e..7a89a1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ fn vectorization_support_no_cache_x86() -> Vectorization { let have_xsave = (proc_info_ecx >> 26) & 1 == 1; let have_osxsave = (proc_info_ecx >> 27) & 1 == 1; - let have_avx = (proc_info...
1
1
1
67aef22b8049ac9e5994f98dfb704b119593630d
Georges Palauqui
2024-09-14T08:47:25
add support for defmt log using a new feature
diff --git a/Cargo.toml b/Cargo.toml index c6dfe97..4fae222 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,17 +17,22 @@ exclude = [ ] [dependencies] +defmt = { version = "0.3", optional = true } serde = { version = "1.0", default-features = false, optional = true } [features] default = ["std", "serde"] std =...
4
9
1
30765080101ce40863b9a90def9861cfd9b4374a
Eval EXEC
2024-09-14T05:13:24
Bump faster-hex to 0.10.0
diff --git a/Cargo.toml b/Cargo.toml index 63ff54e..f2cde74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.9.0" +version = "0.10.0" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex", "no-std"]
1
1
1
6fa4f15f4c8ffadffcc5eaa42668140519794657
Eval EXEC
2024-09-14T05:11:28
Upgrade dev-dependenciy: criterion to 0.4
diff --git a/Cargo.toml b/Cargo.toml index 39758f2..63ff54e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ serde = ["dep:serde", "alloc"] heapless = { version = "0.8" } [dev-dependencies] -criterion = "0.3" +criterion = "0.4" rustc-hex = "1.0" hex = "0.3.2" proptest = "1.0"
1
1
1
c73a61d75eceb34dd33da8a36e8e375d4131ced5
Georges Palauqui
2024-09-13T12:08:04
fix `serde` with `alloc` but without `std`
diff --git a/Cargo.toml b/Cargo.toml index 6ad17d2..39758f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ serde = { version = "1.0", default-features = false, optional = true } default = ["std", "serde"] std = ["alloc", "serde?/std"] alloc = [] -serde = ["dep:serde"] +serde = ["dep:serde", "alloc"] [...
2
7
6
d987e1c59c9a57131c3312268b63e53b682be235
Georges Palauqui
2024-09-13T12:08:04
impl hex_string() and hex_string_upper() using heapless::String
diff --git a/Cargo.toml b/Cargo.toml index 54b8586..6ad17d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,8 @@ std = ["alloc", "serde?/std"] alloc = [] serde = ["dep:serde"] - +[target.'cfg(not(feature = "alloc"))'.dependencies] +heapless = { version = "0.8" } [dev-dependencies] criterion = "0.3" diff -...
4
92
22
a45bc5304b0d37e7194c7c9f96b95939e890e85a
Georges Palauqui
2024-09-13T12:08:04
remove String dep from alloc to allow `[no-alloc]`
diff --git a/Cargo.toml b/Cargo.toml index 625174b..54b8586 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,11 +17,11 @@ exclude = [ ] [dependencies] -serde = { version = "1.0", optional = true } +serde = { version = "1.0", default-features = false, optional = true } [features] default = ["std", "serde"] -std =...
4
23
13
5afdb9ca1b1f666fad4ce93e1d6788c6e379e78d
Eval EXEC
2024-03-07T14:49:11
Improve documentation for `hex_decode`
diff --git a/src/decode.rs b/src/decode.rs index be452f5..188d1f6 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -211,14 +211,14 @@ pub unsafe fn hex_check_sse_with_case(mut src: &[u8], check_case: CheckCase) -> /// Hex decode src into dst. /// The length of src must be even, and it's allowed to decode a zero le...
1
2
2
3c8ec057a7e420a469b06ce957e97e68f988a677
Eval EXEC
2023-11-19T06:45:51
Bump to v0.8.2
diff --git a/Cargo.toml b/Cargo.toml index 69cf79a..f8835ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.8.1" +version = "0.8.2" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex", "no-std"]
1
1
1
389e214fc2b75247be67da71575132814df65141
Eval EXEC
2023-11-08T06:15:56
Return `Error::Overflow` in `decode.rs`
diff --git a/src/decode.rs b/src/decode.rs index 10a8503..be452f5 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -227,10 +227,7 @@ pub fn hex_decode_with_case( dst: &mut [u8], check_case: CheckCase, ) -> Result<(), Error> { - let len = dst - .len() - .checked_mul(2) - .ok_or(Error:...
1
1
4
160ef4dae676fe0619a3ac559f1a6f7ecd5d4f3e
Eval EXEC
2023-11-08T06:14:49
Add `Error::Overflow`
diff --git a/src/error.rs b/src/error.rs index d6cf5f2..5cffac3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,6 +2,7 @@ pub enum Error { InvalidChar, InvalidLength(usize), + Overflow, } impl ::core::fmt::Debug for Error { @@ -9,6 +10,7 @@ impl ::core::fmt::Debug for Error { match *self {...
1
3
0
362cb2fec7748c2258b78b51e4d69b6f1c605b67
Eval EXEC
2023-11-08T01:46:14
Replace unwrap by `Optin::ok_or`
diff --git a/src/decode.rs b/src/decode.rs index 739d64c..10a8503 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -227,7 +227,10 @@ pub fn hex_decode_with_case( dst: &mut [u8], check_case: CheckCase, ) -> Result<(), Error> { - let len = dst.len().checked_mul(2).unwrap(); + let len = dst + .len...
1
4
1
1a34b2136aaf44767030faadb586a0911d557af7
Martin von Zweigbergk
2023-11-08T00:05:22
reduce scope of some unsafe blocks
diff --git a/src/lib.rs b/src/lib.rs index 5490ac7..0782017 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,7 +60,7 @@ pub(crate) fn vectorization_support() -> Vectorization { }; } - let val = unsafe { vectorization_support_no_cache_x86() }; + let val = vectorization_support_no_cac...
1
5
4
a519dca8b4a949ada4d5cd4a2d195e3947fe6b7b
Martin von Zweigbergk
2023-11-07T20:24:40
reduce scope of unsafe xsave code to where know it's supported This commit moves the code that uses xsave into its own function, so the scope of the `#[target_feature(...)]` covers only code that's run after checking that the processor supports xsave. Found in code review, not in practice.
diff --git a/src/lib.rs b/src/lib.rs index 86a3577..5490ac7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,15 +69,13 @@ pub(crate) fn vectorization_support() -> Vectorization { Vectorization::None } -// We enable xsave so it can inline the _xgetbv call. -#[target_feature(enable = "xsave")] #[cfg(any(target_ar...
1
28
12
8e22de4f60b5e9a3eff5457291f815bb0c0e010d
Eval EXEC
2023-11-02T03:18:11
Fix hex_decode doc: allow decode zero length of src
diff --git a/src/decode.rs b/src/decode.rs index 17db8ff..739d64c 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -210,15 +210,15 @@ pub unsafe fn hex_check_sse_with_case(mut src: &[u8], check_case: CheckCase) -> } /// Hex decode src into dst. -/// The length of src must be even and not zero. -/// The length of d...
1
21
3
31967b4bbd70ab25e8795f19e5e37f2d1e02abf7
Eval EXEC
2023-11-02T02:42:38
Test: hex_decode: `if src.len == 0 && dst.len != 0`, `hex_decode` should report error
diff --git a/src/decode.rs b/src/decode.rs index 50b2cd9..17db8ff 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -505,11 +505,15 @@ mod test_sse { } #[test] - fn test_decode_zero_length_src_should_be_ok() { + fn test_decode_zero_length_src_should_not_be_ok() { let src = b""; let m...
1
7
3
5a656430f9e13a96e35d54bc614d3320c8e5500a
Eval EXEC
2023-11-02T02:33:21
Test: hex_decode will return Error when `dst.len` > `src.len * 2`
diff --git a/src/decode.rs b/src/decode.rs index 4562b6b..50b2cd9 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -523,4 +523,27 @@ mod test_sse { // this function have no return value, so we just execute it and expect no panic hex_decode_unchecked(src, &mut dst); } + + // If `dst's length` ...
1
23
0
0f3a6c4eb7ac2690f547c9c815c799bb4fe3e717
Eval EXEC
2023-11-02T02:32:23
Revert hex_decode length check introduced by #27
diff --git a/src/decode.rs b/src/decode.rs index 5b7b440..4562b6b 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -227,15 +227,11 @@ pub fn hex_decode_with_case( dst: &mut [u8], check_case: CheckCase, ) -> Result<(), Error> { - if src.len() & 1 != 0 { - return Err(Error::InvalidLength(src.len()))...
1
3
7
237c3afd14ca3197f58b4a70665887f3ea5b90cd
zhangsoledad
2023-09-06T08:40:50
chore: bump v0.8.1
diff --git a/Cargo.toml b/Cargo.toml index 143e871..69cf79a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.8.0" +version = "0.8.1" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex", "no-std"] diff --git a/src/lib.rs b/src/...
2
3
3
9e971ae5cf8ea11749bc1500e6955e76cec1a11d
Yin Guanhao
2023-09-04T10:31:25
fix: fix deserializing owned hex string and don't depend on serde derive, and don't export faster_hex_serde_macros
diff --git a/Cargo.toml b/Cargo.toml index e666027..143e871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ exclude = [ ] [dependencies] -serde = { version = "1.0", optional = true, features = ["derive"]} +serde = { version = "1.0", optional = true } [features] default = ["std", "serde"] diff --git a...
2
18
6
459d42643f66ff2e8c1f9c0b8f935eb710c4f3aa
Havard Eidnes
2023-09-03T17:35:10
src/lib.rs: make conditionals for x86 vectorization more similar. If, for some reason, your i386 rust doesn't support the "sse" target feature (perhaps built for i486), you end up with use but no definition for vectorization_support_no_cache_x86(). This change fixes that.
diff --git a/src/lib.rs b/src/lib.rs index ac51a5b..f01d614 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,10 @@ pub(crate) enum Vectorization { #[inline(always)] pub(crate) fn vectorization_support() -> Vectorization { - #[cfg(all(any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all( + ...
1
4
1
55203f47c2587acafe236bb464f2293260212478
Jan Beich
2023-08-27T16:59:42
fix: unblock vectorization* on x86 without SSE error[E0425]: cannot find function `vectorization_support_no_cache_x86` in this scope --> src/lib.rs:63:28 | 63 | let val = unsafe { vectorization_support_no_cache_x86() }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this s...
diff --git a/src/lib.rs b/src/lib.rs index ac51a5b..706bef4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,10 +71,7 @@ pub(crate) fn vectorization_support() -> Vectorization { // We enable xsave so it can inline the _xgetbv call. #[target_feature(enable = "xsave")] -#[cfg(all( - any(target_arch = "x86", target_...
1
2
4
4cf4e036f67bfe0f90ba479514ea7278c0a4b41b
zhangsoledad
2023-06-19T08:47:27
chore: fix wildcard () dependency constraints are not allowed on crates.io
diff --git a/Cargo.toml b/Cargo.toml index f4474e0..e666027 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ hex = "0.3.2" proptest = "1.0" serde = { version = "1.0", features = ["derive"]} bytes = {version = "1.4.0"} -serde_json ={ version = "*"} +serde_json ={ version = "1.0"} [[bench]] name = "hex"
1
1
1
c45c026cc5531fbe065fb582a59a080fd2ca8945
Eval EXEC
2023-03-21T13:58:43
Add serde feature test case Signed-off-by: Eval EXEC <execvy@gmail.com>
diff --git a/src/serde.rs b/src/serde.rs index 3bbf790..49b0f48 100644 --- a/src/serde.rs +++ b/src/serde.rs @@ -144,3 +144,217 @@ faster_hex_serde_macros!(withpfx_uppercase, true, CheckCase::Upper); // /// Serialize without 0x-prefix and upper case // /// When deserialize, expect without 0x-prefix and upper case fa...
1
214
0
dd897a032482ce7b0b7292416d2505c39c0938aa
Eval EXEC
2023-03-21T13:58:06
Implement serde feature Signed-off-by: Eval EXEC <execvy@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 08f2986..3ce4263 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,10 +16,14 @@ exclude = [ "CHANGELOG.md" ] +[dependencies] +serde = { version = "1.0", optional = true, features = ["derive"]} + [features] -default = ["std"] +default = ["std", "serde"] std = ["alloc"] ...
3
164
1
80a22b3af8fe7ba0e25f34fd3b2f169eb82d438d
Eval EXEC
2023-03-02T03:26:21
decode: allow to decode a zero length src Signed-off-by: Eval EXEC <execvy@gmail.com>
diff --git a/src/decode.rs b/src/decode.rs index 499be1a..5b7b440 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -217,7 +217,7 @@ pub fn hex_decode(src: &[u8], dst: &mut [u8]) -> Result<(), Error> { } /// Hex decode src into dst. -/// The length of src must be even and not zero. +/// The length of src must be ev...
2
39
10
13c45ba9cd2f617e7e27f508ec4fc149758ca83e
Eval EXEC
2023-02-27T01:57:43
Update faster-hex's version to 0.7.0 Co-authored-by: zhangsoledad <787953403@qq.com>
diff --git a/Cargo.toml b/Cargo.toml index 2c5cccb..08f2986 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.7.1" +version = "0.7.0" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex", "no-std"]
1
1
1
e3b232664c247d7851996554816eaa4e49e8aeb4
Eval EXEC
2023-02-08T11:57:40
WIP: add check_case for hex_decode Signed-off-by: Eval EXEC <execvy@gmail.com>
diff --git a/src/decode.rs b/src/decode.rs index 0976b21..499be1a 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -12,41 +12,52 @@ const NIL: u8 = u8::MAX; #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] const T_MASK: i32 = 65535; +const fn init_unhex_array(check_case: CheckCase) -> [u8; 256] { + let ...
2
276
66
f17f02f31a4994b87e32750d439dddf4d82bbd81
Eval EXEC
2023-02-06T07:16:55
feat: allow faster-hex encode to uppercase Signed-off-by: Eval EXEC <execvy@gmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 9ab4e2f..2c5cccb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.6.1" +version = "0.7.1" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex", "no-std"] diff --git a/src/decode.rs b/s...
4
112
39
7da9eb15cf9317b499345be482ad2e2357d6cbf4
Eval EXEC
2023-02-08T12:23:06
fix: encode/decode length check
diff --git a/src/decode.rs b/src/decode.rs index 76f62c6..b4a0d2b 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -145,13 +145,22 @@ pub unsafe fn hex_check_sse(mut src: &[u8]) -> bool { hex_check_fallback(src) } +/// Hex decode src into dst. +/// The length of src must be even and not zero. +/// The length o...
2
20
6
5e2780f8dbd0c0b7be4241a4b710af64ad7737ec
zhangsoledad
2022-10-17T04:26:44
chore: fix build for non-x86 targets
diff --git a/src/decode.rs b/src/decode.rs index 9408390..76f62c6 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -86,10 +86,17 @@ unsafe fn nib2byte_avx2(a1: __m256i, b1: __m256i, a2: __m256i, b2: __m256i) -> _ } pub fn hex_check(src: &[u8]) -> bool { - match crate::vectorization_support() { - crate::V...
3
36
14
d739af80e325ae574821e0a9010ab65c08c102f7
Elichai Turkel
2022-08-30T11:51:06
Make the crate no-std
diff --git a/Cargo.toml b/Cargo.toml index 786ca63..9ab4e2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "faster-hex" version = "0.6.1" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" -keywords = ["simd", "hex"] +keywords = ["simd", "hex", "no-std"] license = "MIT" description = "...
5
133
39
038de2a1f2d561b090d55ed2705e926ac335aac0
Elichai Turkel
2022-08-29T15:20:53
return &mut str from encode_hex
diff --git a/src/encode.rs b/src/encode.rs index 94f744e..0c58db6 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -11,12 +11,25 @@ static TABLE: &[u8] = b"0123456789abcdef"; pub fn hex_string(src: &[u8]) -> String { let mut buffer = vec![0; src.len() * 2]; - hex_encode(src, &mut buffer) - .map(|_| u...
2
25
11
82613d66e33bd46d57d60e46fb639a6c75e956a8
zhangsoledad
2021-08-31T12:09:54
chore: bump 0.6.1
diff --git a/Cargo.toml b/Cargo.toml index c1763b1..043389a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.6.0" +version = "0.6.1" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex"]
1
1
1
f2f5d24e0bacb7a938e37ddeda859e87d434f633
Taiki Endo
2021-08-28T06:32:59
Use chunks_exact_mut in hex_encode_fallback
diff --git a/src/encode.rs b/src/encode.rs index 627e88f..94f744e 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -131,7 +131,7 @@ fn hex(byte: u8) -> u8 { } pub fn hex_encode_fallback(src: &[u8], dst: &mut [u8]) { - for (byte, slots) in src.iter().zip(dst.chunks_mut(2)) { + for (byte, slots) in src.iter()....
1
1
1
66b5e220f2e49a6cbaab9d5758987e81d04faa5d
Taiki Endo
2021-08-28T06:32:38
Use chunks_exact in hex_decode_fallback
diff --git a/src/decode.rs b/src/decode.rs index 65c3984..b7642fc 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -208,7 +208,7 @@ unsafe fn hex_decode_avx2(mut src: &[u8], mut dst: &mut [u8]) { } pub fn hex_decode_fallback(src: &[u8], dst: &mut [u8]) { - for (slot, bytes) in dst.iter_mut().zip(src.chunks(2)) ...
1
1
1
8eaf35bca20e45bee219f0dba89970aa699aeb70
Taiki Endo
2021-08-28T06:31:00
Use lookup table in hex_check_fallback
diff --git a/src/decode.rs b/src/decode.rs index 6ba2130..65c3984 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -95,12 +95,9 @@ pub fn hex_check(src: &[u8]) -> bool { } pub fn hex_check_fallback(src: &[u8]) -> bool { - for byte in src { - match byte { - b'A'..=b'F' | b'a'..=b'f' | b'0'..=b'...
1
3
6
8653ebd743c50d76715bad69a1a61a736f8ec29d
zhangsoledad
2021-05-10T13:27:52
chore: update deps
diff --git a/Cargo.toml b/Cargo.toml index 7c4827e..c1763b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,10 @@ exclude = [ [dev-dependencies] -criterion = "0.2" +criterion = "0.3" rustc-hex = "1.0" hex = "0.3.2" -proptest = "0.8" +proptest = "1.0" [[bench]] name = "hex" diff --git a/src/decode.rs b...
4
6
6
e1b11e0248ce4677df8d305a24bc4fbd72beb36b
zhangsoledad
2021-01-13T19:13:39
chore: bump 0.5.0 Fix build for non-x86 targets
diff --git a/Cargo.toml b/Cargo.toml index a5d0cd1..84c6686 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.4.1" +version = "0.5.0" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex"]
1
1
1
45b1ef2769318c7f396708cf2278bb43028ce6a9
zhangsoledad
2021-01-13T19:12:58
chore: fix compile warnings
diff --git a/src/decode.rs b/src/decode.rs index a01e302..8f619e6 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -6,6 +6,8 @@ use std::arch::x86_64::*; use crate::error::Error; const NIL: u8 = u8::max_value(); + +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] const T_MASK: i32 = 65535; // ASCII -> ...
2
7
2
91f093fec6696f82dc0993b061636eea182356da
Brian Anderson
2020-04-26T18:40:21
Fix cfgs for sse benches
diff --git a/benches/check.rs b/benches/check.rs index 60052b9..aa6ef50 100644 --- a/benches/check.rs +++ b/benches/check.rs @@ -1,5 +1,8 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use faster_hex::{hex_check_fallback, hex_check_sse}; +use faster_hex::hex_check_fallback; + +#[cfg(any(ta...
1
21
13
d491f8af9b2e144650e60194e50df3daade41462
Brian Anderson
2020-04-26T17:29:08
Fix cfgs on hex_check_sse export "sse4.1" is not a crate feature so it has no effect here.
diff --git a/src/lib.rs b/src/lib.rs index 3c4e825..3111f49 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ pub use crate::decode::{ pub use crate::encode::{hex_encode, hex_encode_fallback, hex_string, hex_to}; pub use crate::error::Error; -#[cfg(any(target_arch = "x86", target_arch = "x86_64", feature = "...
1
1
1
182b827f572ddbe21937bd4d8e5095e500c5ce34
Brian Anderson
2020-04-26T17:27:47
Move hex_check_sse tests to their own cfg-ed module
diff --git a/src/decode.rs b/src/decode.rs index 80aec6a..a01e302 100644 --- a/src/decode.rs +++ b/src/decode.rs @@ -219,7 +219,6 @@ pub fn hex_decode_fallback(src: &[u8], dst: &mut [u8]) { #[cfg(test)] mod tests { use crate::decode::hex_check_fallback; - use crate::decode::hex_check_sse; use crate::deco...
1
12
3
8d725d2e741d1df371d7d2beca0a1f07fd3cb2b3
zhangsoledad
2019-10-15T07:46:51
chore: bump v0.4.1
diff --git a/Cargo.toml b/Cargo.toml index e654b90..a5d0cd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.4.0" +version = "0.4.1" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex"]
1
1
1
050747e562e99f98629789daca75ca4041a21435
Boyu Yang
2019-10-15T03:10:44
chore: expose the `Error`
diff --git a/src/lib.rs b/src/lib.rs index 74c66d5..3c4e825 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,7 @@ pub use crate::decode::{ hex_check_fallback, hex_decode, hex_decode_fallback, hex_decode_unchecked, }; pub use crate::encode::{hex_encode, hex_encode_fallback, hex_string, hex_to}; +pub use crate:...
1
1
0
8486a4c8aa5b6fe4bd4ac78bb83abd1d6d9ea8db
zhangsoledad
2019-09-10T07:43:40
chore: bump v0.4.0
diff --git a/Cargo.toml b/Cargo.toml index ca9c90c..e654b90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "faster-hex" -version = "0.3.1" +version = "0.4.0" authors = ["zhangsoledad <787953403@qq.com>"] edition = "2018" keywords = ["simd", "hex"]
1
1
1
3e1cc75c1352e604709f32162ca55bdb64544779
Xuejie Xiao
2019-09-10T01:16:15
fix: Do not expose hex_check_see on non-supported platform
diff --git a/src/lib.rs b/src/lib.rs index 4caf08d..74c66d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,10 +2,13 @@ mod decode; mod encode; mod error; pub use crate::decode::{ - hex_check_fallback, hex_check_sse, hex_decode, hex_decode_fallback, hex_decode_unchecked, + hex_check_fallback, hex_decode, hex_de...
1
4
1
31b41bd3a677b059ef3e16aafb4677902deee6b3
zhangsoledad
2019-01-30T10:13:28
chore: rename benches name
diff --git a/benches/hex.rs b/benches/hex.rs index c667583..018db82 100644 --- a/benches/hex.rs +++ b/benches/hex.rs @@ -7,28 +7,28 @@ use rustc_hex::{FromHex, ToHex}; fn bench(c: &mut Criterion) { let s = "Day before yesterday I saw a rabbit, and yesterday a deer, and today, you."; - c.bench_function("bench...
1
12
4
857b0f7511ce3b33a315768972b155385f823d1e
zhangsoledad
2018-12-27T03:18:14
feat: check decode length
diff --git a/benches/hex.rs b/benches/hex.rs index f3fda7d..c667583 100644 --- a/benches/hex.rs +++ b/benches/hex.rs @@ -1,5 +1,7 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use faster_hex::{hex_decode, hex_decode_fallback, hex_decode_unchecked, hex_string, hex_encode_fallback}; +use fa...
3
26
3
d742c6fffce99ee89da91b934e7ce6fb2a82680c
Michael-F-Bryan
2024-06-17T14:45:54
chore: Release
diff --git a/Cargo.toml b/Cargo.toml index f40d243..165c5a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" rust-version = "1.64" license = "MIT" readme = "README.md" -version = "0.7.3" +version = "0.7.4" authors = ["Michael Bryan <michaelfbryan@gmail.com>"] repository = "https://github.c...
2
2
2
20f94752dae75025f5bea4dd2dbb76e0fbe3ac6b
Michael-F-Bryan
2024-06-17T14:40:05
Modified `expand_dir()` to avoid implicit const promotion (fixes #99)
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 51e5b4c..4a881f0 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -70,7 +70,10 @@ fn expand_dir(root: &Path, path: &Path) -> proc_macro2::TokenStream { let path = normalize_path(root, path); quote! { - include_dir::Dir::new(#path, &[ #...
1
4
1
1e76b91179babd98ad9d709ee7af1e39631d7d8d
Michael-F-Bryan
2022-10-16T19:17:21
(cargo-release) version 0.7.3
diff --git a/include_dir/Cargo.toml b/include_dir/Cargo.toml index c4ecd8d..fc09154 100644 --- a/include_dir/Cargo.toml +++ b/include_dir/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Michael Bryan <michaelfbryan@gmail.com>"] name = "include_dir" -version = "0.7.2" +version = "0.7.3" description = "Embed the con...
1
1
1
81c7735f4d8e7af97ebff23827da62a245e77db5
Michael-F-Bryan
2022-10-16T19:17:21
(cargo-release) version 0.7.3
diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 663a80c..3ce97c9 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "include_dir_macros" -version = "0.7.2" +version = "0.7.3" description = "The procedural macro used by include_dir" authors = ["Michael Bryan <michaelfbry...
1
1
1
898c4a0c76125b1a36c3514a4736b512f37b277f
Alex Rawson
2022-08-05T05:13:46
Reintroduce include_bytes! macro in expanded code
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 1b36839..51e5b4c 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -75,8 +75,17 @@ fn expand_dir(root: &Path, path: &Path) -> proc_macro2::TokenStream { } fn expand_file(root: &Path, path: &Path) -> proc_macro2::TokenStream { - let contents = read_...
1
12
3
69bfde9e5e45e5edf4333de472193b9ec60f628d
Alexander Kjäll
2022-04-19T16:05:11
replace tempdir crate with tempfile, as tempfile have superseded tempdir
diff --git a/include_dir/Cargo.toml b/include_dir/Cargo.toml index 2881f8a..c4ecd8d 100644 --- a/include_dir/Cargo.toml +++ b/include_dir/Cargo.toml @@ -16,7 +16,7 @@ glob = { version = "0.3", optional = true } include_dir_macros = { version = "^0.7.0", path = "../macros" } [dev-dependencies] -tempdir = "0.3" +temp...
2
3
11
d822c3b78b9ba98df0fcb5439dc1e018e025ecaa
Michael-F-Bryan
2021-12-06T08:52:59
(cargo-release) version 0.7.2
diff --git a/include_dir/Cargo.toml b/include_dir/Cargo.toml index f855123..2881f8a 100644 --- a/include_dir/Cargo.toml +++ b/include_dir/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Michael Bryan <michaelfbryan@gmail.com>"] name = "include_dir" -version = "0.7.1" +version = "0.7.2" description = "Embed the con...
1
1
1
838d685e9437bc92d8b9f01c020573d1f1e38497
Michael-F-Bryan
2021-12-06T08:52:59
(cargo-release) version 0.7.2
diff --git a/macros/Cargo.toml b/macros/Cargo.toml index c23dffc..663a80c 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "include_dir_macros" -version = "0.7.1" +version = "0.7.2" description = "The procedural macro used by include_dir" authors = ["Michael Bryan <michaelfbry...
1
1
1