1 2 3 4 5 6 7 8 9 10 11 12
use link_section::{section, in_section, TypedSection}; #[section(typed)] static FOO: TypedSection<fn()>; #[in_section(FOO)] fn foo() { println!("foo"); } fn main() { }