Programming

What Rust 1.79 Shipped

The Rust Development Team has unveiled Rust 1.79, marking another step forward in the evolution of the memory-safe programming language. This latest update, announced last week on June 13, brings stability to both inline const expressions and the associated item bounds syntax, providing…

What Rust 1.79 Shipped

Rust 1.79 (June 2024) was a mid-cycle release — no headline feature, but a few things that cleaned up real friction.

const { } inline expressions

An inline const block creates an anonymous constant usable anywhere a const context is needed — array lengths, generics — without naming it. [0; const { some_fn() }] works now. Small syntax, removes a real papercut in const-heavy code.

Associated items in bounds

T: Trait<Item: Display> — you can now bound associated types directly instead of nesting where clauses. Generics signatures got readable again.

The footgun fix

Temporary files created by std::fs::File::create inside tempfile's API got automatic cleanup; and unsafe in several corners got tightened. Rust's minor releases are mostly this: the language sanding its own edges.

Cargo side

cargo add and cargo remove stayed built-in — editing Cargo.toml by hand for dependencies is legacy behavior now.

$ tail -f /forums

Discussion

Comments live on the community forums — sign in there to reply.