blob: 8d33f18c62330950a6f87924287af94195aea4ec [file] [log] [blame]
Adam Snaider1c095c92023-07-08 02:09:58 -04001#[no_mangle]
2pub extern "C" fn android_link_hack() {}
3
4#[no_mangle]
5pub extern fn print_something_from_rust() {
6 println!("Ferris says hello!");
7}
8
9#[no_mangle]
10pub extern fn get_a_value_from_rust() -> i32 {
11 42
12}
13
14#[no_mangle]
15pub extern "system" fn Java_com_example_androidapp_JniShim_getValue() -> i32 {
16 get_a_value_from_rust()
17}