Skip to content

serde: switch serde dependency to serde_core#409

Merged
BurntSushi merged 1 commit intoBurntSushi:masterfrom
paolobarbolini:serde_core-migration
Sep 25, 2025
Merged

serde: switch serde dependency to serde_core#409
BurntSushi merged 1 commit intoBurntSushi:masterfrom
paolobarbolini:serde_core-migration

Conversation

@paolobarbolini
Copy link
Copy Markdown
Contributor

@paolobarbolini paolobarbolini commented Sep 14, 2025

serde_core has just been released. Crates that don't depend on serde derive macros should use it instead of serde, as it speeds up compile times by having the build for the crate itself be independent from serde-derive (in case it were to be enabled by some other crate). See the serde_core docs for more info.

On my Ryzen 5 5500U, building this repo with cargo build --release --features serde went from 10.83s to 8.76s.

@BurntSushi
Copy link
Copy Markdown
Owner

Thank you!!!

@BurntSushi BurntSushi merged commit 0cac480 into BurntSushi:master Sep 25, 2025
38 checks passed
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.

2 participants