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
c41f350f277c9796129d20860c2b5c1f302c9ac0
Alex Crichton
2025-02-03T14:49:50
More fixing compile turns out I'm not on Windows at this time...
diff --git a/src/windows.rs b/src/windows.rs index 231f2af..05e939a 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -13,7 +13,7 @@ extern "system" { fn WaitForSingleObject(hHandle: HANDLE, dwMilliseconds: DWORD) -> DWORD; } -pub fn wait_timeout(child: &mut Child, mut dur: Duration) -> io::Result<Option<Exit...
1
1
1
2c54a4ffdedfbc7a6ee4fc23aa3430e811287590
Alex Crichton
2025-02-03T14:48:30
Fix compile
diff --git a/src/windows.rs b/src/windows.rs index 19676a5..231f2af 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -18,7 +18,7 @@ pub fn wait_timeout(child: &mut Child, mut dur: Duration) -> io::Result<Option<E loop { let elapsed = start.elapsed(); if elapsed >= dur { - break; + ...
1
1
1
c70bf6ae5d7ce479a61aaa2a5021ec4d4b43abf9
Alex Crichton
2025-02-03T14:46:30
Clean up Windows implementation slightly * Modernize fallible casts. * Add a loop which pumps until `dur` is drained.
diff --git a/src/windows.rs b/src/windows.rs index 6e607e1..19676a5 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -1,7 +1,7 @@ use std::io; use std::os::windows::prelude::*; use std::process::{Child, ExitStatus}; -use std::time::Duration; +use std::time::{Duration, Instant}; type DWORD = u32; type HANDLE =...
1
18
14
0e760ad28aac7063328c90c608f1c90a9009f0f7
Alex Crichton
2025-02-03T14:40:07
Modernize some code slightly in the unix backend
diff --git a/src/unix.rs b/src/unix.rs index 26872c7..4ac74a4 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -16,7 +16,6 @@ //! data out of the signal handler to the rest of the application. use libc::c_int; -use std::cmp; use std::collections::HashMap; use std::io::{self, Read, Write}; use std::mem; @@ -139,8 +1...
1
4
5
d340d9b2821688a321f73e0a784be49fca2f59e4
Alex Crichton
2025-02-03T14:34:37
Add in some doc links
diff --git a/src/lib.rs b/src/lib.rs index 0dc22fb..c1fdfbb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,9 +42,9 @@ mod imp; #[path = "windows.rs"] mod imp; -/// Extension methods for the standard `std::process::Child` type. +/// Extension methods for the standard [`std::process::Child`] type. pub trait ChildEx...
1
2
2
8dd22b7f9b5600d2fc2e76784383d3d701f10bc2
Alex Crichton
2025-02-03T14:34:20
Remove some lint directives Not sure why they're here and should no longer be necessary.
diff --git a/src/unix.rs b/src/unix.rs index ba36139..26872c7 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -15,8 +15,7 @@ //! to the async nature of SIGCHLD, we use the self-pipe trick to transmit //! data out of the signal handler to the rest of the application. -#![allow(bad_style)] - +use libc::c_int; use std:...
1
1
6
bf8e61e549b9b33b3029c17aa1281e16456e8610
Alex Crichton
2025-02-03T14:32:39
Modernize slightly and fix `smoke_reader` Wait for a print as otherwise spawning a process might take more than 100ms (was failing for me locally at least).
diff --git a/src/bin/reader.rs b/src/bin/reader.rs index 65fae8b..f4ef58c 100644 --- a/src/bin/reader.rs +++ b/src/bin/reader.rs @@ -1,7 +1,7 @@ use std::io::{stdin, Read}; -#[allow(unused_must_use)] fn main() { let mut buffer: [u8; 32] = Default::default(); - stdin().read(&mut buffer); + println!("about...
3
13
8
b732595a75b0d4b75feca60d7867307c0316f046
Alex Crichton
2025-02-03T14:28:43
Remove outdated `t!` macro Nowadays `.unwrap()` works just as well.
diff --git a/tests/smoke.rs b/tests/smoke.rs index a87dc61..60fe625 100644 --- a/tests/smoke.rs +++ b/tests/smoke.rs @@ -6,15 +6,6 @@ use std::time::{Duration, Instant}; use wait_timeout::ChildExt; -macro_rules! t { - ($e:expr) => { - match $e { - Ok(e) => e, - Err(e) => panic!("{} ...
1
17
23
452187cc3933173c68485efce10a285de4e323bb
Alex Crichton
2025-02-03T12:24:27
Specify `edition = '2021'`
diff --git a/Cargo.toml b/Cargo.toml index 483cac1..3db6cfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ A crate to wait on a child process with a timeout specified across Unix and Windows platforms. """ categories = ["os"] +edition = '2021' [badges] travis-ci = { repository = "alexcrichton/wait-ti...
1
1
0
bda62e3123f7d30362984673b6d8c3330aa4a7d6
Alex Crichton
2025-02-03T12:21:28
Bump to 0.2.1
diff --git a/Cargo.toml b/Cargo.toml index 04af01c..483cac1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.2.0" +version = "0.2.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
c45efd70f8d556d161c67d13f6cb2ac98d5c92be
David Lattimore
2025-02-01T23:51:18
Initialize `STATE` before registering signal handler The signal handler, when it runs, assumes that `STATE` has already been initialized. Fixes #36
diff --git a/src/unix.rs b/src/unix.rs index 857fbc5..ba36139 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -56,7 +56,7 @@ impl State { read.set_nonblocking(true).unwrap(); write.set_nonblocking(true).unwrap(); - let mut state = Box::new(State { + let state = Box::new(S...
1
3
3
a3616a061efee37dcd92c44010a59a11c000e0fc
Alex Crichton
2021-06-17T14:35:03
Run `cargo fmt`
diff --git a/src/bin/reader.rs b/src/bin/reader.rs index 94b017e..65fae8b 100644 --- a/src/bin/reader.rs +++ b/src/bin/reader.rs @@ -1,4 +1,4 @@ -use std::io::{Read, stdin}; +use std::io::{stdin, Read}; #[allow(unused_must_use)] fn main() { diff --git a/src/lib.rs b/src/lib.rs index 7c19bf3..fb9c941 100644 --- a/sr...
5
34
40
5e20b248330072e49694ee68ff10b502c3274c10
Alexander Batischev
2021-06-16T19:59:23
Revert "Do not manually remove the child from the map" This reverts commit 2291e8ab6881d551464cc4dfe0e3d62e3588ff33. That commit doesn't compile, and it can't be made correct because we have to return the child's status — we can't simply let the map entry drop. Thanks a ton to @mathstuf for spotting this, and my apo...
diff --git a/src/unix.rs b/src/unix.rs index 7699010..25a21be 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -193,8 +193,9 @@ impl State { } } - // drop impl on Remove will remove this child from the map - + let mut map = self.map.lock().unwrap(); + let (_write, ret) = map.re...
1
3
2
2291e8ab6881d551464cc4dfe0e3d62e3588ff33
Alexander Batischev
2021-05-01T16:52:32
Do not manually remove the child from the map
diff --git a/src/unix.rs b/src/unix.rs index 25a21be..7699010 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -193,9 +193,8 @@ impl State { } } - let mut map = self.map.lock().unwrap(); - let (_write, ret) = map.remove(&(remove.child as *mut Child)).unwrap(); - drop(map); + ...
1
2
3
d8c458af59b10ccbe838a5ff777d53667f4d84d9
Alexander Batischev
2021-05-01T16:48:20
Remove workaround for older libc The PR https://github.com/rust-lang/libc/pull/511 was merged and released as part of libc 0.2.56 on May 31, 2019, so the workaround can be removed now.
diff --git a/Cargo.toml b/Cargo.toml index 88c5f00..04af01c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,4 @@ travis-ci = { repository = "alexcrichton/wait-timeout" } appveyor = { repository = "alexcrichton/wait-timeout" } [target.'cfg(unix)'.dependencies] -libc = "0.2" +libc = "0.2.56" diff --git a/src/un...
2
3
28
d2077bc99ef041764be71460998c182e622d98fc
Alexander Batischev
2021-05-01T16:43:49
Replace deprecated ONCE_INIT with Once::new() The constant was deprecated in 1.38.0. The method was present since 1.2.0, and the CI for wait-timeout tests 1.21.0+, so this change doesn't impact compatibility at all.
diff --git a/src/unix.rs b/src/unix.rs index 5358553..26bfcf9 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -24,12 +24,12 @@ use std::os::unix::net::UnixStream; use std::mem; use std::os::unix::prelude::*; use std::process::{Child, ExitStatus}; -use std::sync::{Once, ONCE_INIT, Mutex}; +use std::sync::{Once, Mutex};...
1
2
2
4d31e9073aa961148265324d270f890d8e22b82b
Alex Crichton
2018-11-23T13:55:18
Bump to 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index 1c1eb94..88c5f00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.5" +version = "0.2.0" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
037e00745508a3f8eff06669a2c907bd752ed479
Draphar
2019-04-22T13:27:47
Fixed type error
diff --git a/src/windows.rs b/src/windows.rs index 162aec7..34b618e 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -16,7 +16,7 @@ extern "system" { pub fn wait_timeout(child: &mut Child, dur: Duration) -> io::Result<Option<ExitStatus>> { let ms = dur.as_millis(); - let ms = if ms >...
1
1
1
54efde00233265fc93823608ccaacb772dfc2383
Draphar
2019-04-22T13:04:49
Remove manual conversion
diff --git a/src/windows.rs b/src/windows.rs index a3aa104..162aec7 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -15,9 +15,7 @@ extern "system" { pub fn wait_timeout(child: &mut Child, dur: Duration) -> io::Result<Option<ExitStatus>> { - let ms = dur.as_secs().checked_mul(1000).and_...
1
1
3
b2b81673beaa6154538b6e238a204ea924d22e70
Alex Crichton
2018-11-23T13:54:34
Switch to `poll` from `select` This'll help handle high-number fds and is overally easier to read/write!
diff --git a/src/unix.rs b/src/unix.rs index af55d57..5358553 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -25,7 +25,7 @@ use std::mem; use std::os::unix::prelude::*; use std::process::{Child, ExitStatus}; use std::sync::{Once, ONCE_INIT, Mutex}; -use std::time::Duration; +use std::time::{Duration, Instant}; use...
1
31
28
5b5917f885cb5c940dee47d4e1c22f92c9a7e40c
Alex Crichton
2018-11-23T13:39:48
Remove warning about double-waiting The standard library now has `try_wait`, so this concern is now moot!
diff --git a/src/lib.rs b/src/lib.rs index 8db6fb4..7c19bf3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,20 +57,6 @@ pub trait ChildExt { /// If `Ok(None)` is returned then the timeout period elapsed without the /// child exiting, and if `Ok(Some(..))` is returned then the child exited /// with the sp...
2
26
52
12c9b66c4a683ff1d266090460a50158fd6ae79f
Alex Crichton
2018-11-23T13:30:09
Use libstd's `try_wait` on Windows
diff --git a/src/windows.rs b/src/windows.rs index 352af2a..a3aa104 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -1,21 +1,16 @@ use std::io; use std::os::windows::prelude::*; -use std::os::windows::process::ExitStatusExt; use std::process::{Child, ExitStatus}; use std::time::Duration; type DWORD = u32; t...
1
1
11
beb4223445207226999f8ef6f2f89cb7aa6070bf
Alex Crichton
2018-11-23T13:25:46
Remove local `ExitStatus` type The standard library supports foreign construction now! Closes #17
diff --git a/src/lib.rs b/src/lib.rs index b35ee01..8db6fb4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,18 +34,10 @@ #[cfg(unix)] extern crate libc; -use std::fmt; use std::io; -use std::process::Child; +use std::process::{Child, ExitStatus}; use std::time::Duration; -/// Exit status from a child process. -...
3
7
91
3c5709ed064c19d6531424a76d28b93a3dfe1a43
Louis Person
2017-09-12T21:49:09
Add a test to check that stdin is closed before waiting
diff --git a/src/bin/reader.rs b/src/bin/reader.rs new file mode 100644 index 0000000..94b017e --- /dev/null +++ b/src/bin/reader.rs @@ -0,0 +1,7 @@ +use std::io::{Read, stdin}; + +#[allow(unused_must_use)] +fn main() { + let mut buffer: [u8; 32] = Default::default(); + stdin().read(&mut buffer); +} diff --git a/...
2
26
1
3b8f9a8f33eee47c793b451da2e03583dd6aba7a
Louis Person
2017-09-12T18:16:21
Doc comments
diff --git a/src/lib.rs b/src/lib.rs index a69aa14..b35ee01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ //! on a child process with a timeout specified. On Windows the implementation //! is fairly trivial as it's just a call to `WaitForSingleObject` with a //! timeout argument, but on Unix the implement...
1
2
2
00f32afbf5f501221d03f8a4e4ef64ffca34c004
Louis Person
2017-09-12T15:12:23
Drop stdin before waiting for the child process
diff --git a/src/lib.rs b/src/lib.rs index b13edec..a69aa14 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,6 +84,7 @@ pub trait ChildExt { impl ChildExt for Child { fn wait_timeout(&mut self, dur: Duration) -> io::Result<Option<ExitStatus>> { + drop(self.stdin.take()); imp::wait_timeout(self, d...
1
1
0
d2e459c36f7dc645775e92ec0dab5f0492a733f2
Alex Crichton
2017-09-02T15:46:52
Move libc to a unix dep
diff --git a/Cargo.toml b/Cargo.toml index 8169179..1c1eb94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,5 +17,5 @@ categories = ["os"] travis-ci = { repository = "alexcrichton/wait-timeout" } appveyor = { repository = "alexcrichton/wait-timeout" } -[dependencies] +[target.'cfg(unix)'.dependencies] libc = "0.2"...
2
2
1
ee1887aa1405fb6935a6a7cc3d7101d4c0c59c15
Ben Boeckel
2017-04-28T16:26:42
doc: mention that threaded environments are still safe Fixes #11.
diff --git a/src/lib.rs b/src/lib.rs index 3574417..e7657a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,8 +5,8 @@ //! is fairly trivial as it's just a call to `WaitForSingleObject` with a //! timeout argument, but on Unix the implementation is much more involved. The //! current implementation registeres a `SIGCH...
1
2
2
80468ab84bb1873dcaa2a1248bde8f75fe221a01
Alex Crichton
2017-03-07T14:57:25
Bump to 0.1.5
diff --git a/Cargo.toml b/Cargo.toml index 1b9edbf..8169179 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.4" +version = "0.1.5" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
3fdfd669e29ae0d3493170af6f75daff01c51a5b
Marco A L Barbosa
2017-03-07T14:35:42
Add workaround to compile for android aarch64
diff --git a/src/unix.rs b/src/unix.rs index 856ed5a..895abd4 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -52,6 +52,17 @@ pub fn wait_timeout(child: &mut Child, dur: Duration) } } +// Do $value as type_of($target) +macro_rules! _as { + ($value:expr, $target:expr) => ( + { + let mut x = $t...
1
18
12
7cd15cd6d4e5aeb5c0c300f410375f1eb81847dd
Alex Crichton
2017-02-10T22:24:32
Update categories
diff --git a/Cargo.toml b/Cargo.toml index 2df578a..1b9edbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ description = """ A crate to wait on a child process with a timeout specified across Unix and Windows platforms. """ +categories = ["os"] [badges] travis-ci = { repository = "alexcrichton/wait-t...
1
1
0
c2eb32dc1721a1100c4c728394c51114da34c543
Alex Crichton
2017-02-10T22:21:02
Bump to 0.1.4
diff --git a/Cargo.toml b/Cargo.toml index 520884a..17be041 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.3" +version = "0.1.4" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
7c740ad8a2e034b9d78c30538c589b5ffede2697
Alex Crichton
2017-02-10T21:36:00
Fix compile on stable
diff --git a/src/unix.rs b/src/unix.rs index 41747fe..856ed5a 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -53,6 +53,7 @@ pub fn wait_timeout(child: &mut Child, dur: Duration) } impl State { + #[allow(unused_assignments)] fn init() { unsafe { // Create our "self pipe" and then set bot...
1
1
1
f6b733cdb9885ef175ceaca9f6134824ac8d5a31
Marco A L Barbosa
2017-02-10T18:06:50
Add a workaround to compile for android with libc 0.2.*
diff --git a/src/unix.rs b/src/unix.rs index 2adbb63..41747fe 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -69,9 +69,29 @@ impl State { // Register our sigchld handler let mut new: libc::sigaction = mem::zeroed(); new.sa_sigaction = sigchld_handler as usize; - new.sa_f...
1
23
3
f17be49ee00834a2b9975b11359438f8a5f71f48
Alex Crichton
2016-11-18T16:04:57
Fix tests on nightly
diff --git a/tests/smoke.rs b/tests/smoke.rs index 281fdf6..3234fe0 100644 --- a/tests/smoke.rs +++ b/tests/smoke.rs @@ -16,6 +16,9 @@ macro_rules! t { fn sleeper(ms: u32) -> Child { let mut me = env::current_exe().unwrap(); me.pop(); + if me.ends_with("deps") { + me.pop(); + } me.push("sle...
1
6
0
cccba8283b223b7a6c86355daaf99cae5560626f
Alex Crichton
2016-09-06T22:53:56
Call the previous signal handler if one is available
diff --git a/src/unix.rs b/src/unix.rs index 72bf1e5..2adbb63 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -69,7 +69,9 @@ impl State { // Register our sigchld handler let mut new: libc::sigaction = mem::zeroed(); new.sa_sigaction = sigchld_handler as usize; - new.sa_fl...
1
25
4
d5baee727255db31cd58a06ad628fcdfaac0b9f6
Corey Farwell
2016-08-02T13:07:50
Rewrite example so as not to use deprecated API.
diff --git a/src/lib.rs b/src/lib.rs index 8b9c3fb..86d9318 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,10 +13,12 @@ //! ```no_run //! use std::process::Command; //! use wait_timeout::ChildExt; +//! use std::time::Duration; //! //! let mut child = Command::new("foo").spawn().unwrap(); //! -//! let status_code...
1
3
1
e3cac8ff0819cf494f969012f4f518808ba1440a
Demur Rumed
2016-05-19T00:49:01
Replace time with std::time
diff --git a/Cargo.toml b/Cargo.toml index 656e41f..520884a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,3 @@ Windows platforms. [dependencies] libc = "0.2" - -[dev-dependencies] -time = "0.1" diff --git a/tests/smoke.rs b/tests/smoke.rs index 9ac4f95..281fdf6 100644 --- a/tests/smoke.rs +++ b/tests/smoke....
2
5
10
23b9d5878a68f90bd4785ae767eb0f8341741360
Alex Crichton
2016-02-21T17:34:46
Bump to 0.1.3
diff --git a/Cargo.toml b/Cargo.toml index ac48c2e..656e41f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.2" +version = "0.1.3" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
7a9570e4db151d34aa06177d16ae8d63bf3777df
Alex Crichton
2016-02-21T17:34:23
Drop time and cfg_if deps cfg_if isn't needed and time brings in winapi which takes too long
diff --git a/Cargo.toml b/Cargo.toml index dafeb03..ac48c2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,5 +14,6 @@ Windows platforms. [dependencies] libc = "0.2" -cfg-if = "0.1" + +[dev-dependencies] time = "0.1" diff --git a/src/lib.rs b/src/lib.rs index cda8d25..8b9c3fb 100644 --- a/src/lib.rs +++ b/src/lib....
3
12
6
14a97628a847fcbda947303849f00a92d09bfcb0
Alex Crichton
2016-02-21T17:26:21
Drop dependency on winapi Just takes too long to compile
diff --git a/Cargo.toml b/Cargo.toml index b81c795..dafeb03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,3 @@ Windows platforms. libc = "0.2" cfg-if = "0.1" time = "0.1" -winapi = "0.2" -kernel32-sys = "0.1" diff --git a/src/lib.rs b/src/lib.rs index 106d9fc..cda8d25 100644 --- a/src/lib.rs +++ b/src/lib.rs...
3
15
8
b35016012432ae717a6aa4925aa5f2e5a383af58
Alex Crichton
2016-01-31T04:53:11
Bump to 0.1.2
diff --git a/Cargo.toml b/Cargo.toml index ec073b4..b81c795 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.1" +version = "0.1.2" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
51b150e42d6cfa886701f08ca404b7080a0fa612
Alex Crichton
2016-01-31T04:52:38
Divide nanos on Windows to get the right value
diff --git a/src/windows.rs b/src/windows.rs index b05c8a0..609af25 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -12,7 +12,7 @@ pub struct ExitStatus(DWORD); pub fn wait_timeout(child: &mut Child, dur: Duration) -> io::Result<Option<ExitStatus>> { let ms = dur.as_secs().checked_mul(...
1
1
1
7f0e763862e745688d175eac2db3e56c8ee61cef
Alex Crichton
2016-01-31T04:51:53
Bump to 0.1.1
diff --git a/Cargo.toml b/Cargo.toml index 7f660dc..ec073b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait-timeout" -version = "0.1.0" +version = "0.1.1" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT/Apache-2.0" readme = "README.md"
1
1
1
1a0b24ea50e8fdd114585b0181d2b95f00abb9f3
Alex Crichton
2016-01-31T04:50:16
Add wait_timeout, taking a Duration Now that Duration is stable, this is possible! Closes #2
diff --git a/src/bin/sleep.rs b/src/bin/sleep.rs index 7bfc053..48dabdc 100644 --- a/src/bin/sleep.rs +++ b/src/bin/sleep.rs @@ -1,4 +1,4 @@ fn main() { let amt = std::env::args().nth(1).unwrap().parse().unwrap(); - std::thread::sleep_ms(amt); + std::thread::sleep(std::time::Duration::from_millis(amt)); } ...
4
54
37
6a9007b9b27cdf0e7120d511e8cc63a82ed800df
Alex Crichton
2015-11-03T21:41:53
Bump dep on libc
diff --git a/Cargo.toml b/Cargo.toml index ca67ada..7f660dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ Windows platforms. """ [dependencies] -libc = "0.1" +libc = "0.2" cfg-if = "0.1" time = "0.1" winapi = "0.2" diff --git a/src/lib.rs b/src/lib.rs index c349fab..8e5f42e 100644 --- a/src/lib.rs +...
5
28
172
b306df9588e0ac689d5ce3588a7e8876228e6e32
Alex Crichton
2015-10-28T21:42:16
Remove now-unused constant
diff --git a/src/windows.rs b/src/windows.rs index 91c9112..a1e766f 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -5,8 +5,6 @@ use std::io; use kernel32::*; use winapi::*; -const STILL_ACTIVE: DWORD = 259; - #[derive(Eq, PartialEq, Copy, Clone, Debug)] pub struct ExitStatus(DWORD);
1
0
2
cc91c7a16f43a0415f579afb5ce94e2714e87b0d
Alex Crichton
2015-10-28T21:38:02
Don't check for STILL_ACTIVE on Windows As pointed out in #1 turns out this isn't reliable!
diff --git a/src/bin/exit.rs b/src/bin/exit.rs new file mode 100644 index 0000000..f33c49f --- /dev/null +++ b/src/bin/exit.rs @@ -0,0 +1,4 @@ +fn main() { + let code = std::env::args().nth(1).unwrap().parse().unwrap(); + std::process::exit(code); +} diff --git a/src/windows.rs b/src/windows.rs index 5a9e620..91c...
3
33
14
570fc0123f5c77b09c69da36cfa3af4f97f521cf
Alex Crichton
2015-10-06T15:31:00
Relax bounds a bit
diff --git a/tests/smoke.rs b/tests/smoke.rs index 1b5c862..01927e5 100644 --- a/tests/smoke.rs +++ b/tests/smoke.rs @@ -38,7 +38,7 @@ fn smoke_success() { let end = time::precise_time_s(); assert!(status.success()); - assert!(end - start < 0.100); + assert!(end - start < 0.500); } #[test]
1
1
1
9dbe023ddd985746da1e533ae75f1864a186fa21
Alex Crichton
2015-09-08T00:51:09
Docs later
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 9eb002e..d7afe9b 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -6,17 +6,14 @@ //! wait(), but the only real reasonable one for a multi-threaded program is //! to listen for SIGCHLD. //! -//! With this in mind, the waiting mechanism with a timeout barely us...
1
4
7
3208dbe58cd1c0474d1ad03f9fca617a917c055c
Alex Crichton
2015-09-08T00:48:53
Add some extra crate docs
diff --git a/src/lib.rs b/src/lib.rs index c0c3500..c349fab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,30 @@ //! A crate to wait on a child process with a particular timeout. //! //! This crate is an implementation for Unix and Windows of the ability to wait -//! on a child process with a timeout specified....
1
24
1
8fd95f004f8689bea7c67afd660d4e01631bbee6
Tony Arcieri
2026-04-14T14:40:24
Cargo.lock: bump dependencies (#1724)
diff --git a/Cargo.lock b/Cargo.lock index a93a4ca0..e1225411 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,12 +58,6 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" -[[package]] -name = "belt-block"...
1
65
71
bcb3ce93bece66d3f808a277e96337b25a72a19c
Tony Arcieri
2026-04-13T20:46:24
primeorder: use wNAF for `mul_vartime` when `alloc` is enabled (#1722) Wires up wNAF for the single-scalar/single-point use case. This results in a ~14% speedup on `p256` benchmarks: point operations/point-scalar mul (variable-time) time: [104.03 µs 104.22 µs 104.43 µs] change: [−14.852% −14.29...
diff --git a/primeorder/src/projective.rs b/primeorder/src/projective.rs index 70422e88..130346c0 100644 --- a/primeorder/src/projective.rs +++ b/primeorder/src/projective.rs @@ -123,8 +123,15 @@ where where Self: Double, { - // TODO(tarcieri): use wNAF for variable-time scalar multiplication ...
1
9
2
c63a52606184fd65e43b6e3694050d5ad8fba9c0
Tony Arcieri
2026-04-13T20:19:37
primeorder: get rid of `FieldBytes<C>: Copy` bounds (#1721) This viral bound came because `PrimeField::from_repr` expects a value rather than a reference, and previously it was using `Copy` to do the conversion. However, `Clone` is available unconditionally avoiding the need for such bounds. Ultimately `PrimeField::f...
diff --git a/primeorder/src/affine.rs b/primeorder/src/affine.rs index daa53d08..a94d4ad4 100644 --- a/primeorder/src/affine.rs +++ b/primeorder/src/affine.rs @@ -81,10 +81,7 @@ where /// TODO(tarcieri): find some way to avoid this? pub(crate) fn try_from_rng<R: TryRng + ?Sized>( rng: &mut R, - ) ...
2
9
42
b5c1cacdab8cd6ef4077556e84622d51e4f4645a
Tony Arcieri
2026-04-12T01:03:05
k256+p256: add initial `mul_vartime` benchmarks (#1717) Right now it's still using the constant-time implementation, but this lets us see if wNAF is an improvement. After trying it on `k256` with a transient context for a single point/scalar multiplication, it was not, but more investigation is needed.
diff --git a/k256/benches/scalar.rs b/k256/benches/scalar.rs index 6db9b2b2..b2e40d09 100644 --- a/k256/benches/scalar.rs +++ b/k256/benches/scalar.rs @@ -6,7 +6,11 @@ use criterion::{ use hex_literal::hex; use k256::{ ProjectivePoint, Scalar, - elliptic_curve::{Group, group::ff::PrimeField, ops::LinearCombin...
3
28
4
a0acdebe1ebcb9d23948643fd8712690108a0b6e
Tony Arcieri
2026-04-10T19:30:32
Initial `MulVartime` impls (#1715) Companion PR to RustCrypto/traits#2379 This adds initial impls of the `MulVartime` trait which are required by the bounds added in the PR above. These don't yet use variable-time implementations as noted in the TODOs, however the idea is we can opportunistically plug in wNAF when t...
diff --git a/Cargo.lock b/Cargo.lock index 6aa99ef8..a93a4ca0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,8 +508,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "elliptic-curve" version = "0.14.0-rc.30" -source = "registry+https://github.com/rust-lang/crates...
12
245
120
c8fa2607e52977fa90e9662f7bfa4a0b4bb52fa9
Tony Arcieri
2026-04-08T23:06:15
Preliminary wNAF support (#1714) RustCrypto/group#12 included a workaround that allows curves with a big endian `PrimeField::Repr` to be used for wNAF, by defining a separate `PrimeField::to_le_repr` method which is always guaranteed to be little endian. This may not be the permanent solution to this problem which get...
diff --git a/Cargo.lock b/Cargo.lock index ced2b26a..53351116 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" dependencies = [ "cfg-if", "cipher", - "cpufeatures 0.3.0", + "cpufeatures", "rand_core 0.10.0", ] @@ -309,15...
24
119
42
b557deedf3d701120b8e31f9917e4f1fd3b8b653
ANtutov
2026-04-08T22:55:45
p521: fix size of `CompressedPoint` (#1652)
diff --git a/p521/src/lib.rs b/p521/src/lib.rs index 0dde8b81..959d8d68 100644 --- a/p521/src/lib.rs +++ b/p521/src/lib.rs @@ -53,7 +53,7 @@ use elliptic_curve::{ FieldBytesEncoding, array::Array, bigint::{Odd, cpubits}, - consts::U66, + consts::{U66, U67}, }; cpubits! { @@ -106,7 +106,7 @@ imp...
1
18
2
50469e7b9bbe49c8abfd603030fd2806c4d2e058
Tony Arcieri
2026-04-03T23:47:49
Bump `sha2` dependency to v0.11 (#1712) Release PR: RustCrypto/hashes#806
diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml index 87b76c6a..5edf4575 100644 --- a/bp256/Cargo.toml +++ b/bp256/Cargo.toml @@ -20,7 +20,7 @@ elliptic-curve = { version = "0.14.0-rc.29", default-features = false, features ecdsa = { version = "0.17.0-rc.16", optional = true, default-features = false, features = ["de...
8
8
8
1fa7058202b2fbc290f306f407321d53c4d2ea18
Tony Arcieri
2026-04-03T21:19:35
bignp256: use `bign-genk` v0.1.0-pre.0 crate release (#1709) Release PR: RustCrypto/signatures#1282
diff --git a/Cargo.lock b/Cargo.lock index 94ac504f..ced2b26a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,8 +85,9 @@ dependencies = [ [[package]] name = "bign-genk" -version = "0.5.0-rc.3" -source = "git+https://github.com/makavity/signatures.git#d341f946ec8c85e13761094a4284e06386f3b43f" +version = "0.1.0-pre.0...
2
5
6
aeaa0ca404473250e90c4d5c35e04eb45e9034e8
Tony Arcieri
2026-04-03T18:42:34
Bump `sha3` to v0.11 (#1711) Release PR: RustCrypto/hashes#816
diff --git a/Cargo.lock b/Cargo.lock index d07b7616..94ac504f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1391,9 +1391,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 = "0b233a7d59d7bfc027208506...
4
5
5
88d49d8b267d5b6867aab7449e14a894146064d9
Jacob Immich
2026-04-01T01:46:53
primeorder: avoid field inversion in ProjectivePoint equality (~70x faster) (#1706)
diff --git a/p256/Cargo.toml b/p256/Cargo.toml index 952a6e9c..6b40706b 100644 --- a/p256/Cargo.toml +++ b/p256/Cargo.toml @@ -72,6 +72,10 @@ name = "field" harness = false required-features = ["expose-field"] +[[bench]] +name = "point" +harness = false + [[bench]] name = "scalar" harness = false diff --git a/p2...
3
26
1
6acd55109ea155454558f675551b675c72ae846e
42Pupusas
2026-03-31T00:00:23
k256: optimize Schnorr keygen and signing (~3x faster) (#1702) Eliminate redundant generator multiplications in Schnorr signing and key generation. Previously, `From<NonZeroScalar> for SigningKey` used a naive `GENERATOR * scalar` (~54µs) plus a second precomputed `mul_by_generator` (~25µs) via `PublicKey::from_secret...
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 0a5431b8..2bf69c4b 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -82,5 +82,10 @@ required-features = ["expose-field"] name = "scalar" harness = false +[[bench]] +name = "schnorr" +harness = false +required-features = ["schnorr"] + [package.metadata.docs....
3
73
14
e6a930a94858ae4ae3498ed10a5038beade3d9cb
Tony Arcieri
2026-03-24T17:57:56
Cargo.lock: bump `crypto-bigint` to v0.7.2 (#1697) This clears the security audit
diff --git a/Cargo.lock b/Cargo.lock index 12802df5..f6fe65d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -398,9 +398,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rus...
1
3
3
9fcd7c07245f575fffd267c11c0f6064952c7dac
MaxKingPor
2026-03-22T17:42:38
sm2: add `no_std` support (#1687)
diff --git a/sm2/Cargo.toml b/sm2/Cargo.toml index 97c8afe4..a1349b75 100644 --- a/sm2/Cargo.toml +++ b/sm2/Cargo.toml @@ -46,7 +46,7 @@ arithmetic = ["dep:primefield", "dep:primeorder", "elliptic-curve/arithmetic"] bits = ["arithmetic", "elliptic-curve/bits"] dsa = ["arithmetic", "dep:rfc6979", "dep:signature", "dep...
5
487
246
a554101a28bd4e7542f68ecf57c25c0f76e94824
Alexandr Kitaev
2026-03-22T17:29:40
bignp256: migrate to LittleEndian, according to specification (#1684)
diff --git a/Cargo.lock b/Cargo.lock index 9beab7a0..96bdc9a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -64,21 +64,42 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b" +[[package]] +name = "belt-block...
13
177
161
0732c4a02a5bd6732a605e15ea9805cf93e7a18a
Alexandr Kitaev
2026-03-20T17:01:17
`primefield`: fix little endian encoding support (#1685)
diff --git a/primefield/src/dev.rs b/primefield/src/dev.rs index f155b4cd..732cd36f 100644 --- a/primefield/src/dev.rs +++ b/primefield/src/dev.rs @@ -84,6 +84,7 @@ macro_rules! test_primefield { #[macro_export] macro_rules! test_primefield_constants { ($fe:tt, $uint:ident) => { + #[allow(unused_imports)]...
2
69
5
c7f38c1c11dc32387a0a72f3030d1a919458fe2e
Andrew Whitehead
2026-03-20T17:00:31
primefield: use optimized methods from ConstMontyForm (#1686) Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
diff --git a/primefield/src/monty.rs b/primefield/src/monty.rs index 4dad075a..12f8bd88 100644 --- a/primefield/src/monty.rs +++ b/primefield/src/monty.rs @@ -3,7 +3,7 @@ use crate::ByteOrder; use bigint::{ - ArrayEncoding, ByteArray, Invert, Limb, Reduce, Uint, Word, ctutils, + ArrayEncoding, ByteArray, Inve...
1
10
30
a4659b9428786349665ae1dae281d23f54e306a4
Tony Arcieri
2026-03-20T16:55:41
Cargo.lock: bump dependencies (#1693)
diff --git a/Cargo.lock b/Cargo.lock index 4b60a696..9beab7a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "addchain" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2e69442aa5628ea6951fa33e24efe8313f43...
1
95
88
29f0a68b4aa260a9afd11fbec95122c9ada37cd6
Tony Arcieri
2026-03-10T18:33:28
Cut new prereleases (#1683) Releases the following: - `bignp256` v0.14.0-rc.8 - `bp256` v0.14.0-rc.8 - `bp384` v0.14.0-rc.8 - `ed448-goldilocks` v0.14.0-pre.11 - `hash2curve` v0.14.0-rc.11 - `k256` v0.14.0-rc.8 - `p192` v0.14.0-rc.8 - `p224` v0.14.0-rc.8 - `p256` v0.14.0-rc.8 - `p384` v0.14.0-rc.8 - `p521` v0.14.0-rc...
diff --git a/Cargo.lock b/Cargo.lock index ae81869f..4b60a696 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,7 +76,7 @@ dependencies = [ [[package]] name = "bignp256" -version = "0.14.0-rc.7" +version = "0.14.0-rc.8" dependencies = [ "belt-hash", "criterion", @@ -146,7 +146,7 @@ dependencies = [ [[package]...
16
63
68
d4d7150a81a615fa502b361862672c0fc537f8d5
Tony Arcieri
2026-03-10T18:08:26
Bump `digest` dependency to v0.11 (#1682) Release PR: RustCrypto/traits#2300
diff --git a/bignp256/Cargo.toml b/bignp256/Cargo.toml index 5afa9870..dbccd2c6 100644 --- a/bignp256/Cargo.toml +++ b/bignp256/Cargo.toml @@ -23,7 +23,7 @@ elliptic-curve = { version = "0.14.0-rc.29", features = ["sec1"] } # optional dependencies belt-hash = { version = "0.2.0-rc.5", optional = true, default-feature...
2
2
2
352d6219fb35b7df6af5896c59341ab216f9f93d
Tony Arcieri
2026-03-10T17:42:04
Bump `elliptic-curve` to v0.14.0-rc.29 (#1681)
diff --git a/Cargo.lock b/Cargo.lock index 157d1ea5..ae81869f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -495,9 +495,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "elliptic-curve" -version = "0.14.0-rc.28" +version = "0.14.0-rc.29" source = "registry+https:/...
14
21
21
53cf54673c06d843c8b2157f26b92c1ddafb0802
Tony Arcieri
2026-03-10T17:19:17
primefield: bump `crypto-bigint` to v0.7.1 (#1680) Migrates off git to the `crypto-bigint` v0.7.1 release Release PR: RustCrypto/crypto-bigint#1225
diff --git a/Cargo.lock b/Cargo.lock index 89ffed2b..157d1ea5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,8 +378,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0" -source = "git+https://github.com/RustCrypto/crypto-bigint#b3...
3
4
5
be6ae833b963b7a68dd92ff83255cac97cc394d8
Tony Arcieri
2026-03-10T15:21:45
primefield: use `MOD::PRIME_PARAMS.generator()` (#1679) Uses `PrimeParams` from `crypto-bigint` to store multiplicative generators, which have still been precomputed using SageMath
diff --git a/Cargo.lock b/Cargo.lock index d8f86d58..89ffed2b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,8 +378,8 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-rc.28" -source = "git+https://github.com/RustCrypto/crypto-big...
3
32
16
d778f71206d439c17183f60da4c54eaaeed09a2f
Tony Arcieri
2026-03-06T20:04:42
primefield: source `PrimeField::S` from `PrimeParams` (#1677) Uses `crypto-bigint` to compute `S`
diff --git a/primefield/src/monty.rs b/primefield/src/monty.rs index 24621d4c..c4077db7 100644 --- a/primefield/src/monty.rs +++ b/primefield/src/monty.rs @@ -463,7 +463,7 @@ where const CAPACITY: u32 = Self::NUM_BITS - 1; const TWO_INV: Self = Self::from_u64(2).const_invert(); const MULTIPLICATIVE_GENER...
1
3
9
f001b5d42e0c7866112d596bff7d4f24078f8bd0
Tony Arcieri
2026-03-06T19:34:09
primefield: use modular sqrt from `crypto-bigint` (#1676) Switches to the implementation added in RustCrypto/crypto-bigint#1139
diff --git a/Cargo.lock b/Cargo.lock index 0bb13cf6..d8f86d58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -379,8 +379,7 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" version = "0.7.0-rc.28" -source = "registry+https://github.com/rust-lang/crates.i...
4
4
233
014aa978fa080ce2729478deba9933a1d1287f51
ZC
2026-03-06T19:17:05
sm2: unify default Mode for encryption and decryption (#1668) Previously, EncryptingKey and DecryptingKey used inconsistent default modes, C1C2C3 for EncryptingKey vs C1C3C2 for DecryptingKey. Introduced DEFAULT_MODE to standardize the default behavior across both structures.
diff --git a/sm2/src/pke.rs b/sm2/src/pke.rs index f634e6c2..bce38370 100644 --- a/sm2/src/pke.rs +++ b/sm2/src/pke.rs @@ -75,6 +75,10 @@ pub enum Mode { /// new mode C1C3C2, } + +/// The standard data layout used for SM2 encryption/decryption. +/// C1C3C2 is the default per modern specifications. +const DEF...
3
10
6
f2fbb6024ed2aa59df7de9db11a2ba8ee700161a
Tony Arcieri
2026-03-06T03:36:05
primefield: bound `MontyFieldParams` on `ConstPrimeMontyParams` (#1675) Also replaces `compute_s` with `PrimeParams::s`
diff --git a/primefield/src/monty.rs b/primefield/src/monty.rs index 94d10948..6e5ff080 100644 --- a/primefield/src/monty.rs +++ b/primefield/src/monty.rs @@ -7,7 +7,10 @@ use crate::ByteOrder; use bigint::{ ArrayEncoding, ByteArray, Invert, Limb, Reduce, Uint, Word, ctutils, hybrid_array::{Array, ArraySize,...
1
5
2
093df0be6dbabab5ed47b170a0c1d0c09d0ae9b3
Tony Arcieri
2026-03-06T01:25:16
primefield: use `const_prime_monty_params!` (#1674) Uses the built in prime modulus support in `crypto-bigint`. We should be able to further leverage this to replace our modular square root implementation, but for starters this just uses the new macro to define the modulus type/constant.
diff --git a/Cargo.lock b/Cargo.lock index 96e117bd..0bb13cf6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,9 +378,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-rc.27" +version = "0.7.0-rc.28" source = "registry+https://gi...
4
10
5
4fdaa64cc00b574ebcff3ab8c6792d8578f11775
Tony Arcieri
2026-02-26T19:23:48
sha3 v0.11.0-rc.8 (#1671)
diff --git a/Cargo.lock b/Cargo.lock index 8c18a798..96e117bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,9 +137,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1" [[package]] name = "block-buffer" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/ru...
4
17
17
d18b19dd6b8c8e795444ce030a1aaf20512df271
Tony Arcieri
2026-02-13T01:16:54
primefield: `crypto-common` v0.2 + `crypto-bigint` v0.7.0-rc.27 (#1662) Bumps `crypto-common` to the final v0.2 release. Also bumps `crypto-bigint`.
diff --git a/Cargo.lock b/Cargo.lock index b0907937..74c14f48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -369,9 +369,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-rc.25" +version = "0.7.0-rc.27" source = "registry+https://gi...
2
8
8
f3817309aaeb155f923399196197047f5e199330
Tony Arcieri
2026-02-03T00:10:31
Cut new prereleases (#1643) Releases the following: - `bignp256` v0.14.0-rc.7 - `bp256` v0.14.0-rc.7 - `bp384` v0.14.0-rc.7 - `ed448-goldilocks` v0.14.0-pre.10 - `hash2curve` v0.14.0-rc.10 - `k256` v0.14.0-rc.7 - `p192` v0.14.0-rc.7 - `p224` v0.14.0-rc.7 - `p256` v0.14.0-rc.7 - `p384` v0.14.0-rc.7 - `p521` v0.14.0-rc...
diff --git a/Cargo.lock b/Cargo.lock index 6b513460..b186eb6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,7 +76,7 @@ dependencies = [ [[package]] name = "bignp256" -version = "0.14.0-rc.6" +version = "0.14.0-rc.7" dependencies = [ "belt-hash", "criterion", @@ -146,7 +146,7 @@ dependencies = [ [[package]...
16
67
67
088f2dac5dd94d8efdaf63fb953dd2cf96c0a005
ZC
2026-01-29T04:14:32
sm2: fix compilation errors. (#1641) Certain feature combinations in the sm2 crate currently cause compilation errors. This patch resolves the following issues: 1. dsa & pkcs8: * Fixed a mismatch where `Signature::ALGORITHM_IDENTIFIER` was gated behind `alloc`, even though the trait implementation did ...
diff --git a/sm2/Cargo.toml b/sm2/Cargo.toml index 45f46089..79eda1a1 100644 --- a/sm2/Cargo.toml +++ b/sm2/Cargo.toml @@ -46,7 +46,7 @@ arithmetic = ["dep:primefield", "dep:primeorder", "elliptic-curve/arithmetic"] bits = ["arithmetic", "elliptic-curve/bits"] dsa = ["arithmetic", "dep:rfc6979", "dep:signature", "dep...
3
7
8
a4af4fa03caaa135bac7ca04fd8b0d00e1c87592
Tony Arcieri
2026-01-24T23:42:06
Cut new prereleases (#1632) Releases the following: - `bignp256` v0.14.0-rc.6 - `bp256` v0.14.0-rc.6 - `bp384` v0.14.0-rc.6 - `ed448-goldilocks` v0.14.0-pre.9 - `hash2curve` v0.14.0-rc.9 - `k256` v0.14.0-rc.6 - `p192` v0.14.0-rc.6 - `p224` v0.14.0-rc.6 - `p256` v0.14.0-rc.6 - `p384` v0.14.0-rc.6 - `p521` v0.14.0-rc.6...
diff --git a/Cargo.lock b/Cargo.lock index e2c7f3f9..f3423315 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,7 +76,7 @@ dependencies = [ [[package]] name = "bignp256" -version = "0.14.0-rc.5" +version = "0.14.0-rc.6" dependencies = [ "belt-hash", "criterion", @@ -146,7 +146,7 @@ dependencies = [ [[package]...
16
62
62
893e8e99e4b32e6347fb965f6a975831c7ef8c06
Tony Arcieri
2026-01-24T23:14:26
Bump dependency requirements in Cargo.toml (#1631) Upgrades the following dependencies: - `crypto-bigint` v0.7.0-rc.22 - `digest` v0.11.0-rc.8 - `ecdsa` v0.17.0-rc.14 - `elliptic-curve` v0.14.0-rc.24 - `getrandom` v0.4.0-rc.1 - `rand_core` v0.10.0-rc-6 - `sha2` v0.11.0-rc.4 - `sha3` v0.11.0-rc.6 - `signature` v3.0.0-r...
diff --git a/Cargo.lock b/Cargo.lock index 1be7642f..e2c7f3f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,6 +34,12 @@ version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" +[[package]] +name = "anyhow" +v...
31
362
139
e290f13c30deb25b1459daeae54bb93445ee3b63
Tony Arcieri
2026-01-21T16:23:41
Cargo.lock: bump dependencies (#1627) Updates the following dependencies: $ cargo update Updating crates.io index Locking 28 packages to latest compatible versions Updating base64ct v1.8.0 -> v1.8.3 Updating bumpalo v3.19.0 -> v3.19.1 Updating clap v4.5.53 -> v4.5.54 Updating clap_builder...
diff --git a/Cargo.lock b/Cargo.lock index ad06360a..c50b0d07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,9 +48,9 @@ checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6" [[package]] name = "base64ct" -version = "1.8.0" +version = "1.8.3" source = "registry+https://github.com/rust-lang/...
1
69
69
0cde51bfce273af8175417a140c15129630903c6
Tony Arcieri
2026-01-21T15:51:22
Cut new prereleases (#1626) Releases the following: - `bignp256` v0.14.0-rc.5 - `bp256` v0.14.0-rc.5 - `bp384` v0.14.0-rc.5 - `ed448-goldilocks` v0.14.0-pre.8 - `hash2curve` v0.14.0-rc.8 - `k256` v0.14.0-rc.5 - `p192` v0.14.0-rc.5 - `p224` v0.14.0-rc.5 - `p256` v0.14.0-rc.5 - `p384` v0.14.0-rc.5 - `p521` v0.14.0-rc.5...
diff --git a/Cargo.lock b/Cargo.lock index 5929bd56..ad06360a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "bignp256" -version = "0.14.0-rc.4" +version = "0.14.0-rc.5" dependencies = [ "belt-hash", "criterion", @@ -140,7 +140,7 @@ dependencies = [ [[package]...
16
62
62
775a4c0ed116c859f157c4f00b035c6f9f2805a3
Arthur Gautier
2026-01-20T21:26:15
k256: use `Generate::generate()` for tests (#1622)
diff --git a/k256/src/arithmetic/field.rs b/k256/src/arithmetic/field.rs index e24a994d..d5b69a28 100644 --- a/k256/src/arithmetic/field.rs +++ b/k256/src/arithmetic/field.rs @@ -524,7 +524,6 @@ mod tests { use elliptic_curve::Generate; use elliptic_curve::ff::{Field, PrimeField}; use elliptic_curve::ops...
4
32
32
380777f9b3b7e0be75f319b77a5a879fe7c9acf8
Tony Arcieri
2026-01-20T20:32:31
Upgrade dependencies (#1621) - `digest` v0.11.0-rc.7 - `ecdsa` v0.17.0-rc.13 - `elliptic-curve` v0.14.0-rc.23 - `rand_core` v0.10.0-rc-5 - `signature` v3.0.0-rc.8
diff --git a/Cargo.lock b/Cargo.lock index ff91405f..50a2d8f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -405,9 +405,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-rc.5" +version = "0.11.0-rc.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebf9423bafb058e4142...
16
55
55
b65c24aaa93e9ef99e88673339c6541c5b5b8075
anim001k
2026-01-20T20:06:19
primeorder: DRY out duplicated `debug_assert_eq!` checks
diff --git a/primeorder/src/point_arithmetic.rs b/primeorder/src/point_arithmetic.rs index 94fc2782..73c1ed91 100644 --- a/primeorder/src/point_arithmetic.rs +++ b/primeorder/src/point_arithmetic.rs @@ -29,6 +29,25 @@ mod sealed { /// Allow crate-local visibility pub(crate) use sealed::PointArithmetic; +// Debug-on...
1
25
30
126b054ecaa85feb8538ed0ee5ade06ca920bfcd
kilavvy
2026-01-20T20:04:50
Update variable_base.rs (#1607)
diff --git a/ed448-goldilocks/src/curve/scalar_mul/variable_base.rs b/ed448-goldilocks/src/curve/scalar_mul/variable_base.rs index 8379bcbe..d4f60c16 100644 --- a/ed448-goldilocks/src/curve/scalar_mul/variable_base.rs +++ b/ed448-goldilocks/src/curve/scalar_mul/variable_base.rs @@ -14,10 +14,7 @@ pub fn variable_base(p...
1
1
4
a221d3e3bec371f375c26e44460e8e6d9e708402
fuder.eth
2026-01-20T20:04:26
ed448-goldilocks: deduplicate OKM→FieldElement test logic (#1611)
diff --git a/ed448-goldilocks/src/field/element.rs b/ed448-goldilocks/src/field/element.rs index dab1c158..6be76a64 100644 --- a/ed448-goldilocks/src/field/element.rs +++ b/ed448-goldilocks/src/field/element.rs @@ -513,40 +513,46 @@ mod tests { use hex_literal::hex; use sha3::Shake256; - #[test] - fn ...
1
23
35
cc2123c90f6a2e0f1fd9f1c4769c31390c93ca66
Arthur Gautier
2026-01-20T19:42:18
chore(deps): bump `rand_core` to `0.10.0-rc-5` (#1620) This also bumps `crypto-bigint` to `0.7.0-rc.21`.
diff --git a/Cargo.lock b/Cargo.lock index 2e3991ec..ff91405f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,7 +85,7 @@ dependencies = [ "primefield", "primeorder", "proptest", - "rand_core 0.10.0-rc-3", + "rand_core 0.10.0-rc-5", "rfc6979", "sec1", "signature", @@ -183,14 +183,14 @@ checksum = "9330f8b2ff...
12
77
69
52bc823c3c0f10bb1a151f57fe1dbc8574c2cb22
viktorking7
2026-01-10T15:17:43
hash2curve: eliminate redundant DST length calculation (#1605)
diff --git a/hash2curve/src/hash2field/expand_msg.rs b/hash2curve/src/hash2field/expand_msg.rs index 7fe02003..d3e486e5 100644 --- a/hash2curve/src/hash2field/expand_msg.rs +++ b/hash2curve/src/hash2field/expand_msg.rs @@ -72,9 +72,11 @@ impl<'a, L: ArraySize> Domain<'a, L> { X: Default + ExtendableOutput + Up...
1
8
4
4204689097938230488ebe73ac84c8b61c296da3
Tony Arcieri
2026-01-09T19:06:40
sm2: add `UncompressedPoint` type alias (#1604) Adds a type alias for a byte `Array` the size of an uncompressed curve point, and uses that to simplify the SM2PKE implementation
diff --git a/sm2/src/lib.rs b/sm2/src/lib.rs index 7ecae5b1..5152799b 100644 --- a/sm2/src/lib.rs +++ b/sm2/src/lib.rs @@ -75,9 +75,9 @@ pub use elliptic_curve::pkcs8; use elliptic_curve::{ FieldBytesEncoding, - array::{Array, typenum::U33}, + array::Array, bigint::{ArrayEncoding, Odd}, - consts::...
3
12
10
e60e99167a9a2b187ebe80c994c5204b0fdaf4ab
Tony Arcieri
2026-01-09T18:50:37
sm2: fix SM2PKE ciphertext parsing DoS [SECURITY] (#1603) This fixes a potential denial-of-service attack in the SM2PKE decryption implementation originally reported as GHSA-j9xq-69pf-pcm8 by @XlabAITeam Previously the ciphertext was parsed using `split_at` which panics in the event the input is not of sufficient len...
diff --git a/sm2/src/pke/decrypting.rs b/sm2/src/pke/decrypting.rs index 21405447..1ffbc86d 100644 --- a/sm2/src/pke/decrypting.rs +++ b/sm2/src/pke/decrypting.rs @@ -157,13 +157,13 @@ fn decrypt( secret_scalar: &Scalar, mode: Mode, hasher: &mut dyn DynDigest, - cipher: &[u8], + ciphertext: &[u8], ...
1
4
4
085b7bee647029bd189e1375203418205006bcab
Tony Arcieri
2026-01-09T18:28:52
sm2: fix SM2PKE decryption DoS vulnerability [SECURITY] (#1602) This fixes a potential denial-of-service attack in the SM2PKE decryption implementation originally reported as GHSA-78p6-6878-8mj6 by @XlabAITeam The implementation parses the ciphertext, extracting the bytes that represent the `C1` curve point, however ...
diff --git a/sm2/src/pke/decrypting.rs b/sm2/src/pke/decrypting.rs index 6b85a7c4..21405447 100644 --- a/sm2/src/pke/decrypting.rs +++ b/sm2/src/pke/decrypting.rs @@ -167,7 +167,9 @@ fn decrypt( let encoded_c1 = EncodedPoint::from_bytes(c1).map_err(Error::from)?; // verify that point c1 satisfies the ellipt...
1
3
1
86ca4a64a5eeaded2f18d5af9129014f57aae665
Tony Arcieri
2026-01-09T18:28:00
sm2: use array instead of `Vec` in SM2PKE (#1601) Also replaces a size calculation with an existing constant
diff --git a/sm2/src/pke/encrypting.rs b/sm2/src/pke/encrypting.rs index 308b2ce0..8ff0462e 100644 --- a/sm2/src/pke/encrypting.rs +++ b/sm2/src/pke/encrypting.rs @@ -1,7 +1,7 @@ use core::fmt::Debug; use crate::{ - AffinePoint, NonZeroScalar, ProjectivePoint, PublicKey, Scalar, Sm2, + AffinePoint, FieldBytes...
1
4
4
06bcf261d665ee51d78cde49a8cded22a8ada01e
sashaodessa
2026-01-09T18:04:46
k256: use `ORDER` constant instead of reconstructing from `ORDER_HEX` (#1599)
diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs index 488d52bc..26d72d2f 100644 --- a/k256/src/arithmetic/scalar.rs +++ b/k256/src/arithmetic/scalar.rs @@ -14,7 +14,6 @@ use core::{ iter::{Product, Sum}, ops::{Add, AddAssign, Mul, MulAssign, Neg, Shr, ShrAssign, Sub, SubAssign}, };...
1
2
7
e4f77788130d065d760e57fb109370827110a525
Tony Arcieri
2026-01-09T18:03:12
sm2: fix SM2PKE biased `k` generation [SECURITY] (#1600) This fixes a critical security vulnerability originally reported as GHSA-w3g8-fp6j-wvqw by @XlabAITeam. Previously the module defined its own `next_k` function which invoked the `RandomBits::try_random_bits` API to generate a `k` value via rejection sampling, h...
diff --git a/sm2/src/pke/encrypting.rs b/sm2/src/pke/encrypting.rs index 1c3cd1b5..308b2ce0 100644 --- a/sm2/src/pke/encrypting.rs +++ b/sm2/src/pke/encrypting.rs @@ -1,7 +1,7 @@ use core::fmt::Debug; use crate::{ - AffinePoint, ProjectivePoint, PublicKey, Scalar, Sm2, + AffinePoint, NonZeroScalar, Projective...
1
5
14