blob: 2d287cd7757b25dbffc3dd0f0b4f1a696cbe616c [file] [log] [blame]
Adam Snaider1c095c92023-07-08 02:09:58 -04001#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}