{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibdsrkcchg5w226ssn3b4snxjdfvyurl4ugnkffjpsi5fjxhtp324",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mggdki3yj3j2"
},
"path": "/t/add-internal-functions-to-rust/24060#post_1",
"publishedAt": "2026-03-06T17:49:47.000Z",
"site": "https://internals.rust-lang.org",
"textContent": " * my idea is to add functions that are public but can be only used inside a crate\n\n\n\n## example\n\ni 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\n\n## example code\n\n\n intern fn unsafe_function() {\n // uninplemented\n }\n",
"title": "Add internal functions to rust"
}