Skip to main content

force_link

Function force_link 

Source
pub fn force_link()
Expand description

Force-link entry point: a pub fn that touches ALL_BUILTIN_DEFS so the linker keeps every #[harn_builtin]-emitted static. Drivers (harn-cli, harn-lsp, etc.) call this once at startup. Doing nothing at runtime is fine — the side effect is purely a link-time signal.

See linkme issue #36 for why the explicit touch is necessary on every supported target.