14 lines
192 B
Rust
14 lines
192 B
Rust
|
#[no_mangle]
|
||
|
pub extern "C" fn print_message_from_rust() {
|
||
|
println!("Calling from Rust!");
|
||
|
}
|
||
|
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
#[test]
|
||
|
fn it_works() {
|
||
|
assert_eq!(2 + 2, 4);
|
||
|
}
|
||
|
}
|