feat: add live reload rust

This commit is contained in:
2020-09-30 23:45:41 +08:00
parent 37c0a30a99
commit 443ab2c47f
3 changed files with 15 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
reference: https://fasterthanli.me/articles/so-you-want-to-live-reload-rust
+1
View File
@@ -0,0 +1 @@
gcc -Wall main.c -o main
+10
View File
@@ -0,0 +1,10 @@
#include <stdio.h>
void greet(const char *name) {
printf("Hello, %s!\n", name);
}
int main(void) {
greet("moon");
return 0;
}