Add internal functions to rust
Rust Internals [Unofficial]
March 6, 2026
- my idea is to add functions that are public but can be only used inside a crate
example
i am making a embedded systems crate in rust and i made an unsafe function on the crate to be internally used on the crate but i don't want anyone using this crate because it could lead to memory issues
example code
intern fn unsafe_function() {
// uninplemented
}
Discussion in the ATmosphere