@Aissen@social.treehouse.systems
Post #1333814
2026-03-27 14:11 UTC
At RustNL 2024, the RFC on Externally Implementable Functions was discussed. It led to a few discussions, and then another RFC which changed the goal to externally implement static insteads, which has less safety impacts, but does not allow unsafe.
Then it led to a third RFC for externally implementable traits.
At the time, no one knew the best way forward, and no code had been implemented yet.
#RustInParis
Replies (1)
-
@Aissen@social.treehouse.systems 2026-03-27 14:20
A few weeks later Jana and Mara implemented a fourth solution, which has no RFC. And realized that Rust already have Externally Implemented Items (EII). One of those is the Panic Handler. When building, the core expects a function to be marked #[panic_handler]. With std there is one already provided. The second one is the Allocator, which is a trait with four functions that also needs to be externally implemented. #RustInParis