-
Notifications
You must be signed in to change notification settings - Fork 3
feat!: drop xdr-codec dependency #98
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the dependency on the external xdr-codec crate by replacing all usages of the PackedSize trait with the new packed_size method in the Pack trait and eliminating references to the dependency across the repository.
- Replaces calls to count_packed_size() with packed_size() throughout types and tests.
- Updates trait bounds and implementations for Pack and Unpack in all affected modules.
- Removes the xdr-codec dependency from Cargo.toml and adjusts related macros accordingly.
Reviewed Changes
Copilot reviewed 33 out of 34 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/nfs3_types/tests/codec.rs | Updates assertions to call packed_size() instead of count_packed_size(). |
| crates/nfs3_types/src/xdr_codec/*.rs | Eliminates PackedSize implementations and updates Pack/Unpack usage. |
| crates/nfs3_types/src/nfs3.rs | Refactors Nfs3Result and Nfs3Option to use only Pack and Unpack bounds. |
| Cargo.toml | Removes the xdr-codec dependency and associated workspace settings. |
| (Other files) | Similar updates to tests, client, server, and macros for consistency. |
Comments suppressed due to low confidence (3)
crates/nfs3_types/src/nfs3.rs:120
- The updated bounds for Nfs3Option now require T to implement both Pack and Unpack. Verify that this change is backwards compatible with existing usage and clearly reflects the intended API design.
pub enum Nfs3Option<T: Pack + Unpack> {
crates/nfs3_types/Cargo.toml:21
- The xdr-codec dependency has been removed as intended; update the project documentation to reflect that the internal Pack and Unpack implementations are now solely used.
workspace = true
crates/nfs3_types/src/nfs3.rs:59
- Ensure that the migration from using PackedSize to exclusively using packed_size() is consistently applied. Double-check that all type constraints now correctly require only the Pack and Unpack traits.
{
No description provided.