-
Notifications
You must be signed in to change notification settings - Fork 127
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
Rust Docs + refactor: protocols
crates
#845
Comments
We can leverage the work done in #854 in this effort when we start listing the technical debt for each crate. |
protocols
cratesprotocols
crates
What do you think about merging all the |
I don't think that this is a good idea as we wouldn't be able to opt out serde anymore |
Oh sorry maybe my comment was not clear. I was just suggesting to merge them in terms of the effort to document and refactor them, not merge the crates into a single one. |
As discussed in last week's dev call (sep 10th 2024), So spending time documenting this crate would probably be wasted effort. The only thing preventing us from deprecating it right now is the fact the MG uses it as a dependency. |
we are starting to write many ideas to our we should allow ourselves room to brainstorm and propose ideas, this is the time to get creative but when we start doing the actual refactoring PRs, it's of strategic importance that we cultivate a disciplined mindset around Goodhart's Law so we can make the right engineering tradeoffs and compromises |
maybe #1233 can fit in this issue ? |
We recently published our
protocols
crates tocrates.io
.We need to make sure the APIs provided by those crates are properly documented under the Rust Best Practices.
This is also the perfect opportunity to map and address technical debt on those crates. As we go through the code and try to understand it, we take the chance to write down a list of ways the code could be improved. Things such as:
unwrap
,panic!
,expect
)// todo
comments,todo!
macros, edge cases withunimplemented!
orpanic!
Task list
Rust Docs
v1
(already documented but worth a look before proceding)v2/binary-sv2/binary-sv2
protocols::v2::binary_sv2::binary_sv2
#1008binary-sv2::binary-sv2
crate #1131v2/binary-sv2/no-serde-sv2/codec
protocols::v2::binary_sv2::no-serde-sv2::codec
#1009binary-sv2::no-serde-sv2::codec
crate #1132v2/binary-sv2/no-serde-sv2/derive_codec
protocols::v2::binary_sv2::no-serde-sv2::derive_codec
#1010protocols::v2::binary_sv2::no-serde-sv2::derive_codec
#1010v2/binary-sv2/serde-sv2
protocols::v2::binary_sv2::serde_sv2
#1011binary-sv2::serde-sv2
crate #1134v2/const-sv2
protocols::v2::const-sv2
#1016protocols::v2::const-sv2
#1160const-sv2
crate #1135v2/framing-sv2
framing_sv2
#848framing-sv2
doc cmts do not conform to standard #1178: Make Rust Docsframing_sv2
#848 conform with doc standards in Standardization of Rust Docs #970.framing_sv2
crate #903Framing
refactor:framing.rs
api #1033Framing
refactor: testSv2Frame
andHandShakeFrame
#1049Framing
crate refactor: cleanupheader.rs
and removeFrame
trait #976Framing
crate refactor: cleanupframing.rs
#982v2/codec-sv2
protocols::v2::codec-sv2
#1012protocols::v2::codec-sv2
#1040codec-sv2
crate #1129v2/noise-sv2
protocols::v2::noise-sv2
#1013noise_sv2
#1111noise-sv2
crate #1130v2/subprotocols
(already documented but worth a look before proceeding)protocols::v2::subprotocols
#1201subprotocols
crates #1202v2/roles-logic-sv2
protocols::v2::roles-logic-sv2
#1014v2/sv2-ffi
protocols::v2::sv2-ffi
#1015sv2-ffi
crate #1136utils/buffer
utils::buffer
#1184sv2-ffi
crate #1136Refactor Implementation
Dependencies graph
protocols
'DEPENDENCIES.md
PR: draw a handy dependancy graph #1233protocols
' updatedDEPENDENCIES.md
PR (after refactoring): todoThe text was updated successfully, but these errors were encountered: