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
c7da4b4b6778b7e710682bf3b824c5303e8aac9b
kalabukdima
2018-10-20T15:56:08
fix typos in comments (#27)
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 1a364f8..f03c501 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -1,11 +1,11 @@ -//! This crate provides traits which describe funcionality of cryptographic hash +//! This crate provides traits which describe functionality of cryptographic hash //! fun...
3
10
10
caca608391946da7acaa8f780c0959becea72294
Артём Павлов [Artyom Pavlov]
2018-10-16T19:43:07
add new_var method
diff --git a/stream-cipher/Cargo.toml b/stream-cipher/Cargo.toml index e7ca21e..08d0504 100644 --- a/stream-cipher/Cargo.toml +++ b/stream-cipher/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stream-cipher" -version = "0.2.1" +version = "0.2.2" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" descr...
4
66
26
703e348336ba7d8f000a41e6fe370e7a776406d6
newpavlov
2018-10-04T17:11:58
use blobby for stream-cipher tests
diff --git a/stream-cipher/Cargo.toml b/stream-cipher/Cargo.toml index 1a907e9..e7ca21e 100644 --- a/stream-cipher/Cargo.toml +++ b/stream-cipher/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stream-cipher" -version = "0.2.0" +version = "0.2.1" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" descr...
3
49
31
e554986d7bdcbf429690798afcc948a6a120d82b
newpavlov
2018-10-04T16:31:00
update block cipher tests to blobby
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 2522af7..0eaf7bc 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.6.0" +version = "0.6.1" authors = ["RustCrypto Developers"] license = "...
3
22
40
83a48db8cd89ec7ab349c62164903de1809bbfb1
newpavlov
2018-10-03T10:50:32
test if block cipher implements Clone
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index 35a3bb3..4224137 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -92,7 +92,7 @@ macro_rules! new_test { ); } - /// test parallel blocks encryption/dec...
1
4
1
88d0680efb8fe41cc803e1cc332b7180731d4a8d
newpavlov
2018-10-03T09:57:41
fix dev warning
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index d4d4eda..35a3bb3 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -25,7 +25,7 @@ macro_rules! new_test { true } - fn run_par_test(key: &[u8], pt: &[u8], ct: &[u8])...
1
2
2
eefd93f7f041b6a42d265a0eb2d6d87460dbe13e
newpavlov
2018-10-01T17:07:18
add note about Digest
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 304cdf0..1a364f8 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -10,6 +10,8 @@ //! //! Additionally hash functions implement traits from `std`: `Default`, `Clone`, //! `Write`. (the latter depends on enabled-by-default `std` crate feature) +//! +//!...
1
2
0
2b45e6deb04aeedf4dc4ed7ccc61679ec82e65ed
Артём Павлов [Artyom Pavlov]
2018-08-08T15:28:11
stream-cipher v0.1.1, fix license field
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 353c678..56cf67a 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -2,7 +2,7 @@ name = "block-cipher-trait" version = "0.5.3" authors = ["RustCrypto Developers"] -license = "MIT/Apache-2.0" +license = "MI...
4
5
5
4829117775c00fcf65052620c369207f82f2b01d
Stuart Reilly
2018-08-08T15:25:16
Add Error impl for LoopError behind std feature (#21)
diff --git a/stream-cipher/Cargo.toml b/stream-cipher/Cargo.toml index eabeddc..5683db5 100644 --- a/stream-cipher/Cargo.toml +++ b/stream-cipher/Cargo.toml @@ -14,6 +14,7 @@ generic-array = "0.9" [features] dev = [] +std = [] [badges] travis-ci = { repository = "RustCrypto/traits" } diff --git a/stream-cipher/...
2
14
0
a287c7bff17046e83ce46f1bd6d851cb05d6b5e6
newpavlov
2018-07-27T17:51:05
add encrypt_blocks and decrypt_blocks test
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index bb0df6e..353c678 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.5.2" +version = "0.5.3" authors = ["RustCrypto Developers"] license = "...
2
49
1
87e6421386de36264ccb6fdf648d167a31971acc
newpavlov
2018-07-27T15:33:46
dev module, documentation improvements
diff --git a/stream-cipher/Cargo.toml b/stream-cipher/Cargo.toml index 7e7b714..eabeddc 100644 --- a/stream-cipher/Cargo.toml +++ b/stream-cipher/Cargo.toml @@ -3,7 +3,7 @@ name = "stream-cipher" version = "0.1.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" -description = "Traits for description o...
3
124
2
fe4585822712dd3cd2570ba2eb5252878f6a2582
Zach Reizner
2018-07-13T10:29:40
Fix doc typo: convinience to convenience (#20)
diff --git a/digest/src/digest.rs b/digest/src/digest.rs index 6bbfe5e..2e45bf4 100644 --- a/digest/src/digest.rs +++ b/digest/src/digest.rs @@ -7,8 +7,8 @@ type Output<N> = GenericArray<u8, N>; /// The `Digest` trait specifies an interface common for digest functions. /// -/// It's a convinience wrapper around `In...
1
5
5
78e04bd7975d0a1c801c73d8522b290422cae8a3
Stuart Reilly
2018-06-26T06:49:29
Change std handling (#19)
diff --git a/block-cipher-trait/src/lib.rs b/block-cipher-trait/src/lib.rs index 4f6d269..f5860b8 100644 --- a/block-cipher-trait/src/lib.rs +++ b/block-cipher-trait/src/lib.rs @@ -1,10 +1,10 @@ //! This crate defines a set of simple traits used to define functionality of //! block ciphers. -#![cfg_attr(not(feature =...
3
6
6
f8c62e103539e188b8d147fa38d3ea868b43643a
newpavlov
2018-06-20T11:20:57
move errors into separate modules, enable std feature for docs.rs
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index a0e381a..6a37161 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.5.0" +version = "0.5.1" authors = ["RustCrypto Developers"] license = "...
9
114
99
4111a0eb69bef98892d935bb44c98edafd283270
Stuart Reilly
2018-06-20T11:07:17
Add Error and Display impls for error types (#17) * Add Error and Display impls to digest's errors * Add Error and Display impls to crypto-mac's errors * Add Error and Display impls to block-cipher-trait's errors * Change use of write! to use write_str in digest
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 50e17a6..a0e381a 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -14,6 +14,7 @@ generic-array = "0.9" [features] dev = [] +std = [] [badges] travis-ci = { repository = "RustCrypto/traits" } diff --...
5
87
2
f153445ca24d44d5547ce1777fa7ed6fdf81e15b
Artyom Pavlov
2017-11-26T15:33:35
New traits version (#7) Adds reset functionality to tratis from digest and crypto-mac traits, changes Mac and BlockCipher initialization methods.
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index 0daa072..a390fd6 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -1,57 +1,80 @@ -use generic_array::GenericArray; -use super::{NewVarKey, BlockCipher}; +#[macro_export] +macro_rules! new_test { + ($na...
9
235
183
4423bfd2dd410aeff3e527b17838d8fde5b7445d
newpavlov
2017-11-20T13:49:27
fixed crypto-mac bench names
diff --git a/crypto-mac/src/dev.rs b/crypto-mac/src/dev.rs index 37aac5e..37a23ee 100644 --- a/crypto-mac/src/dev.rs +++ b/crypto-mac/src/dev.rs @@ -60,8 +60,8 @@ macro_rules! bench { use test::Bencher; use crypto_mac::Mac; - bench!(bench3_100, $engine, $key_size, 100); - bench!(bench4...
1
3
3
c75c048eae1a8471fefe8d48c5ccd15e37e1becd
newpavlov
2017-11-20T12:46:19
crypto-mac v0.5.2
diff --git a/crypto-mac/Cargo.toml b/crypto-mac/Cargo.toml index cbded3e..5ad3bad 100644 --- a/crypto-mac/Cargo.toml +++ b/crypto-mac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-mac" -version = "0.5.1" +version = "0.5.2" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Trait fo...
1
1
1
5e79c1fe54299e8adb3ab1602205a84b7db14808
newpavlov
2017-11-20T12:42:26
added benchmarks to crypto-mac
diff --git a/crypto-mac/src/dev.rs b/crypto-mac/src/dev.rs index 4a90f9a..37aac5e 100644 --- a/crypto-mac/src/dev.rs +++ b/crypto-mac/src/dev.rs @@ -37,3 +37,31 @@ pub fn mac_test<M: Mac>(tests: &[Test]) { mac.verify(test.output).unwrap(); } } + +#[macro_export] +macro_rules! bench { + ($name:ident, $...
1
28
0
cd062e07f034a73a42c841ec7cf47804e6e41e79
newpavlov
2017-11-17T16:58:49
more extensive XOF testing
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index ed178dd..b1c02fd 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.7.1" +version = "0.7.2" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Traits for cryptographic has...
2
15
1
1987d89d304ef86155ecc9119a28a38bda6e58ae
newpavlov
2017-11-15T08:26:28
digest v0.7.1 and crypto-mac v0.5.1
diff --git a/crypto-mac/Cargo.toml b/crypto-mac/Cargo.toml index 3158cbd..cbded3e 100644 --- a/crypto-mac/Cargo.toml +++ b/crypto-mac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-mac" -version = "0.5.0" +version = "0.5.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Trait fo...
2
2
2
b302540b7fa0db352d18e574f2fd06c9058d9b84
newpavlov
2017-11-14T17:10:34
crypto-mac fix
diff --git a/crypto-mac/src/dev.rs b/crypto-mac/src/dev.rs index ade33ee..4a90f9a 100644 --- a/crypto-mac/src/dev.rs +++ b/crypto-mac/src/dev.rs @@ -21,7 +21,7 @@ macro_rules! new_mac_tests { }; } -pub fn mac_test<M: Mac>(tests: &[MacTest]) { +pub fn mac_test<M: Mac>(tests: &[Test]) { for test in tests.ite...
1
1
1
efe15dfa45e5fb3da8d888c8e2b12f4651ebb7e5
newpavlov
2017-11-14T17:09:25
renamed BlockCipherTest to Test
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index 6a4ade6..0daa072 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -13,7 +13,7 @@ pub struct Test { macro_rules! new_block_cipher_tests { ( $( $name:expr ),* ) => { [$( - BlockCiph...
1
2
2
db2a88c097b1664da1bac97f12e00c1b2a27286e
newpavlov
2017-11-14T17:09:16
added dev feature to crypto-mac
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index d42c576..6a4ade6 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -2,7 +2,7 @@ use generic_array::GenericArray; use super::{NewVarKey, BlockCipher}; -pub struct BlockCipherTest { +pub struct Test { ...
4
46
1
0bac3e86f4fc4e96f7b483bc9b8f622e11a6e6bd
newpavlov
2017-11-14T16:40:49
remove unnecc. imports
diff --git a/block-cipher-trait/src/dev.rs b/block-cipher-trait/src/dev.rs index 5182c0a..d42c576 100644 --- a/block-cipher-trait/src/dev.rs +++ b/block-cipher-trait/src/dev.rs @@ -45,7 +45,6 @@ pub fn encrypt_decrypt<B: NewVarKey + BlockCipher>(tests: &[BlockCipherTest]) { macro_rules! bench_block_cipher { ($cip...
2
0
2
67821567892681c886db14ebdb947922ff23046f
newpavlov
2017-11-14T16:38:58
added dev feature to digest
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 5e963bf..49dd1f5 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -14,6 +14,7 @@ generic-array = "0.9" [features] std = [] +dev = [] [badges] travis-ci = { repository = "RustCrypto/traits" } diff --git a/digest/src/dev.rs b/digest/src/dev.rs new ...
3
161
0
ef313e48e80e7f31a6b27d28a17d3949d69c12f4
newpavlov
2017-11-14T16:36:27
added dev feature to block-cipher-trait
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index c704d51..50e17a6 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -12,5 +12,8 @@ categories = ["cryptography", "no-std"] [dependencies] generic-array = "0.9" +[features] +dev = [] + [badges] travis-ci...
3
85
2
f3644e61f7cf57bcc07de6cb41f15973ce967c7b
newpavlov
2017-11-14T16:04:26
Added some docs
diff --git a/block-cipher-trait/src/lib.rs b/block-cipher-trait/src/lib.rs index 80f648b..f0cedc8 100644 --- a/block-cipher-trait/src/lib.rs +++ b/block-cipher-trait/src/lib.rs @@ -11,7 +11,10 @@ type ParBlocks<B, P> = GenericArray<GenericArray<u8, B>, P>; /// The trait which defines in-place encryption and decryption...
1
3
0
ce9a694d1b6af7132ba7822b6879eaf110820682
newpavlov
2017-11-14T15:55:52
redesign of BlockCipher trait
diff --git a/block-cipher-trait/src/lib.rs b/block-cipher-trait/src/lib.rs index 2efa1aa..80f648b 100644 --- a/block-cipher-trait/src/lib.rs +++ b/block-cipher-trait/src/lib.rs @@ -6,60 +6,40 @@ pub extern crate generic_array; use generic_array::{GenericArray, ArrayLength}; use generic_array::typenum::Unsigned; -ty...
1
20
40
a794252ef3d905a0049c88750ee0e103aa9dc462
newpavlov
2017-11-14T13:59:22
Added badges and categories
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 53523a2..c704d51 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -7,6 +7,10 @@ description = "Traits for description of block ciphers" documentation = "https://docs.rs/block-cipher-trait" repository = "h...
3
12
0
d76e4e4613100d01b471b3def3a8197ab9ca274d
newpavlov
2017-11-14T13:47:22
digest doc changes
diff --git a/digest/src/digest.rs b/digest/src/digest.rs index f03e9c7..8439718 100644 --- a/digest/src/digest.rs +++ b/digest/src/digest.rs @@ -5,8 +5,9 @@ use std::io; type Output<N> = GenericArray<u8, N>; -/// The Digest trait specifies an interface common to digest functions. It's a -/// convinience wrapper ar...
1
3
2
40c955dcb56d08fd6a835a1c2f34e7f66c7891f7
newpavlov
2017-11-14T13:42:19
crypto-mac small changes
diff --git a/crypto-mac/src/lib.rs b/crypto-mac/src/lib.rs index 09ce859..c643dc6 100644 --- a/crypto-mac/src/lib.rs +++ b/crypto-mac/src/lib.rs @@ -46,8 +46,8 @@ pub trait Mac: core::marker::Sized { } } -/// `MacResult` wraps a Mac code and provides a safe Eq implementation that runs -/// in fixed time. +/// `...
1
3
3
dd23685ff8e0953822f0045e7aa3be2dcb91fbc4
newpavlov
2017-11-14T13:39:55
MacResult changes, added docs
diff --git a/crypto-mac/src/lib.rs b/crypto-mac/src/lib.rs index f6e3d12..09ce859 100644 --- a/crypto-mac/src/lib.rs +++ b/crypto-mac/src/lib.rs @@ -1,3 +1,4 @@ +//! This crate provides trait for Message Authentication Code (MAC) algorithms. #![no_std] extern crate constant_time_eq; extern crate generic_array; @@ -1...
1
14
16
b0f01df9bad583b1a47f791b02773d99c1f31d64
newpavlov
2017-11-09T09:43:41
crypto-mac v0.5
diff --git a/crypto-mac/src/lib.rs b/crypto-mac/src/lib.rs index 07eb30e..f6e3d12 100644 --- a/crypto-mac/src/lib.rs +++ b/crypto-mac/src/lib.rs @@ -4,6 +4,15 @@ extern crate generic_array; use constant_time_eq::constant_time_eq; use generic_array::{GenericArray, ArrayLength}; +use generic_array::typenum::Unsigned;...
1
18
3
37691a970584346ff05cda40a0c6874da8e980d1
Артём Павлов [Artyom Pavlov]
2017-10-31T06:31:16
update to generic-array v0.9
diff --git a/crypto-mac/Cargo.toml b/crypto-mac/Cargo.toml index b7cb8b8..a0bcf1e 100644 --- a/crypto-mac/Cargo.toml +++ b/crypto-mac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-mac" -version = "0.4.0" +version = "0.5.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Trait fo...
1
2
2
6a1fe7218a8aa456de144c10b3b04a2de63dc154
Артём Павлов [Artyom Pavlov]
2017-10-30T03:39:56
Fixed import inside macro
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index e522ec6..7eb387b 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -83,10 +83,10 @@ pub trait ExtendableOutput { #[macro_export] macro_rules! impl_opaque_debug { ($state:ty) => { - use core::fmt; - - impl fmt::Debug for $state { - ...
1
4
4
4e4ecaf0c951995525570ed1212d43fe56c2ae7a
Артём Павлов [Artyom Pavlov]
2017-10-30T02:12:38
generic-buffer update to v0.9, added impl_opaque_debug macro, generic_array re-export
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 5ec2949..53523a2 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -9,4 +9,4 @@ repository = "https://github.com/RustCrypto/block-ciphers" keywords = ["crypto", "block-cipher", "trait"] [dependencies] -g...
3
20
3
82c6f8695c27ce6692e2fa39052829e47555f6fd
Артём Павлов [Artyom Pavlov]
2017-10-30T01:17:24
digest v0.7 draft
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index e4b4614..40f61ba 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "digest" -version = "0.6.2" +version = "0.7.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" -description = "Digest trait for cryptograph...
2
14
16
78679ccfd95f8b358cc7ebfc0a3acc7febbc1b3f
Артём Павлов [Artyom Pavlov]
2017-10-06T06:16:37
return result in en/decrypt_blocks
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 2a06b4b..5ec2949 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.4.2" +version = "0.5.0" authors = ["RustCrypto Developers"] license = "...
2
24
19
0bf0fc057c3209a9f61d9b58f1be79067723abb7
Артём Павлов [Artyom Pavlov]
2017-09-05T22:36:01
Added encrypt/decrypt_blocks methods
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 352a968..2a06b4b 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.4.1" +version = "0.4.2" authors = ["RustCrypto Developers"] license = "...
2
39
1
e129e9e3a93a5397fcb5e195404dcefa0aa26fb3
Артём Павлов [Artyom Pavlov]
2017-09-05T22:11:46
pub re-export of generic-array
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 5887c16..352a968 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.4.0" +version = "0.4.1" authors = ["RustCrypto Developers"] license = "...
2
2
2
4a781e5299b1d811a366aa08a36ccb42751cee0d
Артём Павлов [Artyom Pavlov]
2017-09-05T21:37:47
block-cipher-trait v0.4.0
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 1322195..5887c16 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "block-cipher-trait" -version = "0.4.0-gamma" +version = "0.4.0" authors = ["RustCrypto Developers"] licen...
2
25
13
cc9247ff979d9f04db7fe0362378e14aef1b7201
Артём Павлов [Artyom Pavlov]
2017-09-02T20:39:55
Updated block cipher trait to in-place operations
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 48fabd3..1322195 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.4.0-beta" +version = "0.4.0-gamma" authors = ["RustCrypto Developers"] ...
2
16
32
514ff727bc702af33f5dfe83c4386e9f6f3d8161
Артём Павлов [Artyom Pavlov]
2017-07-24T05:20:31
Fixes RustCrypto/hashes#33. Doc updates for digest.
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 07f7281..e4b4614 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.6.1" +version = "0.6.2" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Digest trait for cryptograph...
3
13
4
1395196b50adcf88e75bec9d0e292427e08f9e32
Артём Павлов [Artyom Pavlov]
2017-06-18T05:36:25
Fixed std feature build
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index ed45ce2..07f7281 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.6.0" +version = "0.6.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Digest trait for cryptograph...
3
6
3
6a717af76ae6f1df7c4274a4534fb130900a8716
Artyom Pavlov
2017-06-12T04:43:54
Cargo.toml updates
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 8f5230e..48fabd3 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "block-cipher-trait" version = "0.4.0-beta" -authors = ["The Rust-Crypto Project Developers"] +authors = ["...
3
4
4
1c32ccebeeac5f5bbf1b6d0cc3302d03694b502c
Artyom Pavlov
2017-06-12T03:59:49
bumped generic-array to v0.8
diff --git a/block-cipher-trait/Cargo.toml b/block-cipher-trait/Cargo.toml index 140b240..8f5230e 100644 --- a/block-cipher-trait/Cargo.toml +++ b/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.4.0-alpha" +version = "0.4.0-beta" authors = ["The Rust-Crypto Project D...
2
4
4
16ac5cf26985c5001674a07c9c246f07296ef3af
Артём Павлов [Artyom Pavlov]
2017-05-14T14:46:07
Added sized marker
diff --git a/crypto-mac/src/lib.rs b/crypto-mac/src/lib.rs index 7dfcb24..07eb30e 100644 --- a/crypto-mac/src/lib.rs +++ b/crypto-mac/src/lib.rs @@ -6,7 +6,7 @@ use constant_time_eq::constant_time_eq; use generic_array::{GenericArray, ArrayLength}; /// The Mac trait defines methods for a Message Authentication func...
1
1
1
ae7a53d4c579e51b5b44b796b37e1a3c362827fe
Артём Павлов [Artyom Pavlov]
2017-05-14T14:42:27
Updated MAC trait
diff --git a/crypto-mac/Cargo.toml b/crypto-mac/Cargo.toml index 7be465f..97cd956 100644 --- a/crypto-mac/Cargo.toml +++ b/crypto-mac/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "crypto-mac" -version = "0.2.0" +version = "0.3.0" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "Trait fo...
2
8
3
719cca31167328f292188a512f4c103dc3fcedaa
Артём Павлов [Artyom Pavlov]
2017-05-02T06:17:55
Fixed doc typo
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index cc03db6..b0a6112 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -42,7 +42,7 @@ pub trait VariableOutput { } /// The Digest trait specifies an interface common to digest functions. It's a -/// convinience wrapper around `Input` and `FixedResult` tra...
1
1
1
f19ebb0ff253d455f7e424a79c4644fd6ca444f3
Артём Павлов [Artyom Pavlov]
2017-05-02T06:16:20
Added digest_reader function and some docs
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index ff5e362..081b002 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.1" +version = "0.5.2" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest trait fo...
3
25
3
04404045d4fa35ebb43611d22144f4b03a970237
Артём Павлов [Artyom Pavlov]
2017-05-02T05:24:35
Removed rc1 from version
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 716b6e6..ff5e362 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.1-rc1" +version = "0.5.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest trai...
1
1
1
799d7846e03d0e47da2163ebc631c876ad14ef6e
Артём Павлов [Artyom Pavlov]
2017-05-02T05:05:51
Fixed digest version
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 3a08826..716b6e6 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.1rc1" +version = "0.5.1-rc1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest t...
1
1
1
f0397928abea96f18126555d0418f780266ebe13
Артём Павлов [Artyom Pavlov]
2017-05-02T05:05:14
Added DigestReader
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index b6a2d5f..3a08826 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0" +version = "0.5.1rc1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest trait...
3
32
2
dd4d17ea6340b26184367b33c2cdbf444329f2ac
Артём Павлов [Artyom Pavlov]
2017-04-06T14:54:24
Digest 0.5 release
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 57c8e89..b6a2d5f 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0-rc1" +version = "0.5.0" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest trai...
1
1
1
1c30b96dbe66b57255a164768c255a1322bbbca9
Артём Павлов [Artyom Pavlov]
2017-03-28T12:43:05
Fixed doc
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 1483556..54dcd07 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -37,7 +37,7 @@ pub trait VariableOutput { } /// The Digest trait specifies an interface common to digest functions. It's a -/// convinience wrapper around `DigestInput` and `DigestFixe...
1
1
1
b47cfc3a11eefd5d70d174f69b94912c76bc6c0d
Артём Павлов [Artyom Pavlov]
2017-03-21T10:46:39
Updated digest to rc1
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 8041b09..57c8e89 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0-delta" +version = "0.5.0-rc1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Diges...
1
1
1
3d3ab8eedf88b5e5471349d8ba9e429a877b9d14
Артём Павлов [Artyom Pavlov]
2017-03-21T10:23:42
Renamed digest traits
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 1dbc8ca..8041b09 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0-gamma" +version = "0.5.0-delta" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Dig...
2
8
8
b888f054fe85bd249e3d11a37638bc8b1afbd539
Артём Павлов [Artyom Pavlov]
2017-03-21T10:15:38
Added derived traits to digest::InvalidLength
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 29919b4..1dbc8ca 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0-beta" +version = "0.5.0-gamma" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Dige...
2
2
1
fec33d652a2b7655ec657d8c469a200766672ec9
Артём Павлов [Artyom Pavlov]
2017-03-21T09:57:43
typo fix
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 0d06778..6d764e9 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -19,7 +19,7 @@ pub trait DigestFixedOutput { fn fixed_result(self) -> GenericArray<u8, Self::OutputSize>; } -/// The error type for variable digest outpur +/// The error type for v...
1
1
1
160b9ded1cb880833c50163e136a808b93605755
Артём Павлов [Artyom Pavlov]
2017-03-21T09:55:08
Added VariableResult alias
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 1f3edf4..29919b4 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0-alpha" +version = "0.5.0-beta" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Dige...
2
5
2
450081d4e698fd1b18693e1ddafe78a9519393d1
Артём Павлов [Artyom Pavlov]
2017-03-20T17:28:37
Updated generic-array version
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index f6ae17e..1f3edf4 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -9,4 +9,4 @@ repository = "https://github.com/RustCrypto/hashes" keywords = ["digest", "crypto", "hash"] [dependencies] -generic-array = "0.6" +generic-array = "0.7"
1
1
1
24e421d399e7687a4cd5a4047152a10698cfda48
Артём Павлов [Artyom Pavlov]
2017-03-20T17:26:43
Fixed version
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 356d3ad..f6ae17e 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest" -version = "0.5.0rc1" +version = "0.5.0-alpha" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Digest...
1
1
1
1a660071fcc1c0d800249acb98c0c5ae2ee9aa3c
Kathryn Long
2025-12-31T07:17:03
Update author email
diff --git a/Cargo.toml b/Cargo.toml index cb12dee..03e8dbe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "half" # Remember to keep in sync with html_root_url crate attribute version = "2.7.1" -authors = ["Kathryn Long <squeeself@gmail.com>"] +authors = ["Kathryn Long <voidstarkat@robothearts.ca>"]...
1
2
2
e698ee8525a2a6c341b3f32a04477b8b1e74b876
Kathryn Long
2025-10-08T23:38:55
Ignore some tests in miri (due to diff floating point handling)
diff --git a/src/bfloat.rs b/src/bfloat.rs index 5d4b56f..05eafe2 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1571,6 +1571,7 @@ fn test_bf16_to_f32() { } #[test] + #[cfg_attr(miri, ignore)] fn test_bf16_to_f64() { let f = bf16::from_f64(7.0); assert_eq!(f.to_f64(), 7.0f64); ...
2
8
0
c4911096d1bb3887c6a161350328a14a6b641966
Kathryn Long
2025-10-08T23:28:58
Run rustfmt
diff --git a/src/lib.rs b/src/lib.rs index 500c053..d211fdd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -275,7 +275,7 @@ pub mod prelude { // Keep this module private to crate mod private { use crate::{bf16, f16}; - use zerocopy::{FromBytes, IntoBytes, Immutable}; + use zerocopy::{FromBytes, Immutable, Int...
2
2
2
bfb02394715c04b7783956308f50022ea000106d
Kathryn Long
2025-10-08T23:26:41
Remove docs.rs `doc_auto_cfg` feature and just wait until doc cfg stabilized. Fixes #135
diff --git a/src/lib.rs b/src/lib.rs index 74e0229..500c053 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -228,7 +228,6 @@ #![cfg_attr(not(feature = "std"), no_std)] #![doc(html_root_url = "https://docs.rs/half/2.6.0")] #![doc(test(attr(deny(warnings), allow(unused))))] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] //...
1
0
1
c5ef33e214a3ed958a303e72b272ec92a6448e4f
Ma Jian
2025-09-05T07:08:05
implement rand::distr::weighted::Weight
diff --git a/src/rand_distr.rs b/src/rand_distr.rs index 1c52f61..9a9fc67 100644 --- a/src/rand_distr.rs +++ b/src/rand_distr.rs @@ -25,6 +25,26 @@ fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $Ty { impl_distribution_via_f32!(bf16, rand_distr::Open01); impl_distribution_via_f32!(bf16, rand_distr::OpenClosed01); ...
1
20
0
536a3894c25a8f37123f5074312f862515566547
Joshua Liebow-Feeser
2025-07-16T16:24:30
Replce some unsafe code with safe equivalents Take zerocopy as a non-optional dependency. Add a zerocopy feature so that existing dependents which use the zerocopy feature won't fail to build.
diff --git a/Cargo.lock b/Cargo.lock index 13b46b2..9866447 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1001,18 +1001,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.23" +version = "0.8.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd97444d05a4328b90e75e503...
9
63
105
c27bfe9beb5493eb1562bca01e157c975e90d87d
Kathryn Long
2025-05-29T00:55:04
Fix rustfmt error
diff --git a/src/bfloat.rs b/src/bfloat.rs index df8b013..17ff777 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1877,13 +1877,13 @@ fn qc_roundtrip_bf16_f64_is_identity(f: bf16) -> bool { f.0 == roundtrip.0 } } - + #[test] fn test_max() { let a = bf16::from_f32(0.0...
2
5
5
d69f0d97efbacdf0a8840f825d992d723030a897
Kathryn Long
2025-05-29T00:47:51
Fix fmt error
diff --git a/src/lib.rs b/src/lib.rs index c304864..72d3cb5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -219,7 +219,6 @@ #![doc(html_root_url = "https://docs.rs/half/2.6.0")] #![doc(test(attr(deny(warnings), allow(unused))))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] - // Until updated to use newly stabilized `fr...
1
0
1
a61f31bace6b63c6d3336a3867b5617976b0653e
Mark Gottscho
2025-05-06T21:16:19
Fix bug #126: handle NaNs correctly in min() and max()
diff --git a/src/bfloat.rs b/src/bfloat.rs index e09d946..df8b013 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -511,7 +511,7 @@ pub const fn copysign(self, sign: bf16) -> bf16 { #[inline] #[must_use] pub fn max(self, other: bf16) -> bf16 { - if other > self && !other.is_nan() { + if se...
2
96
4
7580fd6ed13261dbde0cfcc982469a2b6047e7e4
Kathryn Long
2025-03-21T19:48:09
Update repository link
diff --git a/Cargo.toml b/Cargo.toml index f251cc6..afc48f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "half" version = "2.5.0" authors = ["Kathryn Long <squeeself@gmail.com>"] description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary...
1
1
1
9dc2559e95f295aaa8ffef5e0529167731dffd47
usamoi
2025-03-19T08:42:51
derive Immutable and KnownLayout for f16 and bf16
diff --git a/src/bfloat.rs b/src/bfloat.rs index 809d891..e09d946 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -20,7 +20,7 @@ #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; #[cfg(feature = "zerocopy")] -use zerocopy::{FromBytes, IntoBytes}; +use zerocopy::{FromBytes, Immutable, IntoBytes, KnownL...
2
10
4
c55579a4a1cd4cf62e9656cb310fbe22aa56e5b2
Kathryn Long
2025-03-14T02:15:03
fix doc reference
diff --git a/src/lib.rs b/src/lib.rs index af31d05..a53404a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,7 +88,7 @@ //! [`Deserialize`] traits for both [`struct@f16`] and [`struct@bf16`]. //! //! - **`num-traits`** — Adds support for the [`num-traits`] crate by implementing [`ToPrimitive`], -//! [`FromPrimiti...
1
2
2
0ce0933b8a21854cd1ab7632eb589efc1e002b1a
Kathryn Long
2025-03-14T01:54:17
remove unnecessary feature for optional dependency
diff --git a/Cargo.toml b/Cargo.toml index 2e9fdc1..d573ed4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ std = ["alloc"] use-intrinsics = [] # Deprecated alloc = [] rand_distr = ["dep:rand", "dep:rand_distr"] -arbitrary = ["dep:arbitrary"] [dependencies] cfg-if = "1.0.0"
1
0
1
402fce33c8a7dc6ce424e89c1f54de59b2e72dc0
Kathryn Long
2025-03-14T00:06:32
resolve cargo lockfile
diff --git a/Cargo.lock b/Cargo.lock index daf0e5e..941ddd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,9 +53,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/cr...
2
65
87
67541fe44dd5e21681eb37453a3aaa3274ef3512
oligami
2025-02-08T17:04:38
Update rand and rand_distr dependencies; refactor distribution implementations
diff --git a/Cargo.lock b/Cargo.lock index 273dfa3..daf0e5e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,16 +8,16 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom", + "ge...
3
342
156
e3036917cd34649b789f66c367d51889a3502fcd
Benjamin A. Beasley
2024-09-15T05:53:59
Update Cargo.lock for zerocopy
diff --git a/Cargo.lock b/Cargo.lock index 273dfa3..dc38953 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,12 +111,6 @@ dependencies = [ "syn 2.0.50", ] -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886...
1
4
11
c99d698ec1d485671ddb4f68212f24cfd65d1cce
Benjamin A. Beasley
2024-09-15T05:53:41
Allow current releases of zerocopy (0.7.x)
diff --git a/Cargo.toml b/Cargo.toml index fab7642..0e8d6d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ serde = { version = "1.0", default-features = false, features = [ num-traits = { version = "0.2.14", default-features = false, features = [ "libm", ], optional = true } -zerocopy = { version = "...
1
1
1
6bc4bea632269b53ccb6666a8508edc25fba9f3e
FL33TW00D
2024-05-15T11:11:54
chore: better
diff --git a/Cargo.toml b/Cargo.toml index f8b7d06..8ac9a9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.70" exclude = [".git*", ".editorconfig", ".circleci"] [features] -default = ["std", "arbitrary"] +default = ["std"] std = ["alloc"] use-intrinsics = [] #...
2
2
4
cbecbcf58fb2abba34dd34eea81531ae5b32f5e9
FL33TW00D
2024-05-14T08:51:08
chore: arb
diff --git a/Cargo.lock b/Cargo.lock index 273dfa3..31a9df1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,6 +28,15 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" +[[package]] +name = "arbitrary" +v...
3
27
1
c57c9e9527dfcd3f4cfd8800604d98a1d68fa70e
Kathryn Long
2024-02-25T23:19:10
allow redundant `rand` imports in nightly
diff --git a/src/rand_distr.rs b/src/rand_distr.rs index 2430096..decb974 100644 --- a/src/rand_distr.rs +++ b/src/rand_distr.rs @@ -97,6 +97,7 @@ fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::X { mod tests { use super::*; + #[allow(unused_imports)] use rand::{thread_rng, Rng}; use rand_d...
1
1
0
a61e4f2382e6994a35c23fda848fef44fa2bb03d
Kathryn Long
2024-02-25T23:11:09
allow redundant `core` imports due to core prelude changes in nightly
diff --git a/src/bfloat.rs b/src/bfloat.rs index c183aa9..2064afd 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1324,6 +1324,7 @@ fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E> #[cfg(test)] mod test { use super::*; + #[allow(unused_imports)] use core::cmp::Ordering; #[cfg(feature = "nu...
2
2
0
1537b8207a86a7c427efa2131d7189b762f87041
Kathryn Long
2024-02-25T23:06:38
allow redundant `alloc` import warnings due to new alloc prelude in nightly
diff --git a/src/vec.rs b/src/vec.rs index 2be2068..4dd811a 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -102,6 +102,7 @@ fn reinterpret_into<H>(self) -> Vec<H> mod private { use crate::{bf16, f16}; #[cfg(feature = "alloc")] + #[allow(unused_imports)] use alloc::vec::Vec; pub trait SealedHalfFl...
1
1
0
c2a254d575ffc42e2210ee829f5636ff3664eed6
Kathryn Long
2024-02-25T23:04:38
allow redundant `alloc` import warnings due to new alloc prelude in nightly
diff --git a/src/bfloat.rs b/src/bfloat.rs index be63c90..c183aa9 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1,4 +1,5 @@ #[cfg(all(feature = "serde", feature = "alloc"))] +#[allow(unused_imports)] use alloc::string::ToString; #[cfg(feature = "bytemuck")] use bytemuck::{Pod, Zeroable}; diff --git a/src/binar...
4
4
0
dd181b7c169d9ba8a5f3a815cdb76231d3ac5dc0
Kathryn Long
2024-02-25T22:47:11
remove NaN conversion sign tests due to hardware bugs. Closes #103
diff --git a/src/bfloat.rs b/src/bfloat.rs index a431135..be63c90 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1498,12 +1498,14 @@ fn test_nan_conversion_to_smaller() { assert!(neg_nan64.is_nan() && neg_nan64.is_sign_negative()); assert!(nan32.is_nan() && nan32.is_sign_positive()); asse...
2
32
24
3223addd82fac2a56549f718eba50e34eef1f703
charles-r-earp
2024-01-13T03:12:36
AsPrimitive f16 <-> bf16
diff --git a/src/num_traits.rs b/src/num_traits.rs index 4318699..7ffd4a6 100644 --- a/src/num_traits.rs +++ b/src/num_traits.rs @@ -718,6 +718,7 @@ fn as_(self) -> f16 { impl_as_primitive_to_f16!(usize, to_f32); impl_as_primitive_to_f16!(f32, to_f32); impl_as_primitive_to_f16!(f64, to_f64); +impl_as_primitive_to_f1...
1
2
0
839a0aaaa219fe5d3a10c07f66c3a5650cd060fc
Sven Cattell
2024-02-19T17:39:48
resolver rename ro get past warning
diff --git a/src/bfloat.rs b/src/bfloat.rs index 2cf5af7..ae5624a 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -36,6 +36,7 @@ #[repr(transparent)] #[cfg_attr(feature = "serde", derive(Serialize))] #[cfg_attr(feature = "rkyv", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize))] +#[cfg_attr(feature = "rky...
2
2
0
3c653f42b0230457810c29d1381faa6629655015
Sven Cattell
2024-02-19T17:24:41
Missed the archive trait
diff --git a/src/bfloat.rs b/src/bfloat.rs index c88c823..2cf5af7 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -35,7 +35,7 @@ #[derive(Clone, Copy, Default)] #[repr(transparent)] #[cfg_attr(feature = "serde", derive(Serialize))] -#[cfg_attr(feature = "rkyv", derive(rkyv::Serialize, rkyv::Deserialize))] +#[cfg_a...
2
2
2
0030062456317ab40303722c7e75dd10510007bb
Sven Cattell
2024-02-19T17:01:09
this should be it?
diff --git a/Cargo.toml b/Cargo.toml index 764c6bf..7732b4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ num-traits = { version = "0.2.14", default-features = false, features = ["libm"] zerocopy = { version = "0.6.0", default-features = false, optional = true } rand = { version = "0.8.5", default-featur...
3
3
0
a513d3bfcddc61a34f759852f6ac1f7c5ce79fd2
Kathryn Long
2024-02-10T23:02:13
Merge potential soundess protection from 1.8 branch
diff --git a/src/slice.rs b/src/slice.rs index 27c7b7c..08c3717 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -364,11 +364,7 @@ fn convert_to_f64_slice(&self, dst: &mut [f64]) { #[inline] #[allow(clippy::uninit_vec)] fn to_f32_vec(&self) -> Vec<f32> { - let mut vec = Vec::with_capacity(self.len(...
2
8
40
8407e348da92f99f9a575171129f13c1147a8ccb
Wazed-Matthis
2023-06-26T03:08:49
Fixed not compiling for i686-pc-windows-msvc
diff --git a/src/binary16/arch/x86.rs b/src/binary16/arch/x86.rs index e2a086e..3aea890 100644 --- a/src/binary16/arch/x86.rs +++ b/src/binary16/arch/x86.rs @@ -11,6 +11,9 @@ _MM_FROUND_TO_NEAREST_INT, }; +#[cfg(target_arch = "x86")] +use core::arch::x86::_mm_cvtps_ph; + use super::convert_chunked_slice_8; ...
1
3
0
a9564067731cd727509aa759d851620ae719ad6b
Kathryn Long
2023-06-24T21:59:50
exclude new circle CI files from package files
diff --git a/Cargo.toml b/Cargo.toml index b25e71f..15691de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0" categories = ["no-std", "data-structures", "encoding"] edition = "2021" rust-version = "1.70" -exclude = [".git*", ".editorconfig"] +exclude = [".git*", ".editorconfig"...
1
1
1
3811c19f120fbc3b0c49ba6ab7ff33f958157901
Kathryn Long
2023-06-24T21:57:55
ad to docs lossy conversion clarifications and alternatives to Into trait
diff --git a/src/bfloat.rs b/src/bfloat.rs index d6e223a..a431135 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -50,9 +50,9 @@ pub const fn from_bits(bits: u16) -> bf16 { /// Constructs a [`bf16`] value from a 32-bit floating point value. /// - /// If the 32-bit value is too large to fit, ±∞ will res...
3
45
37
933531e43e715e05de2a3de4ff0a0a490125e919
Mack Straight
2023-05-28T18:44:39
don't run format tests on no_std build.
diff --git a/src/bfloat.rs b/src/bfloat.rs index c3e6455..6d2fc90 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1812,6 +1812,7 @@ fn round_to_even_f64() { ); } + #[cfg(feature = "std")] #[test] fn formatting() { let f = bf16::from_f32(0.1152344); diff --git a/src/binary16.rs b...
2
2
0
dc2451688cbfc84f722740be096e81b730775ac5
Mack Straight
2023-05-28T18:07:56
support formatting options in Display/Debug traits
diff --git a/src/bfloat.rs b/src/bfloat.rs index 7f5041e..c3e6455 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -920,14 +920,14 @@ fn from_str(src: &str) -> Result<bf16, ParseFloatError> { #[cfg(not(target_arch = "spirv"))] impl Debug for bf16 { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> { - ...
2
34
4
5dc7591c9ef1f2032dc8a3189c430ddec9b7dcae
Shaoyuan CHEN
2023-05-24T06:10:33
Update bfloat.rs fix Sum implementation
diff --git a/src/bfloat.rs b/src/bfloat.rs index 7f5041e..c6deed2 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -1259,7 +1259,7 @@ fn sum<I: Iterator<Item = Self>>(iter: I) -> Self { impl<'a> Sum<&'a bf16> for bf16 { #[inline] fn sum<I: Iterator<Item = &'a bf16>>(iter: I) -> Self { - bf16::from_f3...
1
1
1
c3ee4eae043a327279a4fc65655b4c91ce3b5a42
Corey Lowman
2023-04-01T15:21:14
Fixes docstring link to Distribution
diff --git a/src/lib.rs b/src/lib.rs index 089c87a..cd457c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ //! - **`zerocopy`** — Adds support for the [`zerocopy`] crate by implementing [`AsBytes`] and //! [`FromBytes`] traits for both [`f16`] and [`bf16`]. //! -//! - **`rand_distr`** — Adds support fo...
1
1
1
a4a6f0407ad881708d877e61762849bc654b4112
Corey Lowman
2023-03-28T13:13:57
Reduce num-traits depends in rand_distr tests
diff --git a/src/rand_distr.rs b/src/rand_distr.rs index 48960f0..2430096 100644 --- a/src/rand_distr.rs +++ b/src/rand_distr.rs @@ -94,20 +94,21 @@ fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::X { } #[cfg(test)] -#[cfg(feature = "num-traits")] mod tests { use super::*; use rand::{thread_rng...
1
7
4