Skip to content

refactor: switch to serde_core and remove Cargo.lock#22

Open
giuseppe998e wants to merge 3 commits into
peanutbother:mainfrom
giuseppe998e:main
Open

refactor: switch to serde_core and remove Cargo.lock#22
giuseppe998e wants to merge 3 commits into
peanutbother:mainfrom
giuseppe998e:main

Conversation

@giuseppe998e

@giuseppe998e giuseppe998e commented Mar 6, 2026

Copy link
Copy Markdown

Hello!
Here is a small PR focused mainly on optimizing compilation times.

What’s included:

  • Replaced the serde dependency with serde_core.
    This helps speed up compilation times by allowing the crate to build in parallel with the heavier serde_derive macro, bypassing a major bottleneck if derive is used elsewhere in the project.
  • Removed the Cargo.lock file to follow the Rust convention that libraries should not include lockfiles.
  • Fixed a minor clippy warning on a test assert.

Hope this helps the project! Let me know if you’d like me to tweak anything or split the commits differently.
Thanks for your time!

Libraries should not include a “Cargo.lock” file
Using 'serde_core' improves compilation times by allowing the crate to
be compiled in parallel with the heavier 'serde_derive' macro, bypassing
a major bottleneck if derive is used elsewhere in the project.
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