[$] Cross-crate forward declarations in Rust
Date:
Mon, 19 Oct 2026 13:50:49 +0000
Description:
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 Dnszelmann spotted the developing pattern and put together a
general solution, introducing a safer, checked analogue of C's weak symbol linking. At Kangrejos 2026, she explained how this new language feature works, and proposed using it to clean up the kernel's handling of integer overflows in
Rust code.
======================================================================
Link to news story:
https://lwn.net/Articles/1099596/
--- Mystic BBS v1.12 A49 (Linux/64)
* Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)