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 |
|---|---|---|---|---|---|---|---|
81d6817b2a41aa263d1faf7b2c8a5ca0c5115ec3 | Ted Driggs | 2017-05-04T00:42:58 | Fixed stack overflow and struct-level defaulting | diff --git a/core/src/codegen/mod.rs b/core/src/codegen/mod.rs
index 19b6c75..d9cf120 100644
--- a/core/src/codegen/mod.rs
+++ b/core/src/codegen/mod.rs
@@ -45,7 +45,7 @@ impl<'a> ToTokens for DefaultExpression<'a> {
fn to_tokens(&self, tokens: &mut Tokens) {
tokens.append(match *self {
Defau... | 4 | 9 | 6 |
a56331a016e21f65e2c209928409a0f9d38c2274 | Ted Driggs | 2017-05-04T00:26:58 | Added a test case showing the happy path | diff --git a/Cargo.toml b/Cargo.toml
index 17e739f..dda1381 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,5 +13,8 @@ license = "MIT"
darling_core = { version = "=0.1.0", path = "core" }
darling_macro = { version = "=0.1.0", path = "macro" }
+[dev-dependencies]
+syn = "0.11"
+
[workspace]
members = ["macro", "co... | 4 | 46 | 1 |
2b64f9a97dbd6387110e515a92e35e7bd8785324 | Ted Driggs | 2017-05-04T00:14:57 | Major update
* Add mutating applicator
* Add rename_all
* Add unit enum support
* Add FromDeriveInput | diff --git a/core/Cargo.toml b/core/Cargo.toml
index 34a8e36..e4650c6 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -11,4 +11,8 @@ default = ["syn/full"]
[dependencies]
lazy_static = "0.2.8"
syn = "0.11.11"
-quote = "0.3.12"
\ No newline at end of file
+quote = "0.3.12"
+
+[dependencies.serde_case]
+version ... | 17 | 589 | 163 |
b72d1b2a6c396b45424e87482e58751184d9b041 | Ted Driggs | 2017-05-02T03:01:26 | Fixed attribute name | diff --git a/core/src/codegen/mod.rs b/core/src/codegen/mod.rs
index 0b1228e..70712f9 100644
--- a/core/src/codegen/mod.rs
+++ b/core/src/codegen/mod.rs
@@ -25,7 +25,7 @@ impl<'a> ToTokens for DefaultExpression<'a> {
quote!(#dsn.#ident)
},
DefaultExpression::Explicit(path) => ... | 3 | 5 | 2 |
7de08ce58199f16cb1f8e7a09412af85ec396804 | Ted Driggs | 2017-05-02T02:44:06 | Rename from attr_deserialize to darling | diff --git a/Cargo.toml b/Cargo.toml
index 6f19884..17e739f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,8 @@
[package]
-name = "attr_deserialize"
+name = "darling"
version = "0.1.0"
authors = ["Ted Driggs <ted.driggs@outlook.com>"]
-repository = "https://github.com/TedDriggs/attr_deserialize"
+repository = "... | 12 | 121 | 41 |
53201029cf379f23c99e6a8ac3a147ab292173cd | Ted Driggs | 2017-05-02T01:50:26 | Explain odd Cargo.toml | diff --git a/core/Cargo.toml b/core/Cargo.toml
index a9c72b2..07155ef 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -4,10 +4,11 @@ version = "0.1.0"
authors = ["Ted Driggs <ted.driggs@outlook.com>"]
[features]
+# temporary hack to make Racer autocomplete work; it requires a 3-part version
+# number and does... | 1 | 2 | 1 |
3b0f5c363ca8adbece7cb3c93c978e6153e3a4b7 | Lukas Bergdoll | 2025-12-30T15:54:51 | Version 1.2.2 | diff --git a/Cargo.toml b/Cargo.toml
index df99e18..49c08ab 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.2.1"
+version = "1.2.2"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR GPL-2.0-only" | 1 | 1 | 1 |
346a2dce0342554168a34d3b16cb8973cffce9cd | Michel Lind | 2025-12-30T15:52:19 | Reinclude license (#73)
In 1.2.1 the project was relicensed to Apache-2.0 OR GPL-2.0-only, and
now ships two license texts.
However, `Cargo.toml` is still set to only include `LICENSE` - broaden
it to `LICENSE*` so the two license files are actually included as
intended.
```
$ cargo package --allow-dirty --list | gr... | diff --git a/Cargo.toml b/Cargo.toml
index 3721f00..df99e18 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ repository = "https://github.com/Voultapher/self_cell"
keywords = ["lifetime", "borrowing", "self", "reference", "intrusive"]
categories = ["rust-patterns", "memory-management"]
-include = ["src/*.... | 1 | 1 | 1 |
e634b195d3de1dcae1d846de991124665b5543db | GiGaGon | 2025-11-26T09:32:11 | Fix typo in lib.rs docs (#72) | diff --git a/src/lib.rs b/src/lib.rs
index 87128a3..e69fd20 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -152,7 +152,7 @@
//! library functionality for older rustc with technically UB versions. Testing
//! does not show older rustc versions (ab)using this. Use at your own risk.
//!
-//! The minimum versions are a bes... | 1 | 1 | 1 |
12591707297f981ed578c85805f5b432ffb3ff31 | Navneet Aman | 2025-11-17T12:15:22 | Impl From<T> for MutBorrow<T> (#71) | diff --git a/src/unsafe_self_cell.rs b/src/unsafe_self_cell.rs
index d275f9e..d759e8d 100644
--- a/src/unsafe_self_cell.rs
+++ b/src/unsafe_self_cell.rs
@@ -302,6 +302,11 @@ impl<T> MutBorrow<T> {
self.value.into_inner()
}
}
+impl<T> From<T> for MutBorrow<T> {
+ fn from(value: T) -> Self {
+ Se... | 1 | 5 | 0 |
7b98b472a3948bc5f678b9fdea4a80935368611b | Lukas Bergdoll | 2025-10-22T07:07:50 | Version 1.2.1 | diff --git a/Cargo.toml b/Cargo.toml
index f738b27..3721f00 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.2.0"
+version = "1.2.1"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR GPL-2.0-only" | 1 | 1 | 1 |
5861fcdb2ca37af12387dcee6e1bdb0b5b84db0f | Lukas Bergdoll | 2025-04-11T11:18:15 | Version 1.2.0 | diff --git a/Cargo.toml b/Cargo.toml
index 46a2aa8..0bc14e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.1.0"
+version = "1.2.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
4bd08b6215428246e1f26f9d13c22bf13ae4358d | Lukas Bergdoll | 2024-12-05T16:09:32 | Version 1.1.0 | diff --git a/Cargo.toml b/Cargo.toml
index 45849a8..46a2aa8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.0.4"
+version = "1.1.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
156818a0aadfa7e37996e66c2c57f30769d53cb1 | Lukas Bergdoll | 2024-05-03T16:33:29 | Version 1.0.4 | diff --git a/Cargo.toml b/Cargo.toml
index d81ae4d..45849a8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.0.3"
+version = "1.0.4"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
de8f7ee9210e1a8b010619ed32b3c2eed1d29266 | Lukas Bergdoll | 2023-12-20T16:33:25 | Version 1.0.3 | diff --git a/Cargo.toml b/Cargo.toml
index f75190b..d81ae4d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.0.2"
+version = "1.0.3"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
b034f5e1886c30bbec15add644d84220c03bb834 | Lukas Bergdoll | 2023-12-18T10:54:20 | Make old toolchains happy | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index bd7712e..f7a2338 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -94,7 +94,7 @@ struct FnOnce<T> {
mod core {
pub mod ptr {
#[allow(dead_code)]
- pub const unsafe fn read<T>(_src: *const T) -> T {
+ pub unsafe fn read<T>... | 1 | 1 | 1 |
38e7f860ad75b21e325008553505ef07578f0b07 | Lukas Bergdoll | 2023-12-18T10:10:55 | Replace new format string usage with old style | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 4ab706a..bd7712e 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -243,7 +243,7 @@ fn catch_panic_in_from() {
impl<'a> PanicCtor<'a> {
fn new(_: &'a Owner) -> Self {
let stack_vec = vec![23, 44, 5];
- println!("{... | 1 | 1 | 1 |
b22c01359d08071ab021a70270dcec5d92885d3c | Lukas Bergdoll | 2023-12-18T10:10:26 | Fix std -> ::core | diff --git a/src/lib.rs b/src/lib.rs
index 616bf27..d020723 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,7 +27,7 @@
//! impl NewStructName {
//! fn new(
//! owner: Owner,
-//! dependent_builder: impl for<'a> std::ops::FnOnce(&'a Owner) -> Dependent<'a>
+//! dependent_builder: impl for<... | 1 | 12 | 12 |
3d74a41d6f42a11b86483078087f0303e2ff8484 | Lukas Bergdoll | 2023-12-18T09:51:59 | Fix clippy lints | diff --git a/src/unsafe_self_cell.rs b/src/unsafe_self_cell.rs
index f661f10..8a429ba 100644
--- a/src/unsafe_self_cell.rs
+++ b/src/unsafe_self_cell.rs
@@ -1,3 +1,5 @@
+#![allow(clippy::needless_lifetimes)]
+
use core::marker::PhantomData;
use core::mem;
use core::ptr::{drop_in_place, read, NonNull};
diff --git a/t... | 2 | 10 | 6 |
9f9a55b1caed576a3f6987a86fe953a42995d6bb | Lukas Bergdoll | 2023-12-18T09:43:49 | Fix hygenic name collisions | diff --git a/src/lib.rs b/src/lib.rs
index 4f764df..616bf27 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,7 +27,7 @@
//! impl NewStructName {
//! fn new(
//! owner: Owner,
-//! dependent_builder: impl for<'a> FnOnce(&'a Owner) -> Dependent<'a>
+//! dependent_builder: impl for<'a> std::o... | 2 | 76 | 47 |
40734a4c27ca9cc4bb75d9851980bbf87889698f | Lukas Bergdoll | 2023-11-10T16:22:52 | Update version to 1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 89020c5..f75190b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.0.1"
+version = "1.0.2"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
50790f69b0f926c7b2936b9963c37616f5822e1e | Frank Steffahn | 2023-11-09T17:06:46 | Fix insufficient covariance detection | diff --git a/src/lib.rs b/src/lib.rs
index 1e49e3f..567ebb4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -577,7 +577,7 @@ macro_rules! _covariant_access {
(covariant, $Vis:vis, $Dependent:ident) => {
/// Borrows dependent.
$Vis fn borrow_dependent<'_q>(&'_q self) -> &'_q $Dependent<'_q> {
- ... | 1 | 1 | 1 |
98bdf38496bcb3a8c6262bc651e287d0edb8b19a | Kornel | 2023-10-27T01:03:36 | Use cast instead of transmute | diff --git a/src/lib.rs b/src/lib.rs
index bd7ac8f..1e49e3f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -370,9 +370,7 @@ macro_rules! self_cell {
let joined_void_ptr = NonNull::new($crate::alloc::alloc::alloc(layout)).unwrap();
- let mut joined_ptr = core::mem::transmute::<NonNull<u8... | 2 | 10 | 23 |
31f25c5f155134fb9ee4ac57ccf3660bd9ca1a5a | Lukas Bergdoll | 2023-10-29T17:14:25 | Fix miri dependency issue | diff --git a/tests-extra/Cargo.lock b/tests-extra/Cargo.lock
index 565989a..65b4c62 100644
--- a/tests-extra/Cargo.lock
+++ b/tests-extra/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "autocfg"
version = "1.1.... | 2 | 11 | 7 |
6e087f1b47b8fa29e2e76d2732b34ab66333d673 | Lukas Bergdoll | 2023-10-29T17:15:45 | Fix new warnings in tests | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 5d10d32..6e6c745 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -1,7 +1,5 @@
// The unsafe being used gets tested with miri in the CI.
-#![deny(private_in_public)]
-
use std::cell::Cell;
use std::cell::RefCell;
use std::fmt::Debug;
@@ -185,7 ... | 1 | 1 | 3 |
2bb7c3e75cf23849d5525fcf4bb279c9a78b49d6 | Lukas Bergdoll | 2023-06-13T12:54:48 | Version 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index 4e5fc8a..89020c5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
447d153dd9bd0784da1e0dca5f3aafee059756ec | link2xt | 2023-06-13T11:13:36 | Document generated methods | diff --git a/src/lib.rs b/src/lib.rs
index e2d8f2e..bd7ac8f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -337,6 +337,12 @@ macro_rules! self_cell {
}
impl $(<$OwnerLifetime>)? $StructName $(<$OwnerLifetime>)? {
+ /// Constructs a new self-referential struct.
+ ///
+ /// The provided `own... | 1 | 17 | 0 |
ab264c353b0b79245fb3297840a76b88c018f4f7 | Lukas Bergdoll | 2023-05-29T15:08:47 | Version 1.0 | diff --git a/Cargo.toml b/Cargo.toml
index bdf8d0b..4e5fc8a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.10.2"
+version = "1.0.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
c61118898713de7cb44072c6ec634f3f0b471484 | Lukas Bergdoll | 2023-05-29T14:05:35 | Restrict once_cell version to 1.1
This hopefully fixes the build with older toolchains | diff --git a/Cargo.toml b/Cargo.toml
index d1bf5e3..bdf8d0b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,22 +13,17 @@ repository = "https://github.com/Voultapher/self_cell"
keywords = ["lifetime", "borrowing", "self", "reference", "intrusive"]
categories = ["rust-patterns", "memory-management"]
-include = [
- ... | 2 | 6 | 11 |
09447651c6a4ae15643d9d0927dcc8a65627397f | Frank Steffahn | 2021-12-14T16:14:19 | Fix a typo | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 442eda8..5d10d32 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -622,7 +622,7 @@ fn nested_cells() {
#[test]
fn panic_in_from_owner() {
- // panicing in user provided code shouldn't leak memory.
+ // panicking in user provided code should... | 1 | 1 | 1 |
28d17d8d8815bc4048d8cf344aa0f5b4f385749e | Lukas Bergdoll | 2021-11-27T18:12:53 | Bump version to 0.10.2 | diff --git a/Cargo.toml b/Cargo.toml
index aadca05..d1bf5e3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.10.1"
+version = "0.10.2"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
531c10ec9268ce276ff67fda38c0a061e230ed9b | Link Dupont | 2021-11-26T17:32:20 | build: include LICENSE and README in crate
Explicitly include LICENSE and README in the crate. The terms of the
Apache-2.0 license require redistributed sources to contain the license
text. | diff --git a/Cargo.toml b/Cargo.toml
index cb2fa81..aadca05 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,6 +16,8 @@ categories = ["rust-patterns", "memory-management"]
include = [
"src/*.rs",
"Cargo.toml",
+ "README.md",
+ "LICENSE",
]
[dependencies] | 1 | 2 | 0 |
f9432b51fd184247512ff10748a4c67cbb7e6c40 | Lukas Bergdoll | 2021-11-07T17:17:22 | Version 0.10.1 | diff --git a/Cargo.toml b/Cargo.toml
index e32fff8..cb2fa81 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.10.0"
+version = "0.10.1"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
7c7653be8ef963286fb05f09c74f4e25fdf6d5b9 | Lukas Bergdoll | 2021-10-31T18:23:28 | Extend feature description in Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index c92c8e5..7af29e2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,4 +24,7 @@ include = [
once_cell = ">=1"
[features]
-old_rust = [] # Polyfill some std lib parts and limit testing
\ No newline at end of file
+# This optional feature lowers the minimum rustc version from 1.... | 1 | 4 | 1 |
eef1c25d255abdee9700a79e9e41c67d7c4b79d9 | Lukas Bergdoll | 2021-10-25T11:39:36 | Use suggested variance restriction with fn pointer instead of UnsafeCell | diff --git a/src/lib.rs b/src/lib.rs
index e067b10..e1f4b30 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -580,9 +580,9 @@ macro_rules! _covariant_owner_marker {
(not_covariant, $OwnerLifetime:lifetime) => {
// See the discussion in https://github.com/Voultapher/self_cell/pull/29
//
- // If ... | 1 | 2 | 2 |
52a4d8b7b6743c1ed84d072ee1214724310cb2ff | Lukas Bergdoll | 2021-10-25T11:36:19 | Consitently use ? for OwnerLifetime | diff --git a/src/lib.rs b/src/lib.rs
index 58ae063..e067b10 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -311,17 +311,17 @@ macro_rules! self_cell {
) => {
#[repr(transparent)]
$(#[$StructMeta])*
- $Vis struct $StructName $(<$OwnerLifetime>)* {
+ $Vis struct $StructName $(<$OwnerLifetime>)? {
u... | 1 | 10 | 10 |
7d647b44bd645d6d8bacda84a368c0aac7042421 | Lukas Bergdoll | 2021-10-11T19:29:08 | Add reasoning about try_new_or_recover ptr::read | diff --git a/src/lib.rs b/src/lib.rs
index 49fdc40..6570a0a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -472,6 +472,10 @@ macro_rules! self_cell {
})
}
Err(err) => {
+ // In contrast to into_owner ptr::read, here no dependent
+ ... | 1 | 4 | 0 |
444abf4a89351337a7514011ca9f72279b3736d4 | Lukas Bergdoll | 2021-10-05T16:57:13 | Align drop_panic tests with surrounding tests
Use catch_unwind instead of should_panic to be more explicit about what shoud
panic.
More descriptive names.
Use nontrivial owner type. | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 905bf5a..cce5246 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -388,7 +388,7 @@ fn drop_order() {
}
self_cell! {
- struct Foo {
+ struct DropOrder {
owner: Owner,
#[covariant]
@@ -397,8 +397,8 ... | 1 | 34 | 19 |
a245398bbfbf1b840dec1c1d87a8cc1e20733405 | Frank Steffahn | 2021-10-05T14:37:40 | Fix some memory leaks on panicking destructors | diff --git a/src/lib.rs b/src/lib.rs
index 5380dc7..49fdc40 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -362,7 +362,7 @@ macro_rules! self_cell {
owner_ptr.write(owner);
// Drop guard that cleans up should building the dependent panic.
- let mut drop_guard =
+ ... | 3 | 109 | 12 |
4fbd51cccf7b2b60a2f64947964198805c4481de | Frank Steffahn | 2021-10-05T15:04:47 | Fix double-free issue in `into_owner` method | diff --git a/src/unsafe_self_cell.rs b/src/unsafe_self_cell.rs
index ec56f0e..542a7f4 100644
--- a/src/unsafe_self_cell.rs
+++ b/src/unsafe_self_cell.rs
@@ -97,14 +97,16 @@ impl<ContainedIn, Owner, DependentStatic> UnsafeSelfCell<ContainedIn, Owner, Dep
let joined_ptr =
transmute::<NonNull<u8>, No... | 2 | 32 | 3 |
ebbf35549853c5a588c788543892607916218e63 | Frank Steffahn | 2021-10-04T11:18:24 | Fix 2 more potential soundness problems | diff --git a/src/lib.rs b/src/lib.rs
index 7bffdee..5380dc7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -355,8 +355,8 @@ macro_rules! self_cell {
joined_void_ptr
);
- let owner_ptr: *mut $Owner = &mut (*joined_ptr.as_ptr()).owner;
- let dependent_ptr... | 2 | 16 | 10 |
e805ed301a10b6b0b09bb87519a68276e4e15d18 | Frank Steffahn | 2021-10-04T11:18:24 | Add test for drop order | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 96a8824..b5a625b 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -2,6 +2,7 @@
#![deny(private_in_public)]
+use std::cell::RefCell;
use std::fmt::Debug;
use std::fs;
use std::marker::PhantomData;
@@ -362,6 +363,44 @@ fn custom_drop() {
a... | 1 | 39 | 0 |
64c2a7047358a14698227fe154013c47f76b6d45 | Frank Steffahn | 2021-10-04T10:56:26 | Fix drop order of JoinedCell fields
Co-authored-by: Lukas Bergdoll <lukas.bergdoll@gmail.com> | diff --git a/src/unsafe_self_cell.rs b/src/unsafe_self_cell.rs
index 0deb9b3..22f68c0 100644
--- a/src/unsafe_self_cell.rs
+++ b/src/unsafe_self_cell.rs
@@ -76,7 +76,11 @@ impl<ContainedIn, Owner, DependentStatic> UnsafeSelfCell<ContainedIn, Owner, Dep
let joined_ptr =
transmute::<NonNull<u8>, Non... | 1 | 5 | 1 |
774723696270bd3a0f995e5655e8d130e54109ba | Lukas Bergdoll | 2021-10-04T18:44:10 | Add test for debug impl | diff --git a/tests/self_cell.rs b/tests/self_cell.rs
index 78b294d..96a8824 100644
--- a/tests/self_cell.rs
+++ b/tests/self_cell.rs
@@ -567,6 +567,29 @@ fn result_name_hygiene() {
);
}
+#[test]
+fn debug_impl() {
+ // See https://github.com/Voultapher/self_cell/pull/22
+ let ast_cell = PackedAstCell::new... | 1 | 23 | 0 |
2cf22ade4597e3a250d7eeeedb4c06d475bb59ba | Frank Steffahn | 2021-10-04T12:08:09 | Change one rustdoc code block with shell interaction from ignore to txt | diff --git a/src/lib.rs b/src/lib.rs
index d07e244..03cf3a2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -53,7 +53,7 @@
//!
//! ### Fast compile times
//!
-//! ```ignore
+//! ```txt
//! $ rm -rf target && cargo +nightly build -Z timings
//!
//! Compiling self_cell v0.7.0 | 1 | 1 | 1 |
c4d809f441761aa31b468a51990e665a2bc65c16 | Frank Steffahn | 2021-10-04T11:43:36 | Improve debug implementation | diff --git a/src/lib.rs b/src/lib.rs
index d07e244..532ec2b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -575,14 +575,10 @@ macro_rules! _impl_automatic_derive {
fmt: &mut core::fmt::Formatter,
) -> core::result::Result<(), core::fmt::Error> {
self.with_dependent(|owner, de... | 1 | 4 | 8 |
d745c7bb574ad0d7a3f010c1a689689345f10c4e | Lukas Bergdoll | 2021-10-02T09:20:51 | Version 0.9.2
This release addresses two somewhat exotic ways self_cell could be used in an
unsound fashion to cause UB. See issues #17 and #18. Thanks @steffahn for
reporting and helping to fix these issues. | diff --git a/Cargo.toml b/Cargo.toml
index bfddd76..3c99c0a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.9.1"
+version = "0.9.2"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
6bc7a263470412d4e719a7b6daef370171fdaa8c | Frank Steffahn | 2021-09-22T03:27:04 | Add another generic argument to UnafeSelfCell to fix a soundness problem | diff --git a/src/lib.rs b/src/lib.rs
index 80529b0..e62b4ea 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -310,6 +310,7 @@ macro_rules! self_cell {
$(#[$StructMeta])*
$Vis struct $StructName $(<$OwnerLifetime>)* {
unsafe_self_cell: $crate::unsafe_self_cell::UnsafeSelfCell<
+ $StructName$(<$O... | 2 | 14 | 4 |
9a49032087534b96c9eebe80315aeb26209eac29 | Lukas Bergdoll | 2021-08-03T19:39:04 | Version 0.9.1
This release brings 2 core changes:
- `panic` inside a builder function no longer causes a memory leak.
This means that the previously documented workaround using `try_new` and
`catch_unwind` has become obsolete and the relevant example has been deleted.
- Limited support for owners with non static li... | diff --git a/Cargo.toml b/Cargo.toml
index 1a0afd5..bfddd76 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.9.0"
+version = "0.9.1"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
bfeaa84bcfb66b9b4e141d5a1d3eb53383e24ba9 | Lukas Bergdoll | 2021-06-26T08:08:00 | Use mem::forget for drop_guard | diff --git a/src/lib.rs b/src/lib.rs
index 80095d8..3ae49da 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -420,7 +420,7 @@ macro_rules! self_cell {
// Initialize dependent with owner reference in final place.
dependent_ptr.write(dependent_builder(&*owner_ptr));
- drop_gu... | 2 | 8 | 19 |
9941aa9c0c4bfbe79b1ae3bf880b7fd169f9b529 | Lukas Bergdoll | 2021-06-23T18:18:14 | Leverage StableDeref for ourobors benchmark | diff --git a/benchmarks/src/benchmarks.rs b/benchmarks/src/benchmarks.rs
index 3fb37ad..43a390a 100644
--- a/benchmarks/src/benchmarks.rs
+++ b/benchmarks/src/benchmarks.rs
@@ -77,12 +77,12 @@ pub fn i32_sparse(n: i32) -> i32 {
side_effect
}
-pub fn ast_from_string(body: &String) -> Ast {
+pub fn ast_from_strin... | 2 | 10 | 13 |
871296357859a2d7ec0709e4cbe900c6ee7a9e2b | Lukas Bergdoll | 2021-06-22T14:39:09 | Allocate list in list benchmarks | diff --git a/benchmarks/src/benchmarks.rs b/benchmarks/src/benchmarks.rs
index ef4634b..3fb37ad 100644
--- a/benchmarks/src/benchmarks.rs
+++ b/benchmarks/src/benchmarks.rs
@@ -17,7 +17,10 @@ pub fn i32_cell_try_new_ok(x: i32) -> Result<I32Cell, Box<u32>> {
pub fn i32_list(n: i32) -> i32 {
let mut side_effect = 0... | 1 | 6 | 2 |
2c586074d8461418f358ab204ee56287dc549df9 | Lukas Bergdoll | 2021-06-22T14:01:36 | Add sparse benchmark | diff --git a/benchmarks/src/benchmarks.rs b/benchmarks/src/benchmarks.rs
index 5a78a81..ef4634b 100644
--- a/benchmarks/src/benchmarks.rs
+++ b/benchmarks/src/benchmarks.rs
@@ -32,7 +32,6 @@ pub fn i32_list(n: i32) -> i32 {
// The list functions mostly test L1 access
// Let's also test pseudo random access.
-
pub ... | 3 | 90 | 1 |
a5a5c620cdf1ba5cacbc20af65eb8d8ed3cb2ca2 | Lukas Bergdoll | 2021-06-22T13:39:04 | Add benchmark option ouroboros_compare | diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index 7edc4b3..c2c2e50 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -8,6 +8,7 @@ edition = "2018"
[dependencies]
self_cell = { path = "../" }
+ouroboros = { version = "0.9.3", optional = true }
[dev-dependencies]
criterion = "0.3"
@... | 5 | 135 | 23 |
bb2f502fa0bae2318987e7e9a57e5a9a83e8ac25 | Lukas Bergdoll | 2021-06-20T06:39:59 | Guard against zero sized layouts
This new assert should be trivially optimized out
by constant propagation. | diff --git a/src/lib.rs b/src/lib.rs
index 7f4d664..6bad76f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -408,6 +408,7 @@ macro_rules! self_cell {
type JoinedCell<'a> = $crate::unsafe_self_cell::JoinedCell<$Owner, $Dependent<'a>>;
let layout = $crate::alloc::alloc::Layout::new::<Joine... | 2 | 36 | 9 |
628802b32b0dfcc05b05f8c13b642610f91e591b | Lukas Bergdoll | 2021-06-19T07:26:03 | Version 0.9.0 | diff --git a/Cargo.toml b/Cargo.toml
index 7505078..415f967 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.8.0"
+version = "0.9.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
@@ -10,7 +10,7 @@ readme = "README.... | 1 | 2 | 2 |
33d2a7d8ae0bc950a0193bb60506f9e08ba1163f | Lukas Bergdoll | 2021-06-17T06:02:33 | Add into_owner
This allows obtaining the owner again should the self referential struct no
longer be needed. | diff --git a/src/lib.rs b/src/lib.rs
index 5f2f217..7f4d664 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -288,6 +288,10 @@ macro_rules! _impl_automatic_derive {
/// ) -> Ret
/// ```
///
+/// ```ignore
+/// fn into_owner(self) -> $Owner
+/// ```
+///
///
/// NOTE: If building the dependent panics, the value of owner... | 3 | 72 | 1 |
fa9f39c771a8566ec68ecc58c5f499cb7af52de0 | Lukas Bergdoll | 2021-06-06T19:21:36 | Add try_new_or_recover constructor | diff --git a/src/lib.rs b/src/lib.rs
index da99fdb..5f2f217 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -256,6 +256,13 @@ macro_rules! _impl_automatic_derive {
/// ) -> Result<Self, Err>
/// ```
///
+/// ```ignore
+/// fn try_new_or_recover<Err>(
+/// owner: $Owner,
+/// dependent_builder: impl for<'a> FnOnc... | 2 | 78 | 0 |
eb15e547d48e6f98d011fed18a2debef272f8299 | Jonas Platte | 2021-05-15T11:07:38 | Fix typo in crate docs | diff --git a/src/lib.rs b/src/lib.rs
index c822c2b..9c42726 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -136,7 +136,7 @@
//!
//! - [How to build a lazy AST with self_cell](https://github.com/Voultapher/self_cell/tree/main/examples/lazy_ast)
//!
-//! - [How to avoid leaking memory if `Dependen::from(&Owner)` panics](... | 1 | 1 | 1 |
9b2c90722ab5e69ef07c49318231ae4225ce393c | Lukas Bergdoll | 2021-05-13T07:34:14 | Version 0.8.0 | diff --git a/Cargo.toml b/Cargo.toml
index 94ecd62..7505078 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "self_cell"
-version = "0.7.1"
+version = "0.8.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
7883576948037771727ad91ee8132c179f1e3711 | Lukas Bergdoll | 2021-04-17T18:24:20 | Drop user need to import TryInto
Also propagates $Vis to member functions. | diff --git a/examples/fallible_dependent_construction/src/main.rs b/examples/fallible_dependent_construction/src/main.rs
index 336d294..b61e670 100644
--- a/examples/fallible_dependent_construction/src/main.rs
+++ b/examples/fallible_dependent_construction/src/main.rs
@@ -1,4 +1,4 @@
-use std::convert::{TryFrom, TryInt... | 3 | 40 | 34 |
29fccce72b88c84ad66b4812c4e631c678b17909 | Lukas Bergdoll | 2021-04-12T20:20:04 | Fix example link | diff --git a/src/lib.rs b/src/lib.rs
index 4e1db2b..490d387 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -325,7 +325,7 @@ macro_rules! _impl_automatic_derive {
///
/// * **try_from**: This generates a `fn try_from<'a>(owner: $Owner) -> Result<Self, <&'a $Owner as TryInto<$Dependent<'a>>>::Error>` constructor, which ... | 1 | 1 | 1 |
f8ad68c5bc14740999d66add06e32b22e26a06e7 | Lukas Bergdoll | 2020-12-21T20:11:29 | Release version 0.6.1 | diff --git a/Cargo.toml b/Cargo.toml
index b9fbd8f..3d92404 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.6.0"
+version = "0.6.1"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
e358383b673b8db70d41ef30b44b8fc1bd6c8537 | Lukas Bergdoll | 2020-12-20T17:07:18 | Publish version 0.6.0 | diff --git a/Cargo.toml b/Cargo.toml
index 574e8a7..b9fbd8f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.5.0"
+version = "0.6.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
78763b27f2afaf07c57aa0e9201812cc1ef416ee | Lukas Bergdoll | 2020-12-20T17:03:34 | Mention experimental state in cargo description | diff --git a/Cargo.toml b/Cargo.toml
index bf560ab..574e8a7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0"
-description = "Safe-to-use macro-free self-referential structs in stable Rust."
+description = "Experi... | 1 | 1 | 1 |
2014e4d1b4bd8f9229f01b4bb82a6ac2d13dc0e0 | Lukas Bergdoll | 2020-12-16T20:21:18 | Release version 0.5.0 | diff --git a/Cargo.toml b/Cargo.toml
index 1cdcbb0..bf560ab 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.4.0"
+version = "0.5.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
f7a8d1d205c54d041aa3b8405d31e1e46bc8c9a0 | Lukas Bergdoll | 2020-12-16T18:23:31 | Publish version 0.4.0 | diff --git a/Cargo.toml b/Cargo.toml
index 04bec48..1cdcbb0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
2c61b8d71361af3a7bdeba6b953f5dc7cbfcca0a | Lukas Bergdoll | 2020-12-15T16:45:06 | Publish version 0.3.0 | diff --git a/Cargo.toml b/Cargo.toml
index c4074b0..04bec48 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.2.0"
+version = "0.3.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
9a1030369dbcee5fc4afb4c0b3ab1e9b8de9f70c | Lukas Bergdoll | 2020-12-15T16:41:00 | Disable trybuild test on windows | diff --git a/tests/unsync.rs b/tests/unsync.rs
index 7a1311b..1122a8a 100644
--- a/tests/unsync.rs
+++ b/tests/unsync.rs
@@ -130,7 +130,10 @@ fn custom_drop() {
}
#[test]
+// Not supported by miri isolation.
#[cfg_attr(miri, ignore)]
+// Closure paths slashes show up as diff error on Windows.
+#[cfg(not(target_os ... | 1 | 3 | 0 |
f12956f16498e98c51e556db1e38f05cbe21071e | Lukas Bergdoll | 2020-12-14T20:26:51 | Publish version 0.2.0 | diff --git a/Cargo.toml b/Cargo.toml
index f91dd7e..5877f12 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "once_self_cell"
-version = "0.1.0"
+version = "0.2.0"
authors = ["Lukas Bergdoll <lukas.bergdoll@gmail.com>"]
edition = "2018"
license = "Apache-2.0" | 1 | 1 | 1 |
64e9ea499971ed661cd5977efa386d49447386ca | Lukas Bergdoll | 2020-12-14T20:25:46 | Drop dependent before owner | diff --git a/src/once_self_cell.rs b/src/once_self_cell.rs
index 08adb17..2c9ce71 100644
--- a/src/once_self_cell.rs
+++ b/src/once_self_cell.rs
@@ -115,14 +115,16 @@ where
// After drop is run, Rust will recursively try to drop all of the fields of self.
// So it will automatically clean up the OnceC... | 2 | 29 | 3 |
b39a424da2ad8bbbda1f93a0d8ff274b8b6ebfbe | Lukas Bergdoll | 2020-12-11T15:57:05 | Cleanup trait impls | diff --git a/src/once_self_cell.rs b/src/once_self_cell.rs
index f034cd7..96de01a 100644
--- a/src/once_self_cell.rs
+++ b/src/once_self_cell.rs
@@ -1,4 +1,5 @@
use core::fmt::{Debug, Error, Formatter};
+use core::hash::{Hash, Hasher};
use core::mem::transmute;
use crate::OnceCellCompatible;
@@ -7,10 +8,7 @@ use c... | 2 | 34 | 19 |
a9b80562a9af218d00f0e487483186a93fd139ee | Tony Arcieri | 2026-04-14T14:47:04 | Cargo.lock: bump deps (#1299) | diff --git a/Cargo.lock b/Cargo.lock
index b7b8770..d0eb3f0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,13 +4,13 @@ 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... | 1 | 71 | 86 |
66473ecba8634591ccd58efbca0c4c9c7489c8a6 | Tony Arcieri | 2026-04-06T20:16:17 | xmss: bump format dependencies (#1290)
Bumps the following dependencies:
- `const-oid` v0.10
- `der` v0.8
- `pkcs8` v0.11.0-rc.11
- `spki` v0.8 | diff --git a/Cargo.lock b/Cargo.lock
index 33f124d..9d84275 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -254,12 +254,6 @@ dependencies = [
"thiserror",
]
-[[package]]
-name = "const-oid"
-version = "0.9.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2459377285ad874054d797f3ccebf... | 4 | 54 | 75 |
d011b9a356ac06d90020eee31c77b31db7f4a78e | Arthur Gautier | 2026-04-03T22:58:36 | ml-dsa: make PartialEq for ExpandedSigningKey constant time (#1286) | diff --git a/Cargo.lock b/Cargo.lock
index 9e4e9cd..33f124d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -715,6 +715,7 @@ version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3944cf8cf766b40e2a1a333ee5e9b563f854d5fa49d6a8ca2764e97c6eddb214"
dependencies = [
+ "ctutils",
"s... | 3 | 40 | 5 |
fc8907dde0e06e1efcf36f1cbd76179626510e83 | Tony Arcieri | 2026-04-03T14:34:07 | Bump `sha3` dependency to v0.11 (#1283)
Release PR: RustCrypto/hashes#816 | diff --git a/Cargo.lock b/Cargo.lock
index 7ac2908..b4bd092 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1365,9 +1365,9 @@ dependencies = [
[[package]]
name = "sha3"
-version = "0.11.0-rc.9"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b233a7d59d7bfc027208506a3... | 4 | 6 | 6 |
76822a8af066b81b0380513a4778a2f916fd7ed4 | Tony Arcieri | 2026-04-03T04:42:04 | bign-genk v0.1.0-pre.0 (#1282) | diff --git a/Cargo.lock b/Cargo.lock
index fb0d285..7ac2908 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -94,7 +94,7 @@ dependencies = [
[[package]]
name = "bign-genk"
-version = "0.5.0-rc.3"
+version = "0.1.0-pre.0"
dependencies = [
"belt-block 0.2.0-rc.3",
"belt-hash",
@@ -1484,7 +1484,7 @@ source = "registry... | 2 | 3 | 3 |
73e7128459f32a100de498d68d19f4cd5239ffa2 | Arthur Gautier | 2026-04-03T04:17:29 | ml-dsa: missing derives on SigningKey (#1281)
When ExpandedSigningKey was split from SigningKey in #1261, the derive
for Clone and PartialEq got removed. | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index 69c714d..8f55371 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -187,6 +187,7 @@ impl AsMut<Shake256> for MuBuilder {
}
/// An ML-DSA signing key initialized through a seed
+#[derive(Clone, PartialEq)]
pub struct SigningKey<P: MlDsaParams> {
... | 1 | 1 | 0 |
d73c1e2ecb31764b8be36b0bc5e519ba6f354965 | Tony Arcieri | 2026-03-29T23:48:15 | Bump `hmac` to v0.13 (#1274)
Release PR: RustCrypto/MACs#263 | diff --git a/Cargo.lock b/Cargo.lock
index f5fd513..360fe6f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -89,7 +89,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c56883a45783acff1ccdf0903f38b8688363e633d3c9a199c2063f0cc946832b"
dependencies = [
"belt-block 0.1.2",
- "digest 0.11.1"... | 3 | 6 | 6 |
f1c060a22558d1e3574ba222c585c4942b35032f | GarmashAlex | 2026-03-27T17:18:28 | fix(ecdsa): correct error message for invalid vector.k in dev macro (#1220) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index e2f0c34..b884534 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -72,7 +72,7 @@ macro_rules! new_signing_test {
fn ecdsa_signing() {
for vector in $vectors {
let d = decode_scalar(vector.d).expect("invalid vector.d");
... | 1 | 1 | 1 |
e1acc72d8b0db0962140c3ac5759432a0be520f5 | sashass1315 | 2026-03-27T17:18:05 | fix(slh-dsa): use checked_shl for idx_tree range in tests (#1224) | diff --git a/slh-dsa/src/fors.rs b/slh-dsa/src/fors.rs
index 0a65eb6..3085c4d 100644
--- a/slh-dsa/src/fors.rs
+++ b/slh-dsa/src/fors.rs
@@ -486,7 +486,8 @@ mod tests {
let idx_tree = rng.random_range(
0..=(1u64
- .wrapping_shl(Fors::H::U32 - Fors::HPrime::U32)
+ .c... | 2 | 8 | 4 |
ecfc95ebc41cefeb84f0f1fc8f877510206eed80 | Tony Arcieri | 2026-03-26T20:38:29 | ml-dsa v0.1.0-rc.8 (#1272) | diff --git a/Cargo.lock b/Cargo.lock
index b22c2d5..2d57187 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -809,7 +809,7 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
[[package]]
name = "ml-dsa"
-version = "0.1.0-rc.7"
+version = "0.1.0-rc.8"
dependencies = [
"const-oid 0.10.2",
... | 2 | 3 | 3 |
4deba8ec98e78b9fbd73854ad8dbd8523287d5cf | Tony Arcieri | 2026-03-26T19:36:24 | ml-dsa: bump `module-lattice` to v0.2 (#1271)
Release PR: RustCrypto/KEMs#279 | diff --git a/Cargo.lock b/Cargo.lock
index 0d2a027..b22c2d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -831,9 +831,9 @@ dependencies = [
[[package]]
name = "module-lattice"
-version = "0.2.0-rc.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "217a321cd6f89254aa8c... | 2 | 3 | 3 |
7b0ffd01c15572f06d4d3ebf8133c8d451f2b54a | Scott Arciszewski | 2026-03-26T19:19:57 | ml-dsa: use `ctutils` for constant-time selection; avoid branches (#1245) | diff --git a/Cargo.lock b/Cargo.lock
index 49682ad..0d2a027 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -813,6 +813,7 @@ version = "0.1.0-rc.7"
dependencies = [
"const-oid 0.10.2",
"criterion",
+ "ctutils",
"getrandom 0.4.2",
"hex",
"hex-literal",
diff --git a/ml-dsa/Cargo.toml b/ml-dsa/Cargo.toml
index 55ca... | 4 | 43 | 36 |
cdc95068ae3c9c90d259ead50e3d0569df68ddad | Tony Arcieri | 2026-03-26T19:17:39 | Bump `pkcs8` to v0.11.0-rc.11 (#1270) | diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml
index e2b246b..bd5c78d 100644
--- a/ed25519/Cargo.toml
+++ b/ed25519/Cargo.toml
@@ -21,7 +21,7 @@ rust-version = "1.85"
signature = { version = "3.0.0-rc.10", default-features = false }
# optional dependencies
-pkcs8 = { version = "0.11.0-rc.10", optional = true ... | 4 | 6 | 6 |
4288c5932c6d54f4052503cd0c5bc86a1b834d6c | Tony Arcieri | 2026-03-26T15:38:02 | ml-dsa: bump `module-lattice` to v0.2.0-rc.0 (#1269)
The main changes don't impact this crate (migrating from `subtle` to
`ctutils`, which is used by `ml-kem`) | diff --git a/Cargo.lock b/Cargo.lock
index 0bff711..49682ad 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -830,9 +830,9 @@ dependencies = [
[[package]]
name = "module-lattice"
-version = "0.1.0"
+version = "0.2.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dfecc750073acc09af2... | 2 | 3 | 3 |
c5989c900efbd21056f8409ed0e9568eba8c4e8b | Arthur Gautier | 2026-03-25T19:32:06 | ml-dsa: lower stack size of KeyGen::from_seed by up to 207kb (#1261)
This reworks the API to make KeyGen::from_seed return a
`SeededSigningKey` instead of a `KeyPair`.
The `SeededSigningKey` effectively replaces the `KeyPair`, and instead
of eagerly generating the VerifyingKey (implementing
`signature::KeypairRef`), i... | diff --git a/ml-dsa/benches/ml_dsa.rs b/ml-dsa/benches/ml_dsa.rs
index 0a362e1..9babe0b 100644
--- a/ml-dsa/benches/ml_dsa.rs
+++ b/ml-dsa/benches/ml_dsa.rs
@@ -1,7 +1,9 @@
use criterion::{Criterion, criterion_group, criterion_main};
use getrandom::SysRng;
use hybrid_array::{Array, ArraySize};
-use ml_dsa::{B32, Key... | 8 | 134 | 139 |
abb0c54f39fd0eea38ba99a019dd661d6ebbf2ad | Tony Arcieri | 2026-03-25T18:44:11 | Bump `sha2` dependency to v0.11 (#1267)
Release PR: RustCrypto/hashes#806 | diff --git a/Cargo.lock b/Cargo.lock
index d1eb1d2..9c24728 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -94,15 +94,6 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
-[[package]]
-name = "block-buffer"... | 7 | 40 | 115 |
71b115262511537572f1ae02d56c21aa80525e8b | philomathic_life | 2026-03-25T17:26:56 | ml-dsa: re-export `pkcs8` (#1265)
Re-exports traits/types from the `pkcs8` crate under `ml_dsa::pkcs8` | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index 394a449..078d119 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -42,7 +42,7 @@ mod encode;
mod hint;
mod ntt;
mod param;
-mod pkcs8;
+pub mod pkcs8;
mod sampling;
pub use crate::param::{EncodedSignature, EncodedVerifyingKey, ExpandedSigningKey, ... | 2 | 5 | 9 |
789a601ebe4e4e0f43db6256350c247807acda9f | Tony Arcieri | 2026-03-20T17:08:10 | Cargo.lock: bump dependencies (#1260) | diff --git a/Cargo.lock b/Cargo.lock
index 02557a7..32c34f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,9 +30,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstyle"
-version = "1.0.13"
+version = "1.0.14"
source = "registry+https://github.com/rust-lang/c... | 1 | 69 | 62 |
b033cce1d7084788232318be16c861444c67cff7 | Artyom Pavlov | 2026-03-20T16:39:44 | ecdsa: remove unnecessary check in `FromStr` impl (#1255) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index abd529a..2d0c024 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -437,15 +437,6 @@ where
return Err(Error::new());
}
- // This check is mainly to ensure `hex.split_at` below won't panic
- if !hex
- .as_bytes(... | 1 | 0 | 9 |
d6e621b86b3d7621afd96d3e651e721ab343b7ae | Arthur Gautier | 2026-03-20T15:32:56 | ml-dsa: lower stack usage of KeyPair::from_seed by up to 112kb (#1259)
When using the KeyGen::from_seed is used, the A Matrix is
computed (using `expand_a`).
By design, the matrix is kept on the stack, and two copies end up being
held (One in the `SigningKey` and another one in the `VerifyingKey`).
That matrix takes ... | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index 71c5adc..394a449 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -310,9 +310,8 @@ impl<P: MlDsaParams> SigningKey<P> {
s1: Vector<P::L>,
s2: Vector<P::K>,
t0: Vector<P::K>,
- A_hat: Option<NttMatrix<P::K, P::L>>,
+ ... | 1 | 26 | 11 |
d33ead087df37e9e33d1c010946ac2203b216bed | Tony Arcieri | 2026-03-09T16:13:53 | dsa: bump `crypto-bigint` to v0.7 final release (#1247)
Release PR: RustCrypto/crypto-bigint#1218 | diff --git a/Cargo.lock b/Cargo.lock
index c6fc237..5a3da38 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -334,9 +334,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.28"
+version = "0.7.0"
source = "registry+https://github.com... | 2 | 4 | 4 |
e9ae4e49a3eeb75a3ecc21227df6ef613c8bc382 | Tony Arcieri | 2026-03-03T18:07:40 | xmss v0.1.0-pre.0 (#1244) | diff --git a/Cargo.lock b/Cargo.lock
index 182f5fd..7fbccf5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1824,7 +1824,7 @@ dependencies = [
[[package]]
name = "xmss"
-version = "0.1.0-pre"
+version = "0.1.0-pre.0"
dependencies = [
"const-oid 0.9.6",
"der 0.7.10",
diff --git a/xmss/Cargo.toml b/xmss/Cargo.toml
... | 2 | 2 | 2 |
6ad289f648334f006b00268917829d1ed71682c1 | Tony Arcieri | 2026-03-02T15:51:30 | dsa v0.7.0-rc.14 (#1238) | diff --git a/Cargo.lock b/Cargo.lock
index 63fba44..52f8dd8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -383,7 +383,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-rc.13"
+version = "0.7.0-rc.14"
dependencies = [
"chacha20",
"crypto-bigint",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 8... | 2 | 2 | 2 |
8699f8f010ddb4eeb59d3d717c741bb64141022b | Tony Arcieri | 2026-03-02T15:39:12 | dsa+ecdsa: bump `digest` to v0.11 (#1237)
Release PR: RustCrypto/traits#2300 | diff --git a/Cargo.lock b/Cargo.lock
index d75d372..63fba44 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -87,9 +87,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 4 | 19 | 19 |
c7fab72db32858666bca8d460c85397b6843393b | Tony Arcieri | 2026-02-26T23:14:01 | dsa: bump `crypto-bigint` to v0.7.0-rc.28 (#1233)
Updates to use `ConcatenatingMul` | diff --git a/Cargo.lock b/Cargo.lock
index 399880a..d75d372 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -289,9 +289,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.27"
+version = "0.7.0-rc.28"
source = "registry+https://gith... | 4 | 7 | 7 |
b560da796ba523aa6660f03385b463c44966c654 | Tony Arcieri | 2026-02-26T15:49:04 | Bump `der` to v0.8 (#1232)
Release PR: RustCrypto/formats#2234 | diff --git a/Cargo.lock b/Cargo.lock
index c49a137..399880a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -347,9 +347,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.12"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c0182be35043efdd2df327a443bb6... | 3 | 5 | 5 |
b54e7ba925980a015583756881e2caf8d9465b3a | Tony Arcieri | 2026-02-13T00:55:54 | dsa: bump `crypto-bigint` to v0.7.0-rc.27 (#1222)
Also bumps `crypto-primes` to v0.7.0-pre.9 | diff --git a/Cargo.lock b/Cargo.lock
index c4a7f77..c49a137 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -289,9 +289,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.26"
+version = "0.7.0-rc.27"
source = "registry+https://gith... | 2 | 6 | 6 |
61d0fd34e8f371cc3d8761d13f1ca275d50c7965 | Tony Arcieri | 2026-02-12T00:12:46 | dsa v0.7.0-rc.13 (#1219) | diff --git a/Cargo.lock b/Cargo.lock
index 9dccb20..c4a7f77 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -347,9 +347,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.10"
+version = "0.8.0-rc.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02c1d73e9668ea6b6a28172a... | 2 | 11 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.