logoalt Hacker News

Rust 1.100

104 points • by mbStavola • today at 6:39 PM • 82 comments • view on HN

Comments

nirinor • today at 6:35 PM

Woohoo, that's a release! My personal favorites:

- Stabilize never type

- Stabilize custom allocators

- Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335

- cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388

n_u • today at 7:10 PM

> Cargo now reports unused dependencies to users, e.g.

> warning: unused dependency `tracing-subscriber` --> Cargo.toml:23:1 | 23 | tracing-subscriber.workspace = true | ^^^^^^^^^^^^^^^^^^ | = note: `cargo::unused_dependencies` is set to `warn` by default help: consider removing the dependency on `tracing-subscriber`

Heck yes

➕ show 2 replies
ammar_az • today at 7:22 PM

This release is so big that multiple useful stabilized API aren't event mentioned in the blog post like:

- bool::toggle() https://doc.rust-lang.org/stable/std/primitive.bool.html#met...

- Box::map() https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#m...

- str::trim_prefix(), str::trim_suffix, Path::trim_prefix()

jadbox • today at 7:48 PM

Is the compiler any faster now? Compiling takes forever. I'm also tired of always having to do "cargo clean" everyday to clear out 90gb of temp files.

➕ show 9 replies
pmichaud • today at 6:41 PM

Nice work... but I still yearn for a stable ABI!

➕ show 4 replies
ComputerGuru • today at 6:27 PM

It would probably be better to wait for the official release blog post for submission to HN, no?

➕ show 2 replies
steveklabnik • today at 6:51 PM

A monumental release. Thanks to everyone who worked so hard on all of these long-term features that are finally landing.

ustad • today at 7:23 PM

“Never type” - Feel like I’m stupid for not having a clue what that means.

➕ show 6 replies
lukax • today at 6:47 PM

Awesome timing.

I just spent last few days fixing arena leaks (Bumpalo doesn't call drop) and had to use allocator-api2 for Vec::new_in which is now available in stable Rust.

https://github.com/bancek/rust-sass/pull/1

➕ show 1 reply
karavelov • today at 6:36 PM

Finally, "never" happened

➕ show 1 reply
grommz • today at 8:41 PM

Feels good to have deleted the last traces of rust from my system, and any project that uses it. Looking at you Matrix.

fluffiac • today at 7:03 PM

yay never type!!

when can we expect `Result::into_ok` and `Result::into_err` to land? the blog post includes the `infallible_unwrap` demo which is the exact functionality these two functions implement. i wonder why they didn't release these at the same time as never?

➕ show 1 reply
hobofan • today at 7:00 PM

Thanks to all the maintainers and contributors! That's one of the biggest releases in a long time!

fallingmeat • today at 6:42 PM

wait other things not named jensen happened today? whoa

➕ show 1 reply
theapiartist • today at 6:46 PM

[dead]

KolmogorovComp • today at 7:40 PM

I haven’t seen any blog on the topic but I fully believe in the age of coding agents and LLM backward compatibility is a bit less important than it has been in the past and should be relaxed in some cases to allow language to move faster.

➕ show 1 reply
Surac • today at 7:16 PM

Still non ABI. Why is ist so hard? what is holding them back. Andy why does it need a unsave keyword? can't they marshal types like other languages?

➕ show 1 reply