•  farcaster   ( @farcaster@beehaw.org ) OP
      link
      fedilink
      15
      edit-2
      10 months 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.