Urgent.News

What's breaking now, across thousands of outlets.

Tech

[$] Cross-crate forward declarations in Rust

Rust has several ad-hoc mechanisms to allow user code to influence how the standard library executes. For example, custom panic handlers and custom allocators both involve registering functions that core standard library code needs to call. With more similar features planned, Jana Dönszelmann spotted the developing pattern and put together a general solution, introducing a safer, checked analogue…

We haven't written up this one. LWN has the full story — the link below goes straight to it.

Read the original at lwn.net →

More in Tech

More from Monday 19 October →