Skip to content

Bump aead dependency to v0.6.0-rc.4#752

Merged
tarcieri merged 1 commit intomasterfrom
aead/v0.6.0-rc.4
Dec 26, 2025
Merged

Bump aead dependency to v0.6.0-rc.4#752
tarcieri merged 1 commit intomasterfrom
aead/v0.6.0-rc.4

Conversation

@tarcieri
Copy link
Member

This is primarily the documentation changes for the newly introduced Generate trait which subsumed the previous RNG APIs.

See also:

@tarcieri
Copy link
Member Author

Well, this is odd. Several of the doctests started failing when built without the getrandom feature:

running 2 tests
test aes-gcm-siv/src/lib.rs - (line 213) ... ignored
test aes-gcm-siv/src/lib.rs - (line 174) ... FAILED

It's not ignoring them in this case for some reason (though curiously, the ones that depend on arrayvec and getrandom are being ignored).

Also strange is the actual logic doing the feature-based gating didn't change.

@tarcieri
Copy link
Member Author

Wow, that's super weird, I can get it to succeed by completely inverting the logic:

#![cfg_attr(feature = "getrandom", doc = "```ignore")]
#![cfg_attr(not(feature = "getrandom"), doc = "```")]

That makes absolutely no sense!

tarcieri added a commit that referenced this pull request Dec 26, 2025
- Runs tests with `--lib` and adds separate `--doc` step
- Run tests with debug builds and adds a separate `--release` step

This should test more combinations (both debug and release builds), but
largely serves as a workaround for the weirdness happening in #752
where feature-gating seems to be working incorrectly in the doctests.
tarcieri added a commit that referenced this pull request Dec 26, 2025
- Runs tests with `--lib` and adds separate `--doc` step
- Run tests with debug builds and adds a separate `--release` step

This should test more combinations (both debug and release builds), but
largely serves as a workaround for the weirdness happening in #752
where feature-gating seems to be working incorrectly in the doctests.
tarcieri added a commit that referenced this pull request Dec 26, 2025
- Runs tests with `--lib` and adds separate `--doc` step
- Run tests with debug builds and adds a separate `--release` step

This should test more combinations (both debug and release builds), but
largely serves as a workaround for the weirdness happening in #752
where feature-gating seems to be working incorrectly in the doctests.
tarcieri added a commit that referenced this pull request Dec 26, 2025
- Runs tests with `--lib` and adds separate `--doc` step
- Run tests with debug builds and adds a separate `--release` step

This should test more combinations (both debug and release builds), but
largely serves as a workaround for the weirdness happening in #752
where feature-gating seems to be working incorrectly in the doctests.
tarcieri added a commit that referenced this pull request Dec 26, 2025
- Runs tests with `--lib` and adds separate `--doc` step
- Run tests with debug builds and adds a separate `--release` step

This should test more combinations (both debug and release builds), but
largely serves as a workaround for the weirdness happening in #752 where
feature-gating seems to be working incorrectly in the doctests.
This is primarily the documentation changes for the newly introduced
`Generate` trait which subsumed the previous RNG APIs.

See also:
- RustCrypto/traits#2096
- RustCrypto/traits#2098
@tarcieri tarcieri merged commit 97eef46 into master Dec 26, 2025
126 checks passed
@tarcieri tarcieri deleted the aead/v0.6.0-rc.4 branch December 26, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant