Skip to content

refactor: modularize lib.rs - #458

Open
alejandro-vaz wants to merge 5 commits into
servo:v2from
alejandro-vaz:refactor
Open

refactor: modularize lib.rs#458
alejandro-vaz wants to merge 5 commits into
servo:v2from
alejandro-vaz:refactor

Conversation

@alejandro-vaz

@alejandro-vaz alejandro-vaz commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

this is the initial implementation of #427

scope of this PR

the PR offloads the following files from lib.rs:

  • bytes.rs => the bytes feature and its implementations
  • comparisons.rs => Eq and Ord, total and partial
  • mallocsizeof.rs => regarding the feature malloc_size_of
  • rawsmallvec.rs => functionality regarding the raw type
  • references.rs => deref, asref, borrow
  • serde.rs => serialize / deserialize
  • taggedlen.rs => the tagged length

exports TaggedLen with the internals feature and makes RawSmallVec methods public

modifies rustfmt.toml a bit to make the style more consistent across the codebase

saves ~100 LOC

@alejandro-vaz alejandro-vaz added this to the v2-alpha.13 milestone Aug 27, 2026
@alejandro-vaz alejandro-vaz self-assigned this Aug 27, 2026
@alejandro-vaz
alejandro-vaz marked this pull request as ready for review August 27, 2026 15:08
@alejandro-vaz
alejandro-vaz requested a review from jdm August 27, 2026 15:09
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