Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming

New Version of Rust Speeds Compilation With Less Debugging Info By Default (phoronix.com) 24

The Rust team released a new version Thursday — Rust 1.69.0 — boasting over over 3,000 new commits from over 500 contributors.

Phoronix highlights two new improvements: In order to speed-up compilation speeds, Rust 1.69 and moving forward debug information is no longer included in build scripts by default. Cargo will avoid emitting debug information in build scripts by default — leading to less informative backtraces in build scripts when problems arise, but faster build speeds by default. Those wanting the debug information emitted can now set the debug flag in their Cargo.toml configuration.

The Cargo build shipped by Rust 1.69 is also now capable of suggesting fixes automatically for some of the generated warnings. Cargo will also suggest using "cargo fix" / "cargo clippy --fix" when it knows the errors can be automatically fixed.

This discussion has been archived. No new comments can be posted.

New Version of Rust Speeds Compilation With Less Debugging Info By Default

Comments Filter:
  • Cargo will also suggest using "cargo fix" / "cargo clippy --fix" when it knows the errors can be automatically fixed.

    So it can fix things without you learning how not to do the mistakes in the first place?

    • So it can fix things without you learning how not to do the mistakes in the first place?

      Well, I mean....
      The long form command they use to fix things is "cargo clippy --fix". They never learn from mistakes to begin with.....

      • by Kejiro ( 2803123 )

        Come on. Clippy is a legend, it's obvious the command would be named from it. :D

        You want to talk about never learning from their mistakes, take it up with all the "Hi, what can I help you with?"-bots that keeps popping up on more and more websites.
        I do wonder what the thought behind those were.
        "Hey, remember the clippy thingie in Word? Let's take the most irritating feature from it and implement it on our website" ;)

    • When I taught programming at college, I actually had to teach students to read error messages. Not once or twice, but multiple times every semester.
    • It's just simple stuff. Say for example you just refactored a function to take a reference instead of a move. Rust's strict typing makes that kind of thing obvious, even to new programmers. Rather than having to go add an ampersand everywhere you called it, just one command fixes it.

  • "Rust" is not a good name.

    Suggest a better name.
  • That's quite a trade-off.

The "cutting edge" is getting rather dull. -- Andy Purshottam

Working...