Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 1 | #include <stdio.h> |
2 | |||||
3 | // Instead of doing this manually https://github.com/dtolnay/cxx could be used for complex examples | ||||
4 | extern int32_t get_a_value_from_rust(void); | ||||
5 | extern void print_something_from_rust(void); | ||||
6 | |||||
7 | int main() { | ||||
8 | print_something_from_rust(); | ||||
9 | printf("Some value from rust: %d\n", get_a_value_from_rust()); | ||||
10 | return 0; | ||||
11 | } |