Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 snaggen   ( @snaggen@programming.dev )  to Rust@programming.devEnglish · 2 年前

Looks like the sede situation is being worked on

github.com

external-link
message-square
11
link
fedilink
26
external-link

Looks like the sede situation is being worked on

github.com

 snaggen   ( @snaggen@programming.dev )  to Rust@programming.devEnglish · 2 年前
message-square
11
link
fedilink
Provide opt-out cfg to use `serde_derive` source by pinkforest · Pull Request #2580 · serde-rs/serde
github.com
external-link
Closes #2538 Supercedes #2579 Follows my recommendation: #2579 (comment) Current choice: Opt-Out (current commit) Override via cfg(serde_derive_build = "source") to build from source Alterative: Op...
alert-triangle
You must log in or # to comment.
  •  ck_   ( @ck_@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    12
    ·
    2 年前

    My personal gut feeling: the maintainer will just shoot this attempt down and close the PR.

    Happy to be proven wrong here though.

    •  miniu   ( @miniu@programming.dev ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      Author of the PR made it opt-out. I think it may be enough of the compromise for the maintainer.

    •  TehPers   ( @TehPers@beehaw.org ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      Has dtolnay shown a strong sentiment towards having it be on always? I can’t imagine there’s much reason not to make it configurable.

      •  d_k_bo   ( @d_k_bo@feddit.de ) 
        link
        fedilink
        arrow-up
        3
        ·
        2 年前

        The precompiled implementation is the only supported way to use the macros that are published in serde_derive. If there is implementation work needed in some build tools to accommodate it, someone should feel free to do that work

        ~ dtolnay (source)

        That sounds like he doesn’t like to (re-)introduce any other options.

        •  TehPers   ( @TehPers@beehaw.org ) 
          link
          fedilink
          arrow-up
          3
          ·
          2 年前

          That seems a bit concerning. At first I was under the impression the binary was compiled on the user’s machine, but once I saw that it’s distributed with serde I can see why people are upset.

          •  d_k_bo   ( @d_k_bo@feddit.de ) 
            link
            fedilink
            arrow-up
            3
            ·
            2 年前

            I was under the impression the binary was compiled on the user’s machine

            That’s how procedural macros used to and were intended to work.

        •  Buttons   ( @Buttons@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          2 年前

          The precompiled implementation is the only supported way to use the macros that are published in serde_derive

          That statement is straight up gaslighting.

          The precompiled binary is only provided for one platform, Linux. Windows does not use a precompiled binary but compiles its own from the source. How can he claim it’s the “only supported way”, when for most platforms he is doing it another way? Also, the crate, throughout most of its life, has been doing it another way.

  •  argv_minus_one   ( @argv_minus_one@beehaw.org ) Banned
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 年前

    So, the general unsuspecting public will still be executing this potentially-malicious binary, and only those in the know will be able to avoid it?

    •  anlumo   ( @anlumo@feddit.de ) 
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 年前

      Only if that PR gets accepted, which is unlikely.

      •  argv_minus_one   ( @argv_minus_one@beehaw.org ) Banned
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        A similar PR was accepted.

        •  anlumo   ( @anlumo@feddit.de ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 年前

          Yeah, that was very unexpected.

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 10 users / day
  • 65 users / week
  • 388 users / month
  • 872 users / 6 months
  • 115 local subscribers
  • 7.65K subscribers
  • 1.06K Posts
  • 3.19K Comments
  • Modlog
  • mods:
  •  snowe   ( @snowe@programming.dev ) 
  •  Ategon   ( @Ategon@programming.dev ) 
  •  EdTheLegendary   ( @EdTheLegendary@programming.dev ) 
  •  kahnclusions   ( @kahnclusions@programming.dev ) 
  •  torcherist   ( @torcherist@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code