feat: add live reload rust
This commit is contained in:
4
live-reload-rust/README.md
Normal file
4
live-reload-rust/README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
reference: https://fasterthanli.me/articles/so-you-want-to-live-reload-rust
|
||||||
|
|
||||||
|
|
||||||
1
live-reload-rust/compile-main.c
Executable file
1
live-reload-rust/compile-main.c
Executable file
@@ -0,0 +1 @@
|
|||||||
|
gcc -Wall main.c -o main
|
||||||
10
live-reload-rust/main.c
Normal file
10
live-reload-rust/main.c
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user