• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[no_mangle]
android_link_hack()2 pub extern "C" fn android_link_hack() {}
3 
4 #[no_mangle]
print_something_from_rust()5 pub extern fn print_something_from_rust() {
6     println!("Ferris says hello!");
7 }
8 
9 #[no_mangle]
get_a_value_from_rust() -> i3210 pub extern fn get_a_value_from_rust() -> i32 {
11     42
12 }
13 
14 #[no_mangle]
Java_com_example_androidapp_JniShim_getValue() -> i3215 pub extern "system" fn Java_com_example_androidapp_JniShim_getValue() -> i32 {
16     get_a_value_from_rust()
17 }
18