• farcaster@beehaw.orgOP
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 year ago

    It helps with compile time. I don’t know why exactly rust macros are slow, and precompiling them helps. Unfortunately, it means distributing a binary along your build process which I personally think is not worth the few seconds of build time speedup.

    Btw I do think it is a technically clever solution to improving build times. I’m convinced serde’s author is trying to improve the project and this does address one of the common complaints. Clever solutions are not always the right ones though.