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

  • rust@midwest.social
    link
    fedilink
    English
    arrow-up
    27
    ·
    1 year ago

    To me, the fact that the issue was just outright dismissed by the maintainer without really answering any of the legitimate concerns raised (disregarding the unnecessary personal attacks in a few comments) is pretty concerning. And now the issue has been locked without a really good response.

  • Sibbo@sopuli.xyzOP
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 year ago

    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?

    • RandoCalrandian@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      One of the main reasons would be to try and hide what’s in it

      If, for example, you wanted to add tracking code into the generated code, and knew people would stop using your product if they found out

      • huntrss@feddit.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Is there anything confirmed yet? Like what is inside this precompiled binary?

        • Anders429@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          As far as I know, no one has yet been able to reproduce the binary with the source code, so I don’t think the contents of it are confirmed at all.

  • bet@lemm.ee
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Thanks, I hadn’t seen this elsewhere, glad to know about it.