diff options
| author | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-11-14 23:06:30 +0530 |
|---|---|---|
| committer | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-11-14 23:06:30 +0530 |
| commit | 2d73b46a809485c08ca1f0b547ea0474468864ae (patch) | |
| tree | ba79e0dad4ea8a222b5fb5696f85b6ae9f5f9991 | |
| parent | 24a328e6b6c6356459bb3ce9c42941de226885e0 (diff) | |
fix: rewrite to rust
| -rw-r--r-- | Cargo.lock | 7 | ||||
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | main.c | 5 | ||||
| -rw-r--r-- | src/main.rs | 3 |
4 files changed, 16 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..c7b14b1 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "shiro" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..bbe154d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "shiro" +version = "0.1.0" +edition = "2024" + +[dependencies] @@ -1,5 +0,0 @@ -#include <stdio.h> - -int main() { - printf("Hello World!"); -} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} |
