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
77eda32df458b8b5da5a6760de8e5374e2f375c6
Артём Павлов [Artyom Pavlov]
2017-10-30T02:15:03
use re-exported generic-array
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 48025cc..596f8b7 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -12,4 +12,3 @@ keywords = ["crypto", "tests"] digest = "0.7" crypto-mac = "0.4" block-cipher-trait = "0.5" -generic-array = "0.8" diff --git a/crypto-tests/src/b...
2
1
2
5c87382dece5f1f3eef405869072cf5f1055a1e9
Артём Павлов [Artyom Pavlov]
2017-10-30T01:23:13
digest v0.7 draft update
diff --git a/Cargo.toml b/Cargo.toml index c5c822a..abb46d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,4 @@ members = [ [patch.crates-io] block-cipher-trait = { git = "https://github.com/RustCrypto/traits" } +digest = { git = "https://github.com/RustCrypto/traits" } diff --git a/crypto-tests/Cargo.toml b...
2
2
1
553de22fe86e73ad1ec695f3f8b19a10d18a8a70
Jeremy Mill
2017-10-13T01:19:36
fix to documentation (#4) both said little endian, changed the big endian one to the right comment
diff --git a/byte-tools/src/write_slice.rs b/byte-tools/src/write_slice.rs index 827877d..ed94e07 100644 --- a/byte-tools/src/write_slice.rs +++ b/byte-tools/src/write_slice.rs @@ -39,7 +39,7 @@ pub fn write_u64v_le(dst: &mut [u8], src: &[u64]) { } /// Write a vector of u64s into a vector of bytes. The values are w...
1
1
1
20ed8c9b516e1837b2dc12f4d8f67c1d9d4de1ff
newpavlov
2017-10-06T09:49:38
crypto-tests v0.6.0 draft
diff --git a/Cargo.toml b/Cargo.toml index 58061fa..c5c822a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,6 @@ members = [ #"digest-buffer", "fake-simd", ] + +[patch.crates-io] +block-cipher-trait = { git = "https://github.com/RustCrypto/traits" } diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Car...
3
8
5
b905d1e0d870b22625417ac94c1b3d015f7afc10
Артём Павлов [Artyom Pavlov]
2017-09-05T21:43:18
crypto-tests v0.5.5
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 39a256a..b5e3c3f 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.5.4" +version = "0.5.5" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
1
2
2
2285ac81547c9e417647e8070b83a6ea063fcc1b
Артём Павлов [Artyom Pavlov]
2017-09-02T20:57:57
Added decryption bench
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index dcfe3bd..39a256a 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.5.3" +version = "0.5.4" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
2
13
1
102c26ac565f5c103c8d0f60a8b9b66c987322c0
Артём Павлов [Artyom Pavlov]
2017-09-02T20:55:44
Fixed bench for block ciphers
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 66985e4..dcfe3bd 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.5.2" +version = "0.5.3" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
2
4
6
c6165fd1304160e08a67e733d089ceba2e243cd8
Артём Павлов [Artyom Pavlov]
2017-09-02T20:48:03
Fixed block cipher tests and benchmarks
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 122c238..66985e4 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.5.1" +version = "0.5.2" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
2
15
16
20ad91b311aaf4445f725bd9cacd272b0bedfa26
Artyom Pavlov
2017-06-13T14:36:55
Added 1024 bits block buffer
diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml index cd6e3b2..8825581 100644 --- a/block-buffer/Cargo.toml +++ b/block-buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-buffer" -version = "0.3.0" +version = "0.3.1" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "...
2
3
2
26019a3dbf1c4900f1ae36825ec484eae1076da9
Artyom Pavlov
2017-06-13T09:42:42
Non-generic block-buffer
diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml index 8cffd56..cd6e3b2 100644 --- a/block-buffer/Cargo.toml +++ b/block-buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-buffer" -version = "0.2.0" +version = "0.3.0" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "...
2
112
92
3b115a87e442a6541d3a6bca022ddb2707c70c91
Artyom Pavlov
2017-06-12T07:19:46
Removed patch version requirement for crypto-tests
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 8bc6653..122c238 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.5.0" +version = "0.5.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
1
2
2
64863666a3981864814d670a42fdb6b1b764c3f1
Artyom Pavlov
2017-06-12T07:13:04
removed patch version requirement for hmac
diff --git a/hmac/Cargo.toml b/hmac/Cargo.toml index d8293bb..9b345d8 100644 --- a/hmac/Cargo.toml +++ b/hmac/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "hmac" -version = "0.3.0" -authors = ["The RustCrypto Devs"] +version = "0.3.1" +authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Gen...
1
3
3
13206b536cae52f7cf710395049b2017c115b53a
Artyom Pavlov
2017-06-12T07:08:16
hmac v0.3.0
diff --git a/hmac/Cargo.toml b/hmac/Cargo.toml index 8596555..d8293bb 100644 --- a/hmac/Cargo.toml +++ b/hmac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hmac" -version = "0.1.1" +version = "0.3.0" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "Generic implementation of Hash-based Mes...
2
35
35
b8017d618b0de58e865f2331d9b3d38fdaab3bd7
Artyom Pavlov
2017-06-12T04:47:06
crypto-tests v0.5
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 340f9cc..8bc6653 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.1" +version = "0.5.0" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
1
2
2
744e9b78b7214edabafccb0658a1576de078d0de
Artyom Pavlov
2017-06-12T04:34:22
Removed digest-buffer from Travis
diff --git a/Cargo.toml b/Cargo.toml index 463504b..d18e3d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = [ "byte-tools", "crypto-tests", #"ctgrind", - "digest-buffer", + #"digest-buffer", "fake-simd", "hmac", ]
1
1
1
525e66d75b838d4dfb5f5d91ef1812be9dbd83d1
Artyom Pavlov
2017-06-12T04:31:16
crypto-tests updates
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index ac29e1d..340f9cc 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/RustCrypto/utils" keywords = ["crypto", "tests"] [dependencies] -digest = "0.5.0" -crypto-mac = "0.3" -block-ciphe...
2
7
8
ed8384c657df7d261b13f7632b543d56217ce006
Artyom Pavlov
2017-06-12T03:51:10
Bumped generic-array to v0.8 for block-buffer
diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml index 53005ae..8cffd56 100644 --- a/block-buffer/Cargo.toml +++ b/block-buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-buffer" -version = "0.1.0" +version = "0.2.0" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "...
1
2
2
3eafc986814867d52d33f7c5bd8c4a7fc286b26c
Artyom Pavlov
2017-06-12T01:07:42
Removed keyword from block-buffer
diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml index 6cd7159..53005ae 100644 --- a/block-buffer/Cargo.toml +++ b/block-buffer/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT/Apache-2.0" description = "Fixed size buffer for block processing of data" documentation = "https://docs.rs/block-buffer" repository ...
1
1
1
274587f38fb2084ceeef0646d9f731a420864afb
Artyom Pavlov
2017-06-12T00:36:23
Removed public fields in the block-buffer
diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs index 92f44d8..f255925 100644 --- a/block-buffer/src/lib.rs +++ b/block-buffer/src/lib.rs @@ -12,8 +12,8 @@ type Block<N> = GenericArray<u8, N>; #[derive(Default, Clone, Copy)] pub struct BlockBuffer<N: ArrayLength<u8>> where N::ArrayType: Copy { - p...
1
2
2
11d4a91bebe889b10f57ab1d6c4dce2e3c0d5095
Artyom Pavlov
2017-06-08T16:58:41
Added set function to byte tools
diff --git a/byte-tools/src/lib.rs b/byte-tools/src/lib.rs index b21a12a..323bf38 100644 --- a/byte-tools/src/lib.rs +++ b/byte-tools/src/lib.rs @@ -25,7 +25,13 @@ pub fn copy_memory(src: &[u8], dst: &mut [u8]) { /// Zero all bytes in dst #[inline] pub fn zero(dst: &mut [u8]) { + set(dst, 0); +} + +/// Sets all b...
1
8
2
00f57c0d9f52dde4cfc8650476e4560e1fb34e56
Artyom Pavlov
2017-06-08T16:58:24
Padding addition
diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs index 57bded6..92f44d8 100644 --- a/block-buffer/src/lib.rs +++ b/block-buffer/src/lib.rs @@ -4,6 +4,10 @@ extern crate byte_tools; use generic_array::{GenericArray, ArrayLength}; use byte_tools::{zero, write_u64_le}; +mod paddings; + +pub use paddings:...
2
136
134
4f527c58ed28dd91945d9ea2ae043ecc5ea026fd
Artyom Pavlov
2017-06-06T17:31:34
Fixed byte-tools, added block-buffer
diff --git a/Cargo.toml b/Cargo.toml index 08b1f49..463504b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] members = [ + "block-buffer", "byte-tools", "crypto-tests", #"ctgrind", diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml new file mode 100644 index 0000000.....
4
261
9
12b85f9a7f1f59fe835cef2d22a5015f3df9fd18
Artyom Pavlov
2017-06-06T11:24:48
Byte tools update
diff --git a/byte-tools/Cargo.toml b/byte-tools/Cargo.toml index bd851c3..ce79750 100644 --- a/byte-tools/Cargo.toml +++ b/byte-tools/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "byte-tools" -version = "0.1.3" +version = "0.2.0" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" descriptio...
7
175
354
5bb996845ef295d31d371a784395d82ae56aa3b6
Артём Павлов [Artyom Pavlov]
2017-05-14T15:47:03
Small doc change
diff --git a/hmac/src/lib.rs b/hmac/src/lib.rs index 69d9586..a3640d5 100644 --- a/hmac/src/lib.rs +++ b/hmac/src/lib.rs @@ -18,7 +18,7 @@ //! //! // Create `Mac` trait implementation, namely HMAC-SHA256 //! let mac = Hmac::<Sha256>::new(b"my secret and secure key"); -//! mac.input(b"my message"); +//! mac.input(b"...
1
1
1
ffa1754803aa358959140e5180be342c5d677f8c
Артём Павлов [Artyom Pavlov]
2017-05-14T15:27:43
Added docs to HMAC
diff --git a/hmac/Cargo.toml b/hmac/Cargo.toml index ab114ef..8596555 100644 --- a/hmac/Cargo.toml +++ b/hmac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hmac" -version = "0.1.0" +version = "0.1.1" authors = ["The RustCrypto Devs"] license = "MIT/Apache-2.0" description = "Generic implementation of Hash-based Mes...
2
44
2
29ed016a464c101d79838cd52c94b070fd9ae46b
Артём Павлов [Artyom Pavlov]
2017-05-14T15:00:29
Updated crypto tests
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 9997bb6..ac29e1d 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.0" +version = "0.4.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
3
43
1
a966eaa8e31b6383373e6c2a20248ea4ada01858
Артём Павлов [Artyom Pavlov]
2017-05-14T03:26:33
Fixed dependency versions
diff --git a/hmac/Cargo.toml b/hmac/Cargo.toml index 068b191..ccf2dcb 100644 --- a/hmac/Cargo.toml +++ b/hmac/Cargo.toml @@ -10,8 +10,8 @@ keywords = ["crypto", "mac", "hmac", "digest"] [dependencies] crypto-mac = "0.2" -generic-array = "*" +generic-array = "0.7" digest = "0.5" [dev-dependencies] -md-5 = "*" \ ...
1
2
2
488e51093bd1c81c31ca111ddb6be342181c343d
Артём Павлов [Artyom Pavlov]
2017-05-14T03:22:22
digest-buffer version bump
diff --git a/digest-buffer/Cargo.toml b/digest-buffer/Cargo.toml index f79fec6..230e794 100644 --- a/digest-buffer/Cargo.toml +++ b/digest-buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest-buffer" -version = "0.3.0" +version = "0.3.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2...
1
1
1
e1e4bbdc3e3f74506ecab6920427fcd3d4a951c4
Артём Павлов [Artyom Pavlov]
2017-04-06T14:56:51
crypto-tests 0.4 release
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 14fc381..9997bb6 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.0-rc2" +version = "0.4.0" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2....
1
2
2
79026b5ee06e82c77b182ca0384b1ea98ff91012
Артём Павлов [Artyom Pavlov]
2017-04-06T14:55:46
Digest-buffer 0.3 release
diff --git a/digest-buffer/Cargo.toml b/digest-buffer/Cargo.toml index 161ea58..f79fec6 100644 --- a/digest-buffer/Cargo.toml +++ b/digest-buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest-buffer" -version = "0.3.0-alpha" +version = "0.3.0" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Ap...
1
1
1
9f55fa377bdd99056d00bd55e16f35f06706cff1
Артём Павлов [Artyom Pavlov]
2017-04-06T14:11:48
Chnaged bench sizes in the crypto-tests
diff --git a/crypto-tests/src/hash.rs b/crypto-tests/src/hash.rs index 94cac3c..05676de 100644 --- a/crypto-tests/src/hash.rs +++ b/crypto-tests/src/hash.rs @@ -116,7 +116,7 @@ macro_rules! bench_digest { bench_digest!(bench2_64, $engine, 1<<6); bench_digest!(bench3_256, $engine, 1<<8); bench...
1
2
2
006b40d4eb35a17a367e67f5159f259f9a680037
Артём Павлов [Artyom Pavlov]
2017-04-06T14:07:40
Reorder of benches in crypto-tests
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 0dbf836..14fc381 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.0-rc1" +version = "0.4.0-rc2" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apach...
2
7
7
29af2a91500ae9b020c947daf9c26594e151c34d
Артём Павлов [Artyom Pavlov]
2017-03-28T15:49:30
Added variable output test for hashes
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 363adeb..0dbf836 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.0-beta" +version = "0.4.0-rc1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apac...
2
33
3
0c9f09c62dc3601d3944fff956a35ff6d3370c47
Артём Павлов [Artyom Pavlov]
2017-03-21T10:28:42
Updated digest to delta
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index 39dcc2d..363adeb 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.4.0-alpha" +version = "0.4.0-beta" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Ap...
1
2
2
e6c4e43d1e10618f98cf62603c97538b66dc034a
Артём Павлов [Artyom Pavlov]
2017-03-20T17:49:10
Fixed Travis CI build
diff --git a/Cargo.toml b/Cargo.toml index d84a8b0..888fdf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ members = [ "byte-tools", "crypto-tests", - "ctgrind", + #"ctgrind", "digest-buffer", "fake-simd", ] diff --git a/ctgrind/Cargo.toml b/ctgrind/Cargo.toml index 7946377..273276...
2
3
1
fd0c60a531383377b75e931da50431f20d953d19
Артём Павлов [Artyom Pavlov]
2017-01-29T07:10:49
Added read_u64_* functions
diff --git a/byte-tools/Cargo.toml b/byte-tools/Cargo.toml index 05bd9de..bd851c3 100644 --- a/byte-tools/Cargo.toml +++ b/byte-tools/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "byte-tools" -version = "0.1.2" +version = "0.1.3" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" descriptio...
2
25
1
52ca91db022fc42439858323849135a4aae056a1
Артём Павлов [Artyom Pavlov]
2017-01-18T09:52:52
Bumped crypto-tests version 0.3.1->0.3.2
diff --git a/crypto-tests/Cargo.toml b/crypto-tests/Cargo.toml index f8c97bb..dec2492 100644 --- a/crypto-tests/Cargo.toml +++ b/crypto-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-tests" -version = "0.3.1" +version = "0.3.2" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" ...
1
1
1
a50e843e1c2d65a0018ea7f49e6e63d887fc3921
Gulshan Singh
2017-01-18T08:51:53
crypto-tests: support trailing newlines in the new_tests! macro
diff --git a/crypto-tests/src/hash.rs b/crypto-tests/src/hash.rs index 09422ba..6de4e6f 100644 --- a/crypto-tests/src/hash.rs +++ b/crypto-tests/src/hash.rs @@ -17,6 +17,7 @@ macro_rules! new_tests { }, )*] }; + ( $( $name:expr ),+, ) => (new_tests!($($name),+)) } pub fn main_test<D: D...
1
1
0
240f9f04f4de30824386c2ee40398dfbd9bc4b83
Артём Павлов [Artyom Pavlov]
2016-12-25T02:41:29
fake-simd patch version bump
diff --git a/fake-simd/Cargo.toml b/fake-simd/Cargo.toml index 70e2dd5..135c660 100644 --- a/fake-simd/Cargo.toml +++ b/fake-simd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fake-simd" -version = "0.1.1" +version = "0.1.2" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "...
1
1
1
bdafaedc43accc2c7c53408144f2bc58bfc1bb0a
Moritz "WanzenBug" Wanzenböck
2022-01-30T22:57:00
(cargo-release) start next development iteration 1.0.4-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index e8879b0..83b3611 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.3" +version = "1.0.4-alpha.0" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
b3345feb3c2bc2938d9b39aa1a83d9e63b5bc86f
Moritz "WanzenBug" Wanzenböck
2022-01-30T22:56:53
(cargo-release) version 1.0.3
diff --git a/Cargo.toml b/Cargo.toml index a117d61..e8879b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.3-alpha.0" +version = "1.0.3" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
f17201d4bf417f963831895d98f52c110245c290
Moritz "WanzenBug" Wanzenböck
2022-01-30T22:46:53
no std support
diff --git a/src/lib.rs b/src/lib.rs index f9196bb..a258fa8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,10 +15,12 @@ //! assert_eq!(decode_buffer, [0, 0, 1, 1, 0, 2, 3, 1, 0, 2, 3, 1, 0, 2, 3, 1, 0]); //! ``` -use std::{ - ptr, - ops, -}; +#![no_std] + +use core::ptr; +use core::ops; +extern crate alloc; ...
1
7
4
fcf96da876c9951ce8929da93d57d256a625dc9e
Moritz "WanzenBug" Wanzenböck
2022-01-30T22:25:41
(cargo-release) start next development iteration 1.0.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index b67ea5e..f0eb930 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.2" +version = "1.0.3-alpha.0" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
e4e68aa24e30eeb6b47183fa5342c1da74d05b0d
Moritz "WanzenBug" Wanzenböck
2022-01-30T22:25:23
(cargo-release) version 1.0.2
diff --git a/Cargo.toml b/Cargo.toml index be735e6..b67ea5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.2-alpha.0" +version = "1.0.2" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
8f8bc47cace8694c7890f967e9989b9d9ced4c3c
Jorge C. Leitao
2022-01-07T05:03:03
Fixed UB
diff --git a/src/lib.rs b/src/lib.rs index e472204..f9196bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,11 +80,11 @@ fn append_from_within<T>(seif: &mut Vec<T>, src: ops::Range<usize>) where T: Cop unsafe { // This is safe because reserve() above succeeded, // so `seif.len() + count` did not ...
1
5
5
690742a0de158d391b7bde1a0c71cccfdad33ab3
WanzenBug
2019-06-30T14:14:51
(cargo-release) start next development iteration 1.0.1
diff --git a/Cargo.toml b/Cargo.toml index 14d1fa3..be735e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.1" +version = "1.0.2-alpha.0" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
5c91716f0ce8b4a702505496d096440f5b915158
WanzenBug
2019-06-30T14:14:46
(cargo-release) version 1.0.1
diff --git a/Cargo.toml b/Cargo.toml index b76975a..14d1fa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.1-alpha.0" +version = "1.0.1" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
b9df8f59b7b83914bc35c6866e37b458371b7df8
WanzenBug
2019-06-30T14:01:51
(cargo-release) start next development iteration 1.0.0
diff --git a/Cargo.toml b/Cargo.toml index 2688090..b76975a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.0" +version = "1.0.1-alpha.0" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
aa1db0e7b82a7e0c793d8b4db8494efc7ce39469
WanzenBug
2019-06-30T14:01:43
(cargo-release) version 1.0.0
diff --git a/Cargo.toml b/Cargo.toml index 78a9ffa..2688090 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-fast" -version = "1.0.0-alpha2" +version = "1.0.0" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2015" license = "MIT OR Apache-2.0"
1
1
1
eb20f643902258cebef1ff22413e59aecbf2dfbe
WanzenBug
2019-06-30T14:00:37
cleanup: remove simple variant for release
diff --git a/benches/bench.rs b/benches/bench.rs index 6b381cf..2b4424c 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -79,21 +79,6 @@ fn lib(bencher: &mut Bencher, inputs: &Rc<Inputs>) { ) } -fn lib_simple(bencher: &mut Bencher, inputs: &Rc<Inputs>) { - bencher.iter_batched( - move || inputs...
2
1
56
f2400b0377dccbed776ae6ba56acfaaf5a4c4f6f
WanzenBug
2019-06-28T18:57:36
bench: add more complex benchmark setup
diff --git a/benches/bench.rs b/benches/bench.rs index 596e6cf..6b381cf 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,66 +1,94 @@ +extern crate criterion; +extern crate rle_decode_fast; + use criterion::{BatchSize, Bencher, black_box, Criterion, criterion_group, criterion_main, ParameterizedBenchmark}; ...
2
145
51
a5181011d4271000bc7ef79608f901289cb13edb
WanzenBug
2019-06-27T07:16:42
compat: make benchmark optional
diff --git a/Cargo.toml b/Cargo.toml index 9fa4495..0f2b37c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,10 @@ readme = "README.md" [[bench]] name = "bench" harness = false +required-features = ["bench"] -[dependencies] +[features] +bench = ["criterion"] -[dev-dependencies] -criterion = "0.2" +[dependen...
1
5
3
0a1e331ce4d2802402e1d3a489c6d8f6589aa644
WanzenBug
2019-06-27T06:32:34
compat: change crate edition to 2015 Stay compatible with compilers before editions were introduced. This change ensures that no new syntax features are used when using up-to-date compilers. the edition key is ignored with older toolchains, so they work out-of-the-box.
diff --git a/Cargo.toml b/Cargo.toml index 0217d60..9fa4495 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "rle-decode-helper" version = "1.0.0-alpha2" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] -edition = "2018" +edition = "2015" license = "MIT OR Apache-2.0" description = """ THE fa...
1
1
1
2ad2b02b8126d736aefd60c4c3b0b36900d0d6b0
WanzenBug
2019-06-26T21:27:06
release: 1.0.0-alpha2
diff --git a/Cargo.toml b/Cargo.toml index 7950226..0217d60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rle-decode-helper" -version = "1.0.0-alpha" +version = "1.0.0-alpha2" authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2018" license = "MIT OR Apache-2.0"
1
1
1
dac1c72545821e5de1f9a7529ac7fbec7414a1e4
WanzenBug
2019-06-26T21:25:36
cargo: add readme to metadata
diff --git a/Cargo.toml b/Cargo.toml index 8338966..7950226 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,12 +5,13 @@ authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "2018" license = "MIT OR Apache-2.0" description = """ -**THE** fastest way to implement any kind of decoding for **R**un **L**ength ...
1
2
1
40c99318924fca1201ada30a1bad1f94ee8b6bb8
WanzenBug
2019-06-26T21:19:56
cargo: Add description + update mail
diff --git a/Cargo.toml b/Cargo.toml index 2850445..8338966 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,16 @@ [package] name = "rle-decode-helper" version = "1.0.0-alpha" -authors = ["Moritz Wanzenböck <moritz.wanzenboeck@catalysts.cc>"] +authors = ["Moritz Wanzenböck <moritz@wanzenbug.xyz>"] edition = "201...
1
8
1
35a486cd9ec8a9bf5c1418f531e9e525bc2e3e57
WanzenBug
2019-06-26T20:22:47
benchmarks: add comparative benchmarks
diff --git a/benches/bench.rs b/benches/bench.rs index bb26b0d..5c4d7db 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,73 +1,100 @@ -use criterion::{ - BatchSize, - black_box, - Criterion, - criterion_group, - criterion_main, -}; +use criterion::{BatchSize, Bencher, black_box, Criterion, crit...
1
85
58
dfa9f880566e468369072fdf178c2c24a86b2225
Nik Revenco
2026-01-15T13:34:03
Pass tokens that failed to parse as `Expr` to `FromMeta::from_invalid_expr`
diff --git a/core/src/ast/data/mod.rs b/core/src/ast/data/mod.rs index bc6276e..934ab0b 100644 --- a/core/src/ast/data/mod.rs +++ b/core/src/ast/data/mod.rs @@ -9,7 +9,7 @@ use crate::usage::{ }; use crate::{Error, FromField, FromVariant, Result}; -pub use nested_meta::NestedMeta; +pub use nested_meta::{MetaNameVal...
6
421
31
3c16c07d4c6ff5b1b9684deec4304ea3194b8d86
Ted Driggs
2026-01-09T20:19:16
Check fields earlier for FromVariant impls Previously, a problem in a variant's attributes would prevent discovery of issues in the variant's fields. This commit also updates the tests of `supports` to ensure there is coverage of the interaction between `supports` and forwarding. Fixes #419
diff --git a/core/src/codegen/from_variant_impl.rs b/core/src/codegen/from_variant_impl.rs index 0ada0c3..7eaa319 100644 --- a/core/src/codegen/from_variant_impl.rs +++ b/core/src/codegen/from_variant_impl.rs @@ -1,6 +1,7 @@ use proc_macro2::TokenStream; use quote::{quote, ToTokens}; -use syn::{parse_quote, Ident}; +...
3
48
17
7d716c89fd777ae17c5b21a3d9e7f19b5fb83cf6
Ted Driggs
2026-01-09T19:57:05
Refactor forwarded field initialization Forwarded fields are now kept as syn::FieldValue structs during codegen, which decreases the risk of producing invalid macro output, and will accelerate catching errors.
diff --git a/core/src/codegen/attrs_field.rs b/core/src/codegen/attrs_field.rs index c490edc..74aae8b 100644 --- a/core/src/codegen/attrs_field.rs +++ b/core/src/codegen/attrs_field.rs @@ -36,9 +36,11 @@ impl ForwardAttrs<'_> { self.field.map(ValuePopulator) } - /// Get the field initializer for use ...
7
81
86
25686b2a9134b5c6d6810bf43f3b8119f793c163
Nik Revenco
2026-01-04T16:22:25
Add example on implementing `#[derive]`
diff --git a/examples/derive.rs b/examples/derive.rs new file mode 100644 index 0000000..2ca3ef6 --- /dev/null +++ b/examples/derive.rs @@ -0,0 +1,35 @@ +//! Shows how to implement a `#[derive]`-like macro. + +use std::collections::HashSet; + +use darling::FromDeriveInput; +use syn::{parse_quote, Path}; + +#[derive(Fro...
1
35
0
edf831eeb483d87c34161dba2a81284b04d9f2eb
Nik Revenco
2026-01-04T16:16:10
Add `impl FromMeta` for `Vec<Ident>`, `Vec<Path>`, `HashSet<Ident>` and `HashSet<Path>`
diff --git a/core/src/from_meta.rs b/core/src/from_meta.rs index 434553e..482abf7 100644 --- a/core/src/from_meta.rs +++ b/core/src/from_meta.rs @@ -9,7 +9,7 @@ use std::rc::Rc; use std::sync::atomic::AtomicBool; use std::sync::Arc; -use syn::{Expr, Lit, Meta}; +use syn::{Expr, Ident, Lit, Meta, Path}; use crate...
1
172
3
2cea9a343d2b90f49703c81ccdeaed32d5c39030
Nik Revenco
2026-01-03T12:07:11
Fix path starting with :: not being recognized
diff --git a/core/src/ast/data/nested_meta.rs b/core/src/ast/data/nested_meta.rs index d925a87..32a2eba 100644 --- a/core/src/ast/data/nested_meta.rs +++ b/core/src/ast/data/nested_meta.rs @@ -133,7 +133,9 @@ impl syn::parse::Parse for NestedMeta { // 3. `outer(crate(..))` if input.peek(syn::Lit) ...
1
22
1
60d32413346c04d46e8ac4b81dcf070604d427bb
Nik Revenco
2026-01-03T12:06:56
Implement `PartialEq` and `Eq` for `NestedMeta`
diff --git a/core/src/ast/data/nested_meta.rs b/core/src/ast/data/nested_meta.rs index 8cfff8b..d925a87 100644 --- a/core/src/ast/data/nested_meta.rs +++ b/core/src/ast/data/nested_meta.rs @@ -97,7 +97,7 @@ fn parse_meta_name_value_after_path<'a>( }) } -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq,...
1
1
1
255ae5905d1d92553857793a227f34dcd2ba0abe
Nik Revenco
2026-01-05T14:38:35
Don't require types to implement `FromMeta` when unnecessary (#406) Don't require `FromMeta` impl for fields marked `#[darling(with)]`
diff --git a/core/src/codegen/field.rs b/core/src/codegen/field.rs index 903a03a..cee4a6a 100644 --- a/core/src/codegen/field.rs +++ b/core/src/codegen/field.rs @@ -251,11 +251,7 @@ impl ToTokens for CheckMissing<'_> { let ident = self.0.ident; let ty = self.0.ty; let name_in_attr...
8
170
7
b160eaa3e745686edb1de0df235b33800e0b7ad3
Nik Revenco
2025-12-28T16:53:59
Add some intra-doc links to the crate-level docs
diff --git a/src/lib.rs b/src/lib.rs index a74d274..b66ae00 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ //! //! ## Design //! Darling takes considerable design inspiration from [`serde`](https://serde.rs). A data structure that can be -//! read from any attribute implements `FromMeta` (or has an impleme...
1
6
6
80148f8ce71375ef634e08c2f8be6b72792021ef
Nik Revenco
2025-12-28T13:49:45
Optimize `path_to_string`
diff --git a/core/src/codegen/attr_extractor.rs b/core/src/codegen/attr_extractor.rs index a455a77..f9e9fa3 100644 --- a/core/src/codegen/attr_extractor.rs +++ b/core/src/codegen/attr_extractor.rs @@ -98,7 +98,7 @@ pub trait ExtractAttribute { for __attr in #attrs_accessor { // Filter at...
2
13
4
8379d41888a1e05127ac838411513e84aee52dd9
Nik Revenco
2025-12-27T23:14:32
Fix absolute path
diff --git a/core/src/codegen/from_derive_impl.rs b/core/src/codegen/from_derive_impl.rs index cf8278c..9849f84 100644 --- a/core/src/codegen/from_derive_impl.rs +++ b/core/src/codegen/from_derive_impl.rs @@ -86,7 +86,7 @@ impl ToTokens for FromDeriveInputImpl<'_> { .as_ref() .map(|i| match &i...
1
1
1
ae6214ab56dadb718c03e37005075bfe9208ee94
Ted Driggs
2025-12-22T18:58:59
Use absolute paths in generated code Fixes #401
diff --git a/core/src/codegen/attrs_field.rs b/core/src/codegen/attrs_field.rs index 1549831..c490edc 100644 --- a/core/src/codegen/attrs_field.rs +++ b/core/src/codegen/attrs_field.rs @@ -48,8 +48,8 @@ impl ToTokens for Declaration<'_> { fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { let id...
2
3
3
e60d7ef69ac411d9fc3f62f3ccbd0ac538944ce7
Sebastian Knackstedt
2025-12-20T14:16:29
Allow clippy::needless_continue in generated code Fixes #399
diff --git a/core/src/codegen/outer_from_impl.rs b/core/src/codegen/outer_from_impl.rs index 7548c29..a9fa833 100644 --- a/core/src/codegen/outer_from_impl.rs +++ b/core/src/codegen/outer_from_impl.rs @@ -28,6 +28,7 @@ pub trait OuterFromImpl<'a> { let impl_ = quote! { #[automatically_derived] ...
1
1
0
0f5209316d81a3826cc0433beb0052ce86366b60
Nik Revenco
2025-12-22T18:31:48
Add `darling::util::extract_option` helpers to extract `T` from `Option<T>` (#398) Co-authored-by: Ted Driggs <ted.driggs@outlook.com>
diff --git a/core/src/util/extract_option.rs b/core/src/util/extract_option.rs new file mode 100644 index 0000000..07629a9 --- /dev/null +++ b/core/src/util/extract_option.rs @@ -0,0 +1,268 @@ +//! Functions to extract a type `T` from a type declaration `Option<T>`. +//! +//! These functions return `Result` rather than...
2
269
0
653c327681d34e3a73e6653d015b243c5f69de9b
Ted Driggs
2025-12-11T14:10:33
Preserve Path type longer in codegen Previously, liberal use of TokenStream meant errors were only apparent in generated code. This change makes it clear that we expect a Path.
diff --git a/core/src/codegen/from_derive_impl.rs b/core/src/codegen/from_derive_impl.rs index 6bc9ea3..1003d41 100644 --- a/core/src/codegen/from_derive_impl.rs +++ b/core/src/codegen/from_derive_impl.rs @@ -1,6 +1,6 @@ use proc_macro2::TokenStream; use quote::{quote, quote_spanned, ToTokens}; -use syn::{spanned::Sp...
1
6
6
870b2b2898a3853b08301f8342fb6c0ff174fd8d
Ted Driggs
2025-12-10T23:39:23
Export TryFrom
diff --git a/src/lib.rs b/src/lib.rs index e6024c0..a4ea5a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,7 +105,7 @@ pub use darling_core::ToTokens; /// of the referenced types. #[doc(hidden)] pub mod export { - pub use core::convert::{identity, From, Into}; + pub use core::convert::{identity, From, Into, ...
1
1
1
334ee489cc3d443cbb3a95bcefc03998e6b8c337
Ted Driggs
2025-12-03T15:29:20
Bump version to 0.23.0
diff --git a/Cargo.toml b/Cargo.toml index 89e1fae..40e769c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "darling" -version = "0.22.0" +version = "0.23.0" authors = ["Ted Driggs <ted.driggs@outlook.com>"] repository = "https://github.com/TedDriggs/darling" -documentation = "https://docs...
3
7
7
4e57762f5d95d38a08998b1ca447f5c05580a599
Ted Driggs
2025-12-03T15:05:40
Revert "Lock quote version" This reverts commit 7536387a7be85176b4e1810a2d7d5c371e3c7fc6.
diff --git a/Cargo.toml b/Cargo.toml index 5852f3f..4d09785 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ darling_macro = { version = "=0.22.0", path = "macro" } [dev-dependencies] proc-macro2 = "1.0.86" -quote = "=1.0.40" # 1.0.41 bumped MSRV to 1.60.0 +quote = "1.0.18" syn = "2.0.15" [target...
3
3
3
775a52342df124b3109f99520a67552f61da9fe4
Ted Driggs
2025-12-03T15:04:56
Revert "Lock min version of proc-macro2" This reverts commit 878b5ba12059dffc417f3e354bf39dab0d36068f. This is not the way to fix 1.56.0 support Fixes #385
diff --git a/Cargo.toml b/Cargo.toml index 33e75ba..5852f3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ darling_core = { version = "=0.22.0", path = "core" } darling_macro = { version = "=0.22.0", path = "macro" } [dev-dependencies] -proc-macro2 = "=1.0.86" # 1.0.103 bumped MSRV to 1.60.0 -quote = "=...
2
3
3
cd33f9bdcf8361b0cdafea3543a33ef543abf720
goldlinker
2025-10-23T08:39:06
chore: fix some minor issues in the comments Signed-off-by: goldlinker <goldlinker@outlook.jp>
diff --git a/core/src/from_meta.rs b/core/src/from_meta.rs index 95edf27..488085b 100644 --- a/core/src/from_meta.rs +++ b/core/src/from_meta.rs @@ -86,7 +86,7 @@ pub trait FromMeta: Sized { /// and users who add a `String` field to their `FromMeta`-deriving struct would be surprised /// if they get back `""`...
2
2
2
2ca795bb1158eef581456013fc782c18ccef07db
veecore
2025-11-06T08:54:55
docs: fix minor typo in top-level doc comment ('its' → 'it’s')
diff --git a/src/lib.rs b/src/lib.rs index 015bbdb..e6024c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ //! //! * **Field renaming**: You can use `#[darling(rename="new_name")]` on a field to change the name Darling looks for. //! You can also use `#[darling(rename_all="...")]` at the struct or enum...
1
1
1
878b5ba12059dffc417f3e354bf39dab0d36068f
Ted Driggs
2025-11-24T16:23:42
Lock min version of proc-macro2
diff --git a/Cargo.toml b/Cargo.toml index 42362c3..5fd3b7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ darling_core = { version = "=0.21.3", path = "core" } darling_macro = { version = "=0.21.3", path = "macro" } [dev-dependencies] -proc-macro2 = "1.0.86" -quote = "=1.0.40" # 1.0.41 bumped MSRV...
2
3
3
7536387a7be85176b4e1810a2d7d5c371e3c7fc6
Ted Driggs
2025-09-29T18:15:59
Lock quote version
diff --git a/Cargo.toml b/Cargo.toml index 36e31e9..42362c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ darling_macro = { version = "=0.21.3", path = "macro" } [dev-dependencies] proc-macro2 = "1.0.86" -quote = "1.0.18" +quote = "=1.0.40" # 1.0.41 bumped MSRV to 1.60.0 syn = "2.0.15" [target...
3
3
3
775bf91d6426a22ef3b61715b00917f1ff2f1783
Ted Driggs
2025-09-29T17:36:51
Set rust-version for all crates consistently
diff --git a/core/Cargo.toml b/core/Cargo.toml index 5ba339a..aaaae90 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -9,7 +9,7 @@ implementing custom derives. Use https://crates.io/crates/darling in your code. """ license = "MIT" edition = "2021" -rust-version = "1.56" +rust-version = "1.56.0" [features] ...
2
2
2
d711a694d3a86d90cf592d2b9c6839f294b56a62
cyqsimon
2025-09-19T04:24:36
Docs: add custom default usage to landing page
diff --git a/src/lib.rs b/src/lib.rs index 5cbf4e7..015bbdb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,8 @@ //! You can also use `#[darling(rename_all="...")]` at the struct or enum level to apply a casing rule to all fields or variants. //! * **Map function**: You can use `#[darling(map="path::to::funct...
1
2
1
39dda634254a3e152762afbbb5923c77e0bc3889
cyqsimon
2025-09-19T03:55:47
Add support for closure as argument to `default` - E.g. `#[darling(default = || get_val())]` - See https://github.com/TedDriggs/darling/issues/219#issuecomment-3308315497
diff --git a/core/src/codegen/default_expr.rs b/core/src/codegen/default_expr.rs index 8741e23..fb90db6 100644 --- a/core/src/codegen/default_expr.rs +++ b/core/src/codegen/default_expr.rs @@ -1,6 +1,8 @@ use proc_macro2::{Span, TokenStream}; use quote::{quote, quote_spanned, ToTokens, TokenStreamExt}; -use syn::{spa...
5
30
9
59a95fdd4c532640a132511ba69a09ab87712a07
Ted Driggs
2025-09-24T12:44:05
Fix: Preserve span for Callable path as LitStr
diff --git a/core/src/util/callable.rs b/core/src/util/callable.rs index 626bd34..8bde8c0 100644 --- a/core/src/util/callable.rs +++ b/core/src/util/callable.rs @@ -63,10 +63,10 @@ impl FromMeta for Callable { Expr::Path(_) | Expr::Closure(_) => Ok(Self { call: expr.clone() }), Expr::Lit(ExprL...
1
3
3
9dfd4e0d2f3857275044a5d1610706dc8a4a199e
DaniPopes
2025-08-31T16:41:03
Remove fnv `fnv` for use in `HashSet`s was added in #40, over 7 years ago, with no real justification. This library is made for proc-macros where runtime performance doesn't matter as much, considering it will likely run in debug mode. Remove `fnv` in favor of just using the standard library `HashSet` to remove a dep...
diff --git a/core/Cargo.toml b/core/Cargo.toml index bf569d9..5ba339a 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,7 +21,6 @@ proc-macro2 = "1.0.86" quote = "1.0.18" serde = { version = "1.0.210", optional = true } syn = { version = "2.0.15", features = ["full", "extra-traits"] } -fnv = "1.0.7" strsim ...
3
8
7
3ce0ddff9b0e76cfede3e67bfa5a2324423fc6ee
Ted Driggs
2025-09-08T18:15:27
Add example for enum of struct variants Relates to #374
diff --git a/examples/enum_of_struct_variants.rs b/examples/enum_of_struct_variants.rs new file mode 100644 index 0000000..4068b32 --- /dev/null +++ b/examples/enum_of_struct_variants.rs @@ -0,0 +1,58 @@ +use darling::{FromDeriveInput, FromMeta}; + +/// This enum will parse either of the following: +/// +/// ```rust,ig...
1
58
0
84f6fba8fe00385be219b10c78ca83bd0a85818a
Ted Driggs
2025-08-22T15:12:56
Directly forward non-paths in Override
diff --git a/core/src/util/over_ride.rs b/core/src/util/over_ride.rs index 337d5f6..2aa51af 100644 --- a/core/src/util/over_ride.rs +++ b/core/src/util/over_ride.rs @@ -137,6 +137,13 @@ impl<T: fmt::Display> fmt::Display for Override<T> { /// Parses a `Meta`. A bare word will produce `Override::Inherit`, while /// an...
1
7
0
138c450734884a8131af7a83639b5e8e172178f8
jerryq
2025-08-19T21:20:16
Override `Override::from_expr` (#372) * Add `from_expr` impl for `Override` and a regression test
diff --git a/core/src/util/over_ride.rs b/core/src/util/over_ride.rs index 1f8113f..337d5f6 100644 --- a/core/src/util/over_ride.rs +++ b/core/src/util/over_ride.rs @@ -149,6 +149,10 @@ impl<T: FromMeta> FromMeta for Override<T> { Ok(Explicit(FromMeta::from_value(lit)?)) } + fn from_expr(expr: &syn::...
2
54
0
59a46eb30c52010a2e9e6ff6400f6eacdcc73543
Ted Driggs
2025-08-11T21:20:19
Don't panic if shape validation is used with a union Fixes #365
diff --git a/core/src/options/shape.rs b/core/src/options/shape.rs index 2fee818..3eda07d 100644 --- a/core/src/options/shape.rs +++ b/core/src/options/shape.rs @@ -115,7 +115,16 @@ impl ToTokens for DeriveInputShapeSet { struct_check.check(struct_data).and(::darling::export::Ok(__body)) ...
1
10
1
f5b7aef588f7c7c1a957f777a9cb9b64df49a286
Ted Driggs
2025-08-12T18:58:30
Change rust-version to make lock file versioning work
diff --git a/Cargo.toml b/Cargo.toml index f13f4f5..6ada4cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ implementing custom derives. license = "MIT" readme = "README.md" edition = "2021" -rust-version = "1.56" +rust-version = "1.56.0" exclude = ["/.travis.yml", "/publish.sh", "/.github/**"] [badge...
1
1
1
90a3132ec7041c25421fdd422676dad03a31935e
Ted Driggs
2025-08-11T14:45:29
Fix clippy violation
diff --git a/tests/enums_unit.rs b/tests/enums_unit.rs index e8e2e71..acffa8e 100644 --- a/tests/enums_unit.rs +++ b/tests/enums_unit.rs @@ -71,7 +71,7 @@ fn rejected_in_unit_enum_variants() { .to_string(), ) .map_err(|e| e.with_span(pat...
1
1
1
7f7dee75c1415fbf981d245d8a4b250243be63b3
Ted Driggs
2025-08-06T16:17:07
Move Initializer to forwarded_field It doesn't contain a ForwardedAttrs, and can be used with any forwarded field
diff --git a/core/src/codegen/attrs_field.rs b/core/src/codegen/attrs_field.rs index fa7c54c..2746a5c 100644 --- a/core/src/codegen/attrs_field.rs +++ b/core/src/codegen/attrs_field.rs @@ -37,8 +37,8 @@ impl ForwardAttrs<'_> { } /// Get the field initializer for use when building the deriving struct. - p...
2
24
11
9655a82cc462f025c013fc2a46fc3e606979e0e0
Ted Driggs
2022-04-19T18:32:36
Read and validate generics before returning errors
diff --git a/core/src/codegen/from_derive_impl.rs b/core/src/codegen/from_derive_impl.rs index 9c6b950..b3a0bf2 100644 --- a/core/src/codegen/from_derive_impl.rs +++ b/core/src/codegen/from_derive_impl.rs @@ -51,12 +51,20 @@ impl ToTokens for FromDeriveInputImpl<'_> { .as_ref() .map(|i| quote!...
1
15
5
d3cc6d3658afb7ea019ae994d7536d82fbb6509f
Ted Driggs
2022-04-19T16:18:04
Errors during attribute parsing don't block data parsing Fixes #7
diff --git a/core/src/codegen/from_derive_impl.rs b/core/src/codegen/from_derive_impl.rs index 347972a..9c6b950 100644 --- a/core/src/codegen/from_derive_impl.rs +++ b/core/src/codegen/from_derive_impl.rs @@ -56,19 +56,31 @@ impl ToTokens for FromDeriveInputImpl<'_> { .as_ref() .map(|i| quote!...
4
78
24
6e205fd45275f17221e0d20073ca857dfc101a50
Ted Driggs
2025-08-01T15:58:23
Use ErrorUnknownValue to capture alternates for literals - Box the struct to address a clippy issue about large enums - Add `UnknownValuePosition` to differentiate field and value contexts - Add tests for new behavior Fixes #362
diff --git a/core/src/codegen/from_meta_impl.rs b/core/src/codegen/from_meta_impl.rs index 03be9e4..e9f1792 100644 --- a/core/src/codegen/from_meta_impl.rs +++ b/core/src/codegen/from_meta_impl.rs @@ -105,15 +105,24 @@ impl ToTokens for FromMetaImpl<'_> { Data::Enum(ref variants) => { let ...
5
115
54
32dbaf4169262d5686f22f2822e0717e6a5eac02
Ted Driggs
2025-08-01T15:46:03
Remove unused argument from ErrorUnknownValue::new
diff --git a/core/src/error/kind.rs b/core/src/error/kind.rs index 6e6ec70..65c3060 100644 --- a/core/src/error/kind.rs +++ b/core/src/error/kind.rs @@ -125,15 +125,11 @@ pub(in crate::error) struct ErrorUnknownValue { } impl ErrorUnknownValue { - pub fn new<I: Into<String>>( - noun: &'static str, - ...
2
4
8
779511605679252104b9270fe86effec583ec9f7
Ted Driggs
2025-08-01T15:42:56
Make ErrorUnknownField more generic This makes the thing being described now part of the struct, rather than hardcoded.
diff --git a/core/src/error/kind.rs b/core/src/error/kind.rs index 3ca3563..6e6ec70 100644 --- a/core/src/error/kind.rs +++ b/core/src/error/kind.rs @@ -22,7 +22,7 @@ pub(in crate::error) enum ErrorKind { observed: DeriveInputShape, expected: Option<String>, }, - UnknownField(ErrorUnknownField...
2
44
45
2aec1dcdcaa7851206dcc6c604771fbd56a7b816
Ted Driggs
2025-07-14T19:15:30
Include available items in diagnostics
diff --git a/core/src/error/kind.rs b/core/src/error/kind.rs index d01f8f6..3ca3563 100644 --- a/core/src/error/kind.rs +++ b/core/src/error/kind.rs @@ -1,6 +1,9 @@ use std::{collections::BTreeSet, fmt}; -use crate::error::Error; +use crate::error::{ + util::{write_delimited, Quoted}, + Error, +}; type Deri...
3
93
16
7b36231b4ff2e90637847e16d8d55083596bf306
Ted Driggs
2025-07-11T19:17:15
Remove clone of alternates
diff --git a/core/src/error/mod.rs b/core/src/error/mod.rs index 5ce2ef1..570fa60 100644 --- a/core/src/error/mod.rs +++ b/core/src/error/mod.rs @@ -422,22 +422,46 @@ impl Error { return self; } + // This is a callback because we don't want to use the iterator + // if we don't need...
1
34
10
582ae33c9d2e4b2d88091f14621dd1cf4236f53a
Ted Driggs
2025-07-11T00:18:31
Store all valid fields on ErrorUnknownField This is needed to display them in the diagnostic message
diff --git a/core/src/error/kind.rs b/core/src/error/kind.rs index 6d5ef8a..d01f8f6 100644 --- a/core/src/error/kind.rs +++ b/core/src/error/kind.rs @@ -1,4 +1,4 @@ -use std::fmt; +use std::{collections::BTreeSet, fmt}; use crate::error::Error; @@ -123,7 +123,15 @@ impl From<ErrorUnknownField> for ErrorKind { #[c...
1
23
3