fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

Marco FarrugiaAdd example of c calling rust (#74)cebb2a9d

0.5.0
164 B9 linesraw
1#include <assert.h>
2#include <stdint.h>
3
4extern int32_t my_favorite_number();
5
6int main(int argc, char** argv) {
7  assert(my_favorite_number() == 4);
8  return 0;
9}