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 |
|---|---|---|---|---|---|---|---|
4613b191ee0bb4092933373d250792ab0f85da6c | Nugine | 2022-06-28T17:32:40 | update lints | diff --git a/crates/base64-simd/src/auto.rs b/crates/base64-simd/src/auto.rs
index f251e63..d251dcc 100644
--- a/crates/base64-simd/src/auto.rs
+++ b/crates/base64-simd/src/auto.rs
@@ -51,6 +51,7 @@ impl Base64 {
/// This function returns `Err` if:
///
/// + The length of `dst` is not enough.
+ #[inli... | 11 | 46 | 14 |
b8e87daf930bfe384f32f2b1b82adae1faf2a78a | Nugine | 2022-06-28T17:35:33 | base64: forgiving_decode_inplace | diff --git a/crates/base64-simd/src/ext.rs b/crates/base64-simd/src/ext.rs
index be782ea..1faaf04 100644
--- a/crates/base64-simd/src/ext.rs
+++ b/crates/base64-simd/src/ext.rs
@@ -1,5 +1,7 @@
use crate::{Base64, Error, OutBuf};
+use core::ops::Not;
+
#[cfg(feature = "alloc")]
use alloc::boxed::Box;
@@ -15,6 +17... | 1 | 129 | 0 |
ce061885520839af31c1792554459992ab07c08c | Nugine | 2022-06-28T16:17:06 | base64-simd: export charset | diff --git a/crates/base64-simd/src/lib.rs b/crates/base64-simd/src/lib.rs
index bc54a6e..f55cbee 100644
--- a/crates/base64-simd/src/lib.rs
+++ b/crates/base64-simd/src/lib.rs
@@ -155,4 +155,12 @@ impl Base64 {
assert!(n <= (isize::MAX as usize));
unsafe { Self::encoded_length_unchecked(n, self.paddi... | 1 | 8 | 0 |
2bec5e230bfffc883e21ff472422f13bbfec8efe | Nugine | 2022-06-28T07:20:59 | hex-simd: encode_u64 | diff --git a/crates/hex-simd/src/ext.rs b/crates/hex-simd/src/ext.rs
index 2934e9a..256f87d 100644
--- a/crates/hex-simd/src/ext.rs
+++ b/crates/hex-simd/src/ext.rs
@@ -1,9 +1,13 @@
+use core::mem::MaybeUninit;
+
use crate::auto::*;
use crate::{AsciiCase, Error, OutBuf, ERROR};
#[cfg(feature = "alloc")]
use alloc... | 3 | 37 | 3 |
844091200930f798a47935a416c2569a8158856b | Nugine | 2022-06-27T17:29:44 | base64-simd: inline | diff --git a/crates/base64-simd/src/fallback.rs b/crates/base64-simd/src/fallback.rs
index 99d022c..5ae9a14 100644
--- a/crates/base64-simd/src/fallback.rs
+++ b/crates/base64-simd/src/fallback.rs
@@ -87,6 +87,7 @@ pub fn encode<'s, 'd>(
}
}
+#[inline(always)]
pub(crate) unsafe fn encode_extra(
extra: usi... | 3 | 7 | 1 |
f042bb230ce9e3446d39701eb37fa170e330bf8e | Nugine | 2022-06-27T17:12:00 | base64-simd: fix unit tests | diff --git a/crates/base64-simd/src/arch.rs b/crates/base64-simd/src/arch.rs
index 9482894..dc32310 100644
--- a/crates/base64-simd/src/arch.rs
+++ b/crates/base64-simd/src/arch.rs
@@ -9,6 +9,7 @@ macro_rules! unit_tests_for {
crate::tests::test(
|base64, src, dst| unsafe { encode(base64, ... | 1 | 2 | 0 |
89cbb2e2c2ed78694709b91fe1f96d545c0a75ce | Nugine | 2022-06-27T17:04:52 | turn on lto | diff --git a/Cargo.toml b/Cargo.toml
index c66a4d7..f32d414 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,5 @@
[workspace]
members = ["crates/*"]
+
+[profile.release]
+lto = "fat" | 1 | 3 | 0 |
bebe5fc9de57b58d5307b0c7215b483d0640c4a8 | Nugine | 2022-06-27T14:41:09 | simd-abstraction: fix doc | diff --git a/crates/simd-abstraction/src/tools.rs b/crates/simd-abstraction/src/tools.rs
index 9b25bdf..927344f 100644
--- a/crates/simd-abstraction/src/tools.rs
+++ b/crates/simd-abstraction/src/tools.rs
@@ -16,7 +16,7 @@ unsafe impl<'a> Send for OutBuf<'a> {}
unsafe impl<'a> Sync for OutBuf<'a> {}
impl<'a> OutBuf... | 1 | 1 | 1 |
d953dad9e34125125fc5d63a2c0fd4d063903d7d | Nugine | 2022-06-27T14:39:12 | base64-simd: decode_inplace | diff --git a/crates/base64-simd/src/auto.rs b/crates/base64-simd/src/auto.rs
index ae73037..f251e63 100644
--- a/crates/base64-simd/src/auto.rs
+++ b/crates/base64-simd/src/auto.rs
@@ -67,4 +67,17 @@ impl Base64 {
try_simd!(decode(self, src, dst));
fallback::decode(self, src, dst)
}
+
+ /// De... | 4 | 205 | 109 |
3a0906c2189fb6c1eb887d9be2ec38bad5d50a57 | Nugine | 2022-06-27T05:43:38 | simd-abstraction: refactor OutBuf | diff --git a/crates/base64-simd/src/auto.rs b/crates/base64-simd/src/auto.rs
index 710ccc8..ae73037 100644
--- a/crates/base64-simd/src/auto.rs
+++ b/crates/base64-simd/src/auto.rs
@@ -51,11 +51,7 @@ impl Base64 {
/// This function returns `Err` if:
///
/// + The length of `dst` is not enough.
- pub f... | 13 | 89 | 78 |
a5ff377131c322c7c2fdf9ad88d53c5e1736c938 | Nugine | 2022-06-26T18:18:56 | upgrade dependencies | diff --git a/crates/base64-simd/Cargo.toml b/crates/base64-simd/Cargo.toml
index 36bcbe6..4dc4b53 100644
--- a/crates/base64-simd/Cargo.toml
+++ b/crates/base64-simd/Cargo.toml
@@ -25,9 +25,9 @@ version = "0.5.1-dev"
[dev-dependencies]
base64 = "0.13.0"
-rand = "0.8.4"
+rand = "0.8.5"
faster-hex = "0.6.1"
[targ... | 4 | 11 | 11 |
e7bea7a437cca5067d8c4abfbbd5924eb089a378 | Nugine | 2022-06-26T18:05:43 | base64-simd: add canonicity tests | diff --git a/crates/base64-simd/src/tests.rs b/crates/base64-simd/src/tests.rs
index 9e31fa5..25b53be 100644
--- a/crates/base64-simd/src/tests.rs
+++ b/crates/base64-simd/src/tests.rs
@@ -86,4 +86,26 @@ pub fn test(
dbg_msg!(@3 "decoding ... ok");
}
}
+
+ // canonicity tests
+ // <http... | 1 | 22 | 0 |
1dc967da0097bd7a7a5598b327496d6976f92669 | Nugine | 2022-05-24T11:02:34 | hex-simd: ext: fix doc | diff --git a/crates/hex-simd/src/ext.rs b/crates/hex-simd/src/ext.rs
index 32b024e..9afe93e 100644
--- a/crates/hex-simd/src/ext.rs
+++ b/crates/hex-simd/src/ext.rs
@@ -72,7 +72,6 @@ pub fn decode_to_boxed_bytes(src: &[u8]) -> Result<Box<[u8]>, Error> {
/// This function returns `Err` if:
///
/// + The length of `ds... | 1 | 0 | 1 |
c63cab10fa13337e518ccf0c9832d320c90901be | Nugine | 2022-04-13T05:14:50 | remove unnecessary aarch64_target_feature | diff --git a/crates/base64-simd/src/lib.rs b/crates/base64-simd/src/lib.rs
index 1a513fd..49f9e3b 100644
--- a/crates/base64-simd/src/lib.rs
+++ b/crates/base64-simd/src/lib.rs
@@ -17,7 +17,6 @@
//!
#![cfg_attr(not(any(feature = "std", test)), no_std)]
-#![cfg_attr(feature = "unstable", feature(aarch64_target_featu... | 3 | 0 | 3 |
8fef02661c7d97357a68ce05b519dc0a2cc5c82b | Nugine | 2022-04-13T05:12:32 | fix macro path | diff --git a/crates/simd-abstraction/src/traits.rs b/crates/simd-abstraction/src/traits.rs
index ccf9fe0..39c28db 100644
--- a/crates/simd-abstraction/src/traits.rs
+++ b/crates/simd-abstraction/src/traits.rs
@@ -21,7 +21,7 @@ macro_rules! define_isa {
#[cfg(not(target_feature = $feature))]
... | 1 | 1 | 1 |
1ab78f24d5cf51daaf4abf2d2d0661318ccf4e87 | Nugine | 2022-01-08T04:50:53 | rewrite crc32 | diff --git a/simd-abstraction/src/common/crc32.rs b/simd-abstraction/src/common/crc32.rs
index 3b53b73..0b29adc 100644
--- a/simd-abstraction/src/common/crc32.rs
+++ b/simd-abstraction/src/common/crc32.rs
@@ -6,30 +6,24 @@ pub fn compute<S: CRC32<P>, const P: u32>(s: S, init: u32, data: &[u8]) -> u32 {
let (pref... | 1 | 13 | 19 |
674af9b37ab20f137ed639165f2f950dde74aa39 | Nugine | 2022-01-06T08:09:39 | fix unsoundness | diff --git a/base64-simd/src/ext.rs b/base64-simd/src/ext.rs
index f94944d..6f9678e 100644
--- a/base64-simd/src/ext.rs
+++ b/base64-simd/src/ext.rs
@@ -8,6 +8,12 @@ use simd_abstraction::tools::alloc_uninit_bytes;
impl Base64 {
/// Encodes `src` and returns [`Box<str>`]
+ ///
+ /// # Panics
+ /// This... | 4 | 20 | 2 |
def2871aac05329ca612ab128298ad246fd05763 | Nugine | 2022-01-04T08:19:24 | add sa_crc32 | diff --git a/simd-abstraction/src/arch/aarch64.rs b/simd-abstraction/src/arch/aarch64.rs
index 0df8e90..43995ae 100644
--- a/simd-abstraction/src/arch/aarch64.rs
+++ b/simd-abstraction/src/arch/aarch64.rs
@@ -1,4 +1,5 @@
-use crate::traits::{self, InstructionSet, SIMD128, SIMD256};
+use crate::traits::{self, POLYNOMIAL... | 5 | 52 | 7 |
e1bf34a2d53effd524831b47a7cd19df9d0a418e | Nugine | 2021-12-31T09:22:09 | start v0.5.1 | diff --git a/base64-simd/Cargo.toml b/base64-simd/Cargo.toml
index 8f53c7d..1f7783d 100644
--- a/base64-simd/Cargo.toml
+++ b/base64-simd/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "base64-simd"
-version = "0.5.0"
+version = "0.5.1-dev"
edition = "2021"
description = "SIMD-accelerated base64 encoding and decoding"... | 5 | 11 | 11 |
4103dc62c3f523bf461ffe87f3a73ee070db6281 | Nugine | 2021-12-31T09:16:30 | release v0.5.0 | diff --git a/base64-simd/Cargo.toml b/base64-simd/Cargo.toml
index a566e42..8f53c7d 100644
--- a/base64-simd/Cargo.toml
+++ b/base64-simd/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "base64-simd"
-version = "0.5.0-dev"
+version = "0.5.0"
edition = "2021"
description = "SIMD-accelerated base64 encoding and decoding"... | 5 | 11 | 11 |
b7881b393094ff6235ed2910bd67fe951d852f14 | Nugine | 2021-12-31T09:15:25 | split benches | diff --git a/Cargo.toml b/Cargo.toml
index b95dbc1..ce2cf1d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
-members = ["simd-abstraction", "uuid-simd", "hex-simd"]
+members = ["simd-abstraction", "simd-benches", "uuid-simd", "hex-simd"]
diff --git a/hex-simd/Cargo.toml b/hex-simd/Cargo.toml
index... | 13 | 38 | 24 |
9c8e34305723118c67d7feba95772705b2247776 | John-John Tedro | 2025-12-29T15:08:34 | Fix clippy lint | diff --git a/src/strspan.rs b/src/strspan.rs
index ecb0bec..63e759a 100644
--- a/src/strspan.rs
+++ b/src/strspan.rs
@@ -46,7 +46,7 @@ impl PartialEq<StrSpan<'_>> for &str {
impl<'a> StrSpan<'a> {
/// Constructs a new `StrSpan` from substring.
#[inline]
- pub(crate) fn from_substr(text: &str, start: usize... | 1 | 1 | 1 |
2de73009f06177880515ad017ac1f5c1bece1281 | John-John Tedro | 2025-04-04T17:17:31 | Revert incorrect behavior introduced in d3831fa3 (fixes #31) | diff --git a/src/lib.rs b/src/lib.rs
index 8736f9f..88a03ad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1058,10 +1058,8 @@ impl<'a> Tokenizer<'a> {
// https://www.w3.org/TR/xml/#syntax
//
// Search for `>` first, since it's a bit faster than looking for `]]>`.
- if let Some(position) ... | 1 | 2 | 4 |
c969e13d0a75bfbc08ee69a0387038cb4ccab67c | Jérémie Drouet | 2024-10-20T15:39:33 | style: apply latest clippy suggestions
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com> | diff --git a/src/lib.rs b/src/lib.rs
index 1b48181..8736f9f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -791,7 +791,7 @@ impl<'a> Tokenizer<'a> {
let c = s.curr_byte()?;
if c != b'[' && c != b'>' {
- static EXPECTED: &[u8] = &[b'[', b'>'];
+ static EXPECTED: &[u8] = b"[>";
... | 2 | 5 | 5 |
a617a9ba6a52bcd423c80e322f47a586e6b16b78 | John-John Tedro | 2024-01-24T04:06:02 | Fix lints | diff --git a/src/error.rs b/src/error.rs
index e4ffcbf..3c56591 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -164,7 +164,7 @@ impl fmt::Display for StreamError {
expected as char, actual as char, pos
)
}
- StreamError::InvalidCharMultiple(actual, ref expe... | 5 | 8 | 10 |
892517a875721b2b56de27d8627efeb4d0b3ba84 | Simon Martens | 2023-09-27T10:22:45 | Optimize `XmlCharExt::is_xml_char` | diff --git a/src/xmlchar.rs b/src/xmlchar.rs
index 71e700f..4389ae5 100644
--- a/src/xmlchar.rs
+++ b/src/xmlchar.rs
@@ -10,6 +10,10 @@ pub trait XmlCharExt {
/// Checks if the value is within the
/// [Char](https://www.w3.org/TR/xml/#NT-Char) range.
+ ///
+ /// Does not check for surrogate code poin... | 1 | 9 | 7 |
7334c08aabd21463507a77a288924ea8587865e4 | Arthur Carcano | 2022-10-25T16:11:02 | Various quality of life improvements. | diff --git a/src/lib.rs b/src/lib.rs
index 78cbf60..dfcd933 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -262,6 +262,26 @@ pub enum Token<'a> {
},
}
+impl<'a> Token<'a> {
+ /// Returns the [`StrSpan`] encompassing all of the token.
+ pub fn span(&self) -> StrSpan<'a> {
+ let span = match self {
+ ... | 2 | 62 | 1 |
169cd7920368b393bd949e15c6f80060157c45a7 | Yevhenii Reizner | 2022-10-18T14:10:32 | Revert "Do not expand predefined references in Stream::consume_reference"
This reverts commit 1e6b1efb06c9f2fc3765598df85da8760c540163. | diff --git a/src/stream.rs b/src/stream.rs
index e0371e3..ee4d00e 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -349,10 +349,6 @@ impl<'a> Stream<'a> {
/// Consumes an XML character reference if there is one.
///
/// On error will reset the position to the original.
- ///
- /// See [`consume_re... | 1 | 8 | 34 |
0e8d1be4783bd38fedeaa8a87d147158b1480ca7 | Arthur Carcano | 2022-10-12T15:51:55 | Fix formatting of \0 in tests by changing it to \u{1}. | diff --git a/tests/integration/cdata.rs b/tests/integration/cdata.rs
index f607151..616f3a9 100644
--- a/tests/integration/cdata.rs
+++ b/tests/integration/cdata.rs
@@ -68,8 +68,8 @@ test!(cdata_09, "<p><![CDATA[bracket ]after]]></p>",
Token::ElementEnd(ElementEnd::Close("", "p"), 29..33)
);
-test!(cdata_err_01... | 3 | 6 | 6 |
1e6b1efb06c9f2fc3765598df85da8760c540163 | Jesse | 2021-06-24T19:42:23 | Do not expand predefined references in Stream::consume_reference | diff --git a/src/stream.rs b/src/stream.rs
index ee4d00e..e0371e3 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -349,6 +349,10 @@ impl<'a> Stream<'a> {
/// Consumes an XML character reference if there is one.
///
/// On error will reset the position to the original.
+ ///
+ /// See [`consume_re... | 1 | 34 | 8 |
4672649251b86a058587cdb111fc4f13381865a0 | Cormac Relf | 2021-04-19T07:24:37 | Move all integration tests into one binary | diff --git a/tests/api.rs b/tests/integration/api.rs
similarity index 100%
rename from tests/api.rs
rename to tests/integration/api.rs
diff --git a/tests/cdata.rs b/tests/integration/cdata.rs
similarity index 99%
rename from tests/cdata.rs
rename to tests/integration/cdata.rs
index 9fc5539..f607151 100644
--- a/tests/c... | 10 | 13 | 21 |
7164d884b64820e2dcb2757fdc931ff8b507239e | Evgeniy Reizner | 2020-06-15T02:58:59 | Refactoring. | diff --git a/src/xmlchar.rs b/src/xmlchar.rs
index bd6fd3c..71e700f 100644
--- a/src/xmlchar.rs
+++ b/src/xmlchar.rs
@@ -77,9 +77,9 @@ impl XmlCharExt for char {
0x000009
| 0x00000A
| 0x00000D
- | 0x000020...0x000D7FF
- | 0x00E000...0x000FFFD
- |... | 1 | 8 | 8 |
48318091990ab08dfe04c06097eaec48be8121dc | Evgeniy Reizner | 2020-06-15T02:52:42 | Allow processing instructions before doctype.
Closes #13 | diff --git a/src/lib.rs b/src/lib.rs
index 1fe9777..99a262d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -395,6 +395,12 @@ impl<'a> Tokenizer<'a> {
Some(t)
} else if s.starts_with(b"<!--") {
Some(Self::parse_comment(s))
+ } else if s.starts_with(b... | 2 | 25 | 0 |
7c0f26de69b891d422c93bd6864d10b50277a3fd | J. Frimmel | 2020-05-16T09:45:01 | Derive more auto-derivable traits | diff --git a/src/error.rs b/src/error.rs
index f35fa0d..b6c7f85 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -6,7 +6,7 @@ use std::error;
/// An XML parser errors.
#[allow(missing_docs)]
-#[derive(Clone, Copy, Debug)]
+#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub enum Error {
InvalidDeclaration(S... | 4 | 10 | 10 |
cabd2b716df9d95c0db01c8ee11746c8e07bc237 | Evgeniy Reizner | 2020-01-07T08:00:44 | More optimizations. | diff --git a/src/lib.rs b/src/lib.rs
index 58042f0..5fcb85c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -301,7 +301,8 @@ type StreamResult<T> = core::result::Result<T, StreamError>;
#[derive(Clone, Copy, PartialEq)]
enum State {
- Start,
+ Declaration,
+ AfterDeclaration,
Dtd,
AfterDtd,
Elem... | 1 | 70 | 62 |
2922c3941667f51bd13cbfcd0717e440f0358045 | Evgeniy Reizner | 2020-01-06T19:14:59 | Fix build on Rust 1.18 | diff --git a/src/lib.rs b/src/lib.rs
index 0205f83..b6412ff 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -439,8 +439,8 @@ impl<'a> Tokenizer<'a> {
}
State::Elements => {
// Use `match` only here, because only this section is performance-critical.
- match s.curr_b... | 1 | 6 | 3 |
e4e91101647dfc0c4364dd77fdac80e84034e0c1 | Evgeniy Reizner | 2019-09-14T10:02:24 | Inline more. | diff --git a/src/lib.rs b/src/lib.rs
index 53ddce1..80f591a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -367,12 +367,14 @@ pub struct Tokenizer<'a> {
}
impl<'a> From<&'a str> for Tokenizer<'a> {
+ #[inline]
fn from(text: &'a str) -> Self {
Self::from(StrSpan::from(text))
}
}
impl<'a> From<... | 3 | 6 | 0 |
86faf1f05bf778f8106169539ee686fe63ee6da6 | Evgeniy Reizner | 2019-09-14T09:19:46 | Optimize qualified name parsing. | diff --git a/src/lib.rs b/src/lib.rs
index 03c262b..f2e274d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,6 +50,7 @@ If you are looking for a more high-level solution - checkout
#![forbid(unsafe_code)]
#![warn(missing_docs)]
+#![allow(ellipsis_inclusive_range_patterns)]
use std::fmt;
diff --git a/src/stream.... | 3 | 75 | 36 |
4a06010e5cca630be598ebafacb0f516312b63d0 | Evgeniy Reizner | 2019-09-13T20:43:53 | Inline Stream::consume_bytes
Makes parsing a bit faster and reduces the binary overhead by 1.5KiB. | diff --git a/src/stream.rs b/src/stream.rs
index eb2e30e..13e2537 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -240,6 +240,7 @@ impl<'a> Stream<'a> {
/// Consumes bytes by the predicate and returns them.
///
/// The result can be empty.
+ #[inline]
pub fn consume_bytes<F>(&mut self, f: F) ->... | 1 | 1 | 0 |
bcd738f1596cc962f8718fc01ec37cb3ab9c732e | Evgeniy Reizner | 2019-02-26T20:58:16 | Refactoring. | diff --git a/src/stream.rs b/src/stream.rs
index 8df23f6..c0e6402 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -31,7 +31,6 @@ pub enum Reference<'a> {
/// A streaming text parsing interface.
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct Stream<'a> {
- bytes: &'a [u8],
pos: usize,
end: usize,
... | 2 | 9 | 6 |
4e70db3df89500cb46f47e7171892e8d463000fb | RazrFalcon | 2019-02-11T17:54:44 | Build fixed. | diff --git a/src/strspan.rs b/src/strspan.rs
index 04df01f..44a7701 100644
--- a/src/strspan.rs
+++ b/src/strspan.rs
@@ -31,7 +31,8 @@ impl<'a> StrSpan<'a> {
#[inline]
pub fn from_substr(text: &str, start: usize, end: usize) -> StrSpan {
debug_assert!(start <= end);
- debug_assert!(text.get(st... | 1 | 2 | 1 |
05ff4e4a6de57a97196a860feb160a9e2659760b | RazrFalcon | 2019-02-08T13:14:29 | More #[inline]
It actually made a big difference. | diff --git a/src/stream.rs b/src/stream.rs
index 36d8055..81aad6e 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -60,11 +60,13 @@ impl<'a> From<StrSpan<'a>> for Stream<'a> {
impl<'a> Stream<'a> {
/// Returns an underling string span.
+ #[inline]
pub fn span(&self) -> StrSpan<'a> {
self.span
... | 2 | 18 | 0 |
a9b72961920f40a32c2f08816923c81ff197a949 | RazrFalcon | 2019-02-08T13:03:53 | Refactoring. | diff --git a/src/stream.rs b/src/stream.rs
index da3af84..36d8055 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -617,8 +617,11 @@ impl<'a> Stream<'a> {
/// This operation is very expensive. Use only for errors.
#[inline(never)]
pub fn gen_text_pos(&self) -> TextPos {
- let row = self.calc_curr... | 1 | 7 | 8 |
953db4a13260d70c9f259aaa998312660fc644fa | RazrFalcon | 2019-02-07T19:19:45 | Cargo.toml updated.
Small doc fixes. | diff --git a/Cargo.toml b/Cargo.toml
index 23d198e..6986c6b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,13 +3,13 @@ name = "xmlparser"
# When updating version, also modify html_root_url in the lib.rs
version = "0.8.1"
authors = ["Evgeniy Reizner <razrfalcon@gmail.com>"]
-keywords = ["xml", "parser", "tokenizer"]
... | 3 | 4 | 5 |
a5baf70370d73117fed1353c9a0eb4a9d4f5aeeb | Kornel | 2018-12-30T15:25:49 | Correct category | diff --git a/Cargo.toml b/Cargo.toml
index 59cfdd2..58bdd50 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,7 @@ name = "xmlparser"
version = "0.8.0"
authors = ["Evgeniy Reizner <razrfalcon@gmail.com>"]
keywords = ["xml", "parser", "tokenizer"]
-categories = ["parsing"]
+categories = ["parser-implementations"]
... | 1 | 1 | 1 |
00fb85eee919b221f95be2e18ebd9796f346828c | RazrFalcon | 2018-12-14T17:27:10 | Added 'badges' section to the Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index 08402ee..59cfdd2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,6 +11,9 @@ repository = "https://github.com/RazrFalcon/xmlparser"
documentation = "https://docs.rs/xmlparser/"
readme = "README.md"
+[badges]
+travis-ci = { repository = "RazrFalcon/xmlparser" }
+
[lib]
pat... | 1 | 3 | 0 |
8af326062091500d514b9ce281951d00bed2bf28 | RazrFalcon | 2018-12-10T11:15:43 | Fixed gen_text_pos_from panic. | diff --git a/src/stream.rs b/src/stream.rs
index 1eaff9b..822cdd5 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -644,13 +644,24 @@ impl<'a> Stream<'a> {
/// Calculates an absolute position at `pos`.
///
/// This operation is very expensive. Use only for errors.
+ ///
+ /// # Examples
+ ///
+... | 1 | 12 | 1 |
ed31d7bb92dfa3e36bd92a1d85fd3cff773ab0a2 | RazrFalcon | 2018-11-02T19:14:55 | Refactoring. | diff --git a/src/stream.rs b/src/stream.rs
index 77143fe..b141748 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -456,13 +456,8 @@ impl<'a> Stream<'a> {
}
let (prefix, local) = if let Some(splitter) = splitter {
+ let prefix = self.span.slice_region(start, splitter);
let l... | 1 | 1 | 6 |
f4227509e092463e74a981fe9fdf86731d20a38a | RazrFalcon | 2018-08-31T15:56:55 | Fix a clippy warning. | diff --git a/src/stream.rs b/src/stream.rs
index 8ce15e0..78607a4 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -646,6 +646,8 @@ impl<'a> Stream<'a> {
/// This operation is very expensive. Use only for errors.
#[inline(never)]
pub fn gen_error_pos_from(&self, pos: usize) -> TextPos {
+ // TODO... | 1 | 4 | 2 |
e82b9509e62290ee9b0a1671b5cea1541be91462 | RazrFalcon | 2018-06-12T16:45:45 | Fixed code bloating. | diff --git a/src/stream.rs b/src/stream.rs
index 3f7eb4a..27bc227 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -624,6 +624,7 @@ impl<'a> Stream<'a> {
/// Calculates a current absolute position.
///
/// This operation is very expensive. Use only for errors.
+ #[inline(never)]
pub fn gen_error... | 1 | 2 | 0 |
3e9d8f77e2c5c0b2cb9f75f81965368857bebf68 | RazrFalcon | 2018-06-12T16:35:11 | stderrlog removed. | diff --git a/Cargo.toml b/Cargo.toml
index 64a1e3f..bad901c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,6 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
rustc-test = "0.3"
-stderrlog = "0.4"
[lib]
path = "src/lib.rs" # for cargo-readme
diff --git a/examples/parse.rs b/examples/parse.rs
index ... | 3 | 0 | 5 |
738de48a395a9b45dfea56b0cf35aa318e19c696 | RazrFalcon | 2018-06-12T14:31:59 | Refactoring. | diff --git a/src/stream.rs b/src/stream.rs
index 8d44383..3f7eb4a 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -316,10 +316,12 @@ impl<'a> Stream<'a> {
/// ```
pub fn consume_byte(&mut self, c: u8) -> Result<()> {
if self.curr_byte()? != c {
+ let mut s = String::new();
+ s... | 2 | 6 | 5 |
1f9acf97ddb4eceb04750a606bf97b7156168b26 | RazrFalcon | 2018-06-12T12:27:57 | Fix some clippy warnings. | diff --git a/src/lib.rs b/src/lib.rs
index d34daf0..c742364 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,6 +50,8 @@ token positions.
- The library forbids unsafe code.
*/
+#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
+
#![doc(html_root_url = "https://docs.rs/xmlparser/0.4.1")]
#![forbid(... | 2 | 4 | 2 |
4658c38fbf414b946664c0f182e7363e8120ac28 | RazrFalcon | 2018-06-12T12:25:26 | Refactoring. | diff --git a/src/xml.rs b/src/xml.rs
index 7aecf03..c74b815 100644
--- a/src/xml.rs
+++ b/src/xml.rs
@@ -92,6 +92,26 @@ impl<'a> From<StrSpan<'a>> for Tokenizer<'a> {
}
}
+
+/// Shorthand for:
+///
+/// ```no_run
+/// let start = stream.pos() - 2; // or any other number
+/// some_func().map_err(|e|
+/// Err... | 1 | 32 | 36 |
ef4088605343f7654af44801eba533528015e053 | RazrFalcon | 2018-06-12T10:50:21 | Refactoring. | diff --git a/src/lib.rs b/src/lib.rs
index 6d06eec..d34daf0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -65,33 +65,10 @@ mod xml;
mod xmlchar;
-pub use error::{
- Error,
- ErrorPos,
- StreamError,
-};
-pub use stream::{
- Reference,
- Stream,
-};
-pub use text::{
- TextUnescape,
- XmlSpace,
-}... | 4 | 52 | 75 |
9d630a6ebd2677ecfd0985d55140907ad813cce1 | RazrFalcon | 2018-06-12T10:15:39 | Fixed some clippy warnings. | diff --git a/src/stream.rs b/src/stream.rs
index 27a89c9..7021c88 100644
--- a/src/stream.rs
+++ b/src/stream.rs
@@ -138,7 +138,7 @@ impl<'a> Stream<'a> {
/// Returns `UnexpectedEndOfStream` if we are at the end of the stream.
pub fn next_byte(&self) -> Result<u8> {
if self.pos + 1 >= self.end {
- ... | 2 | 16 | 18 |
11ace803dcd62ea687f82d57665aac93235c6893 | RazrFalcon | 2018-05-29T09:13:56 | Dependencies updated. | diff --git a/Cargo.toml b/Cargo.toml
index 19ef5ab..0a3e570 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,7 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
rustc-test = "0.3"
-stderrlog = "0.3"
+stderrlog = "0.4"
[lib]
path = "src/lib.rs" # for cargo-readme | 1 | 1 | 1 |
69b5a7b7ffeed304f96ac3c20a73f9ae40e696f6 | Reizner Evgeniy | 2017-12-28T13:07:13 | Dependencies updated. | diff --git a/Cargo.toml b/Cargo.toml
index c759d48..140728d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ documentation = "https://docs.rs/xmlparser/"
readme = "README.md"
[dependencies]
-log = "0.3"
+log = "0.4"
[dependencies.error-chain]
version = "0.11" | 1 | 1 | 1 |
87b4f6a3666a033e8ad6ecb92fa39130a885d0e8 | Reizner Evgeniy | 2017-12-04T20:08:52 | Added StrSpan::as_bytes. | diff --git a/src/strspan.rs b/src/strspan.rs
index 0fec4bc..ec17503 100644
--- a/src/strspan.rs
+++ b/src/strspan.rs
@@ -40,38 +40,45 @@ impl<'a> StrSpan<'a> {
}
}
- /// Returns a start position of the frame.
+ /// Returns a start position of the span.
pub fn start(&self) -> usize {
... | 2 | 15 | 9 |
bfb44f16da4d1f3a37090635413474795f5a2406 | Reizner Evgeniy | 2017-12-03T20:19:49 | Rename EntityDecl to EntityDeclaration. | diff --git a/src/token.rs b/src/token.rs
index 64da8b5..b6864c6 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -31,7 +31,7 @@ pub enum Token<'a> {
/// Can appear only inside the DTD.
///
/// Example: `<!ENTITY ns_extend "http://test.com">`
- EntityDecl(StrSpan<'a>, EntityDefinition<'a>),
+ EntityD... | 3 | 3 | 3 |
5564c04a4aaa4d758b1999a3790255d92c7a09d9 | Etienne Vaillant | 2025-09-29T19:17:30 | Update dep | diff --git a/Cargo.toml b/Cargo.toml
index 5b5b75c..826e2ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,8 +18,8 @@ exclude = ["benches/criterion"]
[dev-dependencies]
sharded-slab = "0.1"
object-pool = "0.6"
-criterion = "0.6"
-criterion-plot = "0.5"
+criterion = "0.7"
+criterion-plot = "0.6"
[[bench]]
name =... | 1 | 2 | 2 |
0b8b4537b40812b73dc4b4ee5a3569c416cd260a | Etienne Vaillant | 2025-06-29T10:30:36 | Fi Warning and update dep | diff --git a/Cargo.toml b/Cargo.toml
index 8bc174a..5b5b75c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,7 +18,7 @@ exclude = ["benches/criterion"]
[dev-dependencies]
sharded-slab = "0.1"
object-pool = "0.6"
-criterion = "0.5.1"
+criterion = "0.6"
criterion-plot = "0.5"
[[bench]]
diff --git a/benches/bench.rs... | 2 | 7 | 8 |
a1fa00a244ef69a056bc07a786753d5f697a7d2e | Etienne Vaillant | 2025-01-22T20:43:05 | Fix warning + update dep | diff --git a/Cargo.toml b/Cargo.toml
index ec31d14..8bc174a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ exclude = ["benches/criterion"]
[dev-dependencies]
sharded-slab = "0.1"
-object-pool = "0.5"
+object-pool = "0.6"
criterion = "0.5.1"
criterion-plot = "0.5"
diff --git a/src/linear_reusable.rs ... | 5 | 13 | 13 |
67952a47b1a73b54aa2bcebfa946df204ec68a16 | Etienne Vaillant | 2024-05-19T13:25:13 | Version upgraded | diff --git a/Cargo.toml b/Cargo.toml
index c4ad064..ec31d14 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "lockfree-object-pool"
description = "A thread-safe object pool collection with automatic return and attach/detach semantics."
-version = "0.1.5"
+version = "0.1.6"
readme = "README.... | 1 | 1 | 1 |
6f475979dc7e6a43190db5267680b73a1df88957 | Etienne Vaillant | 2024-05-19T13:21:24 | Exclude benchmark reports from crate | diff --git a/Cargo.toml b/Cargo.toml
index c4aa745..c4ad064 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,6 +11,7 @@ homepage = "https://github.com/EVaillant/lockfree-object-pool"
repository = "https://github.com/EVaillant/lockfree-object-pool"
keywords = ["atomic", "object-pool", "non-blocking", "lock-free"]
cate... | 1 | 1 | 0 |
b774e6d9d812fca5616e2a768a252ba9464042e9 | Etienne Vaillant | 2024-01-24T19:34:33 | Version upgraded | diff --git a/Cargo.toml b/Cargo.toml
index 93d6ff9..c4aa745 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "lockfree-object-pool"
description = "A thread-safe object pool collection with automatic return and attach/detach semantics."
-version = "0.1.4"
+version = "0.1.5"
readme = "README.... | 1 | 1 | 1 |
e151717fb8d0db957a78f9d754f2756e4f2c5490 | Jack Kleeman | 2024-01-24T19:13:43 | Avoid compare_exhange_weak in linear_page.rs
compare_exchange_weak can fail spuriously (ie, even if the values match) on some platforms (in my case arm musl).
This leads to a panic as we are assuming that x is not null, but in fact it can be null in the spurious failure case.
We can wrap this in a loop and check for t... | diff --git a/src/linear_page.rs b/src/linear_page.rs
index e8de86b..dde01ac 100644
--- a/src/linear_page.rs
+++ b/src/linear_page.rs
@@ -29,7 +29,7 @@ impl<T> LinearPage<T> {
let new = Box::into_raw(Box::new(LinearPage::<T>::new(init)));
match self
.next
- .comp... | 1 | 1 | 1 |
3d9ed182f827dda04db5cee7b9fd9145d66b8919 | Etienne Vaillant | 2023-12-03T12:50:52 | Update dep version + fix warning | diff --git a/Cargo.toml b/Cargo.toml
index 00416ea..93d6ff9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ categories = ["concurrency", "memory-management", "data-structures"]
[dev-dependencies]
sharded-slab = "0.1"
object-pool = "0.5"
-criterion = "0.4"
+criterion = "0.5.1"
criterion-plot = "0.5"
[[... | 2 | 3 | 3 |
a7b7b1b7a985ba099a2446df2454ad43fb42cd60 | Etienne Vaillant | 2023-04-10T13:08:42 | Update version | diff --git a/Cargo.toml b/Cargo.toml
index bed1277..00416ea 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "lockfree-object-pool"
description = "A thread-safe object pool collection with automatic return and attach/detach semantics."
-version = "0.1.3"
+version = "0.1.4"
readme = "README.... | 1 | 1 | 1 |
28f5b959af116f3c7194e8f8fdbc3145e8f45fa5 | Etienne Vaillant | 2021-01-23T23:15:08 | Fix test_generic_02 & test_generic_03 don't work as intended for MutexObjectPool or SpinLockObjectPool | diff --git a/src/lib.rs b/src/lib.rs
index 1a23e16..f2c8e70 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -63,7 +63,7 @@
//! [`LinearObjectPool`]|7.1384|34.481
//! [`crate 'sharded-slab'`]|9.0273|11.127
//! [`crate 'object-pool'`]|20.038|47.768
-//!
+//!
//! [`crate 'sharded-slab'`]: https://crates.io/crates/sharded... | 6 | 81 | 76 |
47d31ea3aa0e3db8f7febac2d8ae66f061375918 | Tom Dohrmann | 2021-01-21T17:20:24 | various soundness fixes and other improvements | diff --git a/src/lib.rs b/src/lib.rs
index 5e21e72..c0817af 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -66,7 +66,7 @@ mod linear_page;
mod linear_reusable;
mod mutex_object_pool;
mod mutex_reusable;
-mod non_object_pool;
+mod none_object_pool;
mod none_reusable;
mod page;
mod spin_lock;
@@ -77,7 +77,7 @@ pub use... | 17 | 166 | 185 |
f3dd4061e13c3c527bb510438031580bec3284fd | Etienne Vaillant | 2021-01-21T07:28:36 | Fix Licence name | diff --git a/Cargo.toml b/Cargo.toml
index 5b984ed..57647ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ version = "0.1.0"
readme = "README.md"
authors = ["Etienne Vaillant <vaillant.etienne@gmail.com>"]
edition = "2018"
-license = "Boost-1.0"
+license = "BSL-1.0"
homepage = "https://github.com/EVaillan... | 1 | 1 | 1 |
200e79e2efcc500582943a8b772d2ed29c4ff3c2 | Etienne Vaillant | 2021-01-21T07:14:48 | Add some package description | diff --git a/Cargo.toml b/Cargo.toml
index 166d5a1..5b984ed 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,15 @@
[package]
name = "lockfree-object-pool"
+description = "A thread-safe object pool collection with automatic return and attach/detach semantics."
version = "0.1.0"
+readme = "README.md"
authors = ["E... | 1 | 7 | 0 |
583471a0b80d8563bc1bd2265f1504272b0e1ae4 | Artyom Pavlov | 2026-04-10T17:08:35 | Use `allow(missing_docs)` in benches (#270) | diff --git a/belt-mac/benches/mod.rs b/belt-mac/benches/mod.rs
index 8433217..c0e396a 100644
--- a/belt-mac/benches/mod.rs
+++ b/belt-mac/benches/mod.rs
@@ -1,4 +1,5 @@
#![feature(test)]
+#![allow(missing_docs)]
extern crate test;
use belt_mac::{BeltMac, KeyInit};
diff --git a/cbc-mac/benches/mod.rs b/cbc-mac/benc... | 5 | 5 | 0 |
3b4105093bdbf2c6ea5188a58680e8bedc05998d | Artyom Pavlov | 2026-04-10T17:04:32 | Use release versions of block cipher crates (#269) | diff --git a/Cargo.lock b/Cargo.lock
index fc38e23..bf5fa02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,20 +4,20 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.4"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04097e08a47d9ad181c2e1f4a5fabc9ae06ce8... | 6 | 23 | 32 |
11d4f3624f3dfe95d57cfb8a3173d7071eb5a1b3 | Tony Arcieri | 2026-03-27T16:51:40 | hmac: use release versions of `dev-dependencies` (#260)
Release PRs:
- `sha1`: RustCrypto/hashes#810
- others: RustCrypto/hashes#812 | diff --git a/Cargo.lock b/Cargo.lock
index 22ef2ba..7b047e8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -234,9 +234,9 @@ dependencies = [
[[package]]
name = "md-5"
-version = "0.11.0-rc.5"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59e715bb6f273068fc89403d6c4f... | 2 | 10 | 10 |
c40b82b2ac40bc0260d0c35d6a518f97e72411e5 | Tony Arcieri | 2026-03-25T19:45:15 | hmac: bump `sha2` dev-dependency to v0.11 (#259) | diff --git a/Cargo.lock b/Cargo.lock
index f9a20cd..22ef2ba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,7 +10,7 @@ checksum = "04097e08a47d9ad181c2e1f4a5fabc9ae06ce8839a333ba9a949bcb0d31fd2a3"
dependencies = [
"cipher",
"cpubits",
- "cpufeatures",
+ "cpufeatures 0.2.17",
]
[[package]]
@@ -112,6 +112,15 @@ ... | 2 | 15 | 6 |
1fa0781413e3d07d18a9bb622f096754640dee53 | Tony Arcieri | 2026-03-25T16:13:36 | Cut rc.5 prereleases (#258)
Fixes compatibility with the `digest` crate.
Note: `hmac` already received a v0.13.0-rc.6 release in #256 which
includes fixes for the same issue.
Releases the following:
- `cbc-mac` v0.2.0-rc.5
- `cmac` v0.8.0-rc.5
- `pmac` v0.8.0-rc.5
Closes #257 | diff --git a/Cargo.lock b/Cargo.lock
index f19fd87..f9a20cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "cbc-mac"
-version = "0.2.0-rc.4"
+version = "0.2.0-rc.5"
dependencies = [
"aes",
"cipher",
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "cmac"... | 4 | 6 | 6 |
a0082655c09ffe682a10640cbaefb67c8175010e | Tony Arcieri | 2026-03-20T15:42:29 | hmac v0.13.0-rc.6 (#256) | diff --git a/Cargo.lock b/Cargo.lock
index 21dff8a..f19fd87 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -169,7 +169,7 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"
[[package]]
name = "hmac"
-version = "0.13.0-rc.5"
+version = "0.13.0-rc.6"
dependencies = [
"digest",
"hex-lite... | 2 | 4 | 4 |
da485cd7baf0b7f5e501f5b42644bf9ddd428c6b | Artyom Pavlov | 2026-03-13T16:49:39 | Use `(Reset)MacTraits` (#254)
This PR reverts #250 and #253 since the relevant fix was added to
`digest` (see https://github.com/RustCrypto/traits/pull/2341). | diff --git a/Cargo.lock b/Cargo.lock
index f6d7cd4..21dff8a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -150,9 +150,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.1"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "285743a676ccb6b3e116bc14cc69319... | 7 | 15 | 14 |
2c51e3b76e6f50c13d85577c3faac7df66e24306 | Artyom Pavlov | 2026-03-12T01:02:28 | hmac: derive `Clone` instead of relying on `(Reset)MacTraits` (#253)
See https://github.com/RustCrypto/traits/pull/2341 | diff --git a/hmac/src/lib.rs b/hmac/src/lib.rs
index 4dbc201..c06748d 100644
--- a/hmac/src/lib.rs
+++ b/hmac/src/lib.rs
@@ -35,8 +35,9 @@ use digest::block_api::{AlgorithmName, CoreProxy};
digest::buffer_fixed!(
/// Generic HMAC instance.
+ #[derive(Clone)]
pub struct Hmac<D: EagerHash>(block_api::Hmac... | 1 | 4 | 2 |
669d805394f5f4d0dc07ded010c0df9a3ab01629 | Artyom Pavlov | 2026-03-03T00:03:07 | Relax `Clone` bounds (#250)
The bounds are necessary only for implementation of `Clone` for buffered
types and it can be handled with a simple `#[derive(Clone)]`.
Unfortunately, `Clone` is part of `(Reset)MacTraits`, so we have to use
a more granular listing of traits. | diff --git a/belt-mac/src/block_api.rs b/belt-mac/src/block_api.rs
index f090593..1e36a94 100644
--- a/belt-mac/src/block_api.rs
+++ b/belt-mac/src/block_api.rs
@@ -1,4 +1,3 @@
-use belt_block::BeltBlock;
use cipher::{BlockCipherEncBackend, BlockCipherEncClosure, BlockCipherEncrypt};
use core::fmt;
use digest::{
@@ ... | 10 | 63 | 60 |
945339b6c98fb3b1a3aff8034cc0b4da4e9f093c | Artyom Pavlov | 2026-03-02T23:27:20 | Migrate to digest v0.11.1 (#249) | diff --git a/Cargo.lock b/Cargo.lock
index 71ba591..f6d7cd4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,9 +40,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 9 | 98 | 84 |
a8dc8e827de52fbb5ae573ca5fab980e82cbc29c | Tony Arcieri | 2026-02-14T16:14:32 | Bump `digest` to v0.11 (#243)
Release PR: RustCrypto/traits#2300 | diff --git a/Cargo.lock b/Cargo.lock
index 06f8ab5..71ba591 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -91,6 +91,12 @@ dependencies = [
"magma",
]
+[[package]]
+name = "cmov"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de0758edba32d61d1fd9f4d69491b47604b91ee2f... | 7 | 30 | 21 |
e56667e8e1b0bfc704f39447af268cc6511b7d9a | Tony Arcieri | 2026-02-14T16:06:47 | Bump `cipher` to v0.5 (#242)
Release PR: RustCrypto/traits#2281 | diff --git a/belt-mac/Cargo.toml b/belt-mac/Cargo.toml
index 1ce7152..54bd723 100644
--- a/belt-mac/Cargo.toml
+++ b/belt-mac/Cargo.toml
@@ -14,7 +14,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
belt-block = "0.2.0-rc.3"
-cipher = "0.5.0-rc.8"
+cipher = "0.5"
digest = { version = "0.11.0-rc.11", fea... | 5 | 5 | 5 |
522771230101cbe45bdf27c707406f4df6441efb | Tony Arcieri | 2026-02-02T17:59:25 | Bump `cipher` to v0.5.0-rc.8; `digest` to v0.11.0-rc.11 (#240)
Also cuts the following releases:
- `cbc-mac` v0.2.0-rc.4
- `cmac` v0.8.0-rc.4
- `hmac` v0.13.0-rc.5
- `pmac` v0.8.0-rc.4
- `retail-mac` v0.1.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index 6bda201..58103c7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,20 +4,20 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.2"
+version = "0.9.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd9e1c818b25efb32214df89b0ec22f01... | 7 | 72 | 66 |
dc1d0cdfe0b7be4fb5da82ae95b1806352d36799 | Tony Arcieri | 2026-01-25T04:20:08 | hmac v0.13.0-rc.4 (#239) | diff --git a/Cargo.lock b/Cargo.lock
index 8f1fa74..6bda201 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"
[[package]]
name = "hmac"
-version = "0.13.0-rc.3"
+version = "0.13.0-rc.4"
dependencies = [
"digest",
"hex-lite... | 2 | 14 | 14 |
f2f0ea5df75d9f210e03b427a49731429c7e0265 | Tony Arcieri | 2026-01-25T04:16:32 | Bump `digest` to v0.11.0-rc.9 (#238)
Uses the new `digest::common` re-export of `crypto-common` | diff --git a/Cargo.lock b/Cargo.lock
index b157012..8f1fa74 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,9 +129,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-rc.8"
+version = "0.11.0-rc.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fc1408b7a9f59a7b933f... | 15 | 22 | 22 |
547e12f060555d6b06ac60a561c1ed072cc9ed8f | Tony Arcieri | 2026-01-24T16:33:39 | Bump `cipher` to v0.5.0-rc.6; `digest` to v0.11.0-rc.8 (#236) | diff --git a/Cargo.lock b/Cargo.lock
index 7b60b26..05ac64d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "cipher"
-version = "0.5.0-rc.3"
+version = "0.5.0-rc.6"
source = "registry+https://github.com/rust... | 7 | 25 | 25 |
aebb5a05eeb6f020154c245d6ba58b7b4d7170b9 | Tony Arcieri | 2025-12-27T21:40:24 | Bump `cipher` and `digest` dependencies (#232)
Bumps these dependencies to the following versions:
- `cipher` v0.5.0-rc.3
- `digest` v0.11.0-rc.5 | diff --git a/Cargo.lock b/Cargo.lock
index 8a60828..7b60b26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "cipher"
-version = "0.5.0-rc.2"
+version = "0.5.0-rc.3"
source = "registry+https://github.com/rust... | 7 | 23 | 23 |
4b9ef64c777165e5d88a1921c2b64547f6191450 | Tony Arcieri | 2025-11-05T18:09:59 | Cut rc.3 prereleases (#226)
Releases the following:
- `cbc-mac` v0.2.0-rc.3
- `cmac` v0.8.0-rc.3
- `hmac` v0.13.0-rc.3
- `pmac` v0.8.0-rc.3 | diff --git a/Cargo.lock b/Cargo.lock
index 5259fa0..1d7319a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.1"
+version = "0.9.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e713c57c2a2b19159e7be83b9194600d7e... | 6 | 36 | 36 |
972fc540fb6290014d2d41577de0ae7c7beaeac9 | Tony Arcieri | 2025-11-05T17:30:20 | Bump `cipher` dependency to v0.5.0-rc.2 (#225) | diff --git a/Cargo.lock b/Cargo.lock
index e3c31cf..5e50d3d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "cipher"
-version = "0.5.0-rc.1"
+version = "0.5.0-rc.2"
source = "registry+https://github.com/rust... | 6 | 7 | 7 |
de770476b8d410ad09d37959a67c7fe9a49cef76 | Tony Arcieri | 2025-11-05T16:52:13 | Bump `digest` dependency to v0.11.0-rc.4 (#223) | diff --git a/Cargo.lock b/Cargo.lock
index 4463bca..e3c31cf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -102,9 +102,9 @@ dependencies = [
[[package]]
name = "crypto-common"
-version = "0.2.0-rc.4"
+version = "0.2.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a8235645834fbc6... | 7 | 16 | 16 |
711f5c66e46202ab74f7c43296a83b990a705fdc | Artyom Pavlov | 2025-10-21T10:28:39 | pmac: tweak `PmacCipher` docs (#220) | diff --git a/pmac/src/block_api.rs b/pmac/src/block_api.rs
index 6b1faea..f56b535 100644
--- a/pmac/src/block_api.rs
+++ b/pmac/src/block_api.rs
@@ -213,7 +213,10 @@ fn xor<N: ArraySize>(buf: &mut Array<u8, N>, data: &Array<u8, N>) {
}
}
-/// Helper trait implemented for cipher supported by CMAC
+/// Helper tra... | 1 | 4 | 1 |
f36e7876c6e6609b245978c97483a9e7fba71a56 | Artyom Pavlov | 2025-10-13T04:16:43 | Switch from `doc_auto_cfg` to `doc_cfg` (#217)
See https://github.com/RustCrypto/traits/issues/2028 | diff --git a/belt-mac/src/lib.rs b/belt-mac/src/lib.rs
index df7e98b..53bec4e 100644
--- a/belt-mac/src/lib.rs
+++ b/belt-mac/src/lib.rs
@@ -4,7 +4,7 @@
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/26acc39f/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/medi... | 6 | 6 | 6 |
4f7a519f4b6a5f350523edd2ce7f2cd7d7c3db77 | Артём Павлов [Artyom Pavlov] | 2025-10-13T04:11:49 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index bf7b7eb..a95a586 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "blobby"
-version = "0.4.0-pre.1"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4db6eec520c1f3d3b060c5b67527... | 1 | 8 | 8 |
7c7919b4d8e046e27363701995581a1b18ee3124 | Артём Павлов [Artyom Pavlov] | 2025-09-30T12:53:55 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 43e9664..bf7b7eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,9 +129,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-rc.2"
+version = "0.11.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6749b668519cd7149ee3d... | 1 | 8 | 8 |
38c07015af4bc8066cb0fad99611cec367594b1c | Tony Arcieri | 2025-09-16T22:58:34 | hmac v0.13.0-rc.2 (#213) | diff --git a/Cargo.lock b/Cargo.lock
index e7f89aa..56fcd72 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hmac"
-version = "0.13.0-rc.1"
+version = "0.13.0-rc.2"
dependencies = [
"digest",
"hex-lite... | 2 | 2 | 2 |
6e7db7b1d45d60208fe52df7fc29ecb39f97ae2a | daxpedda | 2025-09-16T22:43:37 | hmac: use `digest::EagerHash` (#212)
Follow-up to RustCrypto/traits#2014 | diff --git a/Cargo.lock b/Cargo.lock
index 2014a5f..e7f89aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,9 +129,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-rc.1"
+version = "0.11.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a4aae35a0fcbe22ff1be... | 10 | 19 | 48 |
d34a204fb30eb2eb99ff292fce481c2b6cf5c3b0 | Tony Arcieri | 2025-09-03T02:28:00 | Cut prereleases with `hybrid-array` v0.4 support (#210)
Releases the following:
- `cbc-mac` v0.2.0-rc.1
- `cmac` v0.8.0-rc.1
- `hmac` v0.13.0-rc.1
- `pmac` v0.8.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index 756e053..3cf8432 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "cbc-mac"
-version = "0.2.0-rc.0"
+version = "0.2.0-rc.1"
dependencies = [
"aes",
"cipher",
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "cmac"... | 5 | 8 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.