Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing_debug_implementations #1315

Conversation

JonathanWoollett-Light
Copy link

Sets missing_debug_implementations to warn and adds missing std::fmt::Debug implementations.

When tracing/logging/debugging a program it is common to debug print inputs and outputs of function, to do this generally dependencies need to offer std::fmt::Debug implementations.

I won't repeat what is written under missing_debug_implementations which gives some more explanation.

Copy link
Member

@newpavlov newpavlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly to RustCrypto/block-modes/pull/46, you should not derive Debug for types which contain sensitive information.

@@ -250,9 +250,9 @@ pub trait BlockDecrypt: BlockSizeUser {
#[cfg(feature = "block-padding")]
#[cfg_attr(docsrs, doc(cfg(feature = "block-padding")))]
#[inline]
fn decrypt_padded_inout<'inp, 'out, P: Padding<Self::BlockSize>>(
fn decrypt_padded_inout<'out, P: Padding<Self::BlockSize>>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, removing lifetime argument is a breaking change.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, do I need to take any action for this?

Jonathan Woollett-Light added 2 commits June 12, 2023 08:47
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
@JonathanWoollett-Light
Copy link
Author

Similarly to RustCrypto/block-modes/pull/46, you should not derive Debug for types which contain sensitive information.

I don't know which implementations should be changed. Could you suggest these specific changes or note the implementations to change.

@newpavlov
Copy link
Member

This PR got outdated, so I will close it in favor of the tracking issue.

@newpavlov newpavlov closed this Nov 12, 2023
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.

2 participants