Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Vaiz
Copy link
Owner

@Vaiz Vaiz commented Jun 29, 2025

No description provided.

@Vaiz Vaiz requested a review from Copilot June 29, 2025 15:20
Copy link
Contributor

Copilot AI left a 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.
{

@Vaiz Vaiz merged commit 6aa599b into main Jun 29, 2025
13 checks passed
@Vaiz Vaiz deleted the codec branch June 29, 2025 15:25
@github-actions github-actions bot mentioned this pull request Jun 29, 2025
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