this post was submitted on 19 Aug 2023
49 points (100.0% liked)

Rust Lang

117 readers
1 users here now

Rules [Developing]

Observe our code of conduct

Constructive criticism only

No endless relitigation

No low-effort content

No memes or image macros

No NSFW Content

founded 1 year ago
MODERATORS
 

serde_derive now ships a precompiled binary. This made a lot of people angry. The crate maintainer finally locked the issue.

you are viewing a single comment's thread
view the rest of the comments
[–] Sibbo@sopuli.xyz 14 points 1 year ago (5 children)

Can someone explain why one would want to precompile procedural macros? Don't they get compiled only once anyways, when compiling a dependent crate for the first time? So compile time should be not that relevant?

[–] isosphere 3 points 1 year ago (1 children)

I've read the thread; Rust-folk I recognize seem to accept that this was done to reduce compile time without suspecting bad-faith, but I can't independently verify that.

There's a post in there where sometime tries to manually compile the same binary to verify that it matches the shipped binary and they were not able to do it, but there could be a good reason for that. Reproducible builds are hard.

load more comments (1 replies)
load more comments (4 replies)