xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/ios/main_lib.m (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1#include <stdio.h>
2
3// Instead of doing this manually https://github.com/dtolnay/cxx could be used for complex examples
4extern int32_t get_a_value_from_rust(void);
5extern void print_something_from_rust(void);
6
7int main() {
8  print_something_from_rust();
9  printf("Some value from rust: %d\n", get_a_value_from_rust());
10  return 0;
11}
12