1 2 3 4 5
// src/lib.rs #[no_mangle] // Prevent name mangling pub extern "C" fn add(a: i32, b: i32) -> i32 { a + b }