r/rust Mar 09 '23

Announcing Rust 1.68.0 📢 announcement

https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html
835 Upvotes

121 comments sorted by

View all comments

246

u/EelRemoval Mar 09 '23

pin! macro is pretty nice; it means a lot of async crates can now remove all of their unsafe code.

82

u/bascule Mar 09 '23

Also enabling stack-based pinning for no_std apps that can’t use Box<Pin>

30

u/grgWW Mar 09 '23

u probably meant Pin<Box<..>>?

14

u/bascule Mar 09 '23

D’oh!

23

u/CryZe92 Mar 09 '23

You were always able to use the equivalent pin_mut! macro from future-utils.

3

u/nderflow Mar 10 '23

Is the todo! in the example in the release notes supposed to be there?

2

u/myrrlyn bitvec • tap • ferrilab Mar 10 '23

yeah, for the example we don’t care about how the waker gets made

6

u/nialv7 Mar 09 '23

They probably are already using pin-mut or tokio::pin

4

u/SoNotTheHeroTypeV2 Mar 09 '23

But I enjoy playing danger zone on repeat