Conversation
ac09483 to
9b41783
Compare
| #[cfg(feature = "std")] | ||
| extern crate std; | ||
|
|
||
| /// Hazardous materials. |
There was a problem hiding this comment.
I put this here for now to avoid modifying the now hazmat.rs but it would be good to move the comment into there in a followup commit
|
Hmm, perhaps we should move the documentation checks into the "Workspace" workflow. Running |
newpavlov
left a comment
There was a problem hiding this comment.
I wonder if it may be worth to move the serialization traits into a separate crate and make serialization support feature-gated and disabled by default.
|
I could potentially add a |
This should fix the error we're encountering in #1487, and at the same time also check all crates have valid documentation, rather than just `elliptic-curve` and `signature`.
This should fix the error we're encountering in #1487, and at the same time also check all crates have valid documentation, rather than just `elliptic-curve` and `signature`.
Also removes the toplevel re-exports for the traits, forcing users to go
through the now `pub hazmat` module.
There's a lot of misuse potential with these traits, which are intended
to make it possible to serialize/deserialize the internal state of hash
functions. However previously they were presented side-by-side with
other traits, which made that unclear.
This commit deliberately doesn't make other changes to the file so git
will preserve its history:
diff --git a/crypto-common/src/serializable_state.rs b/crypto-common/src/hazmat.rs
similarity index 100%
rename from crypto-common/src/serializable_state.rs
rename to crypto-common/src/hazmat.rs
It would be very good for a followup commit to massively expand the
documentation around both the module and the traits, especially to spell
out the various ways they can be misused.
9b41783 to
d0b8719
Compare
Also removes the toplevel re-exports for the traits, forcing users to go through the now
pub hazmatmodule.There's a lot of misuse potential with these traits, which are intended to make it possible to serialize/deserialize the internal state of hash functions. However previously they were presented side-by-side with other traits, which made that unclear.
This commit deliberately doesn't make other changes to the file so git will preserve its history:
It would be very good for a followup commit to massively expand the documentation around both the module and the traits, especially to spell out the various ways they can be misused.