• Rogue@feddit.uk
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    it’s configurable per-crate, not per-compilation. So you can depend on crates that use different editions than your crate. Which avoids ecosystem fragmentation.

    Thanks! That pre-empted my next question of how quickly crates typically update to newer editions. I guess it doesn’t matter

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      36 minutes ago

      There is also cargo fix --edition which can update your code in a very conservative way automatically. The result might not be as idiomatic but errs on the side of having semantics that do not change.