summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveradec <glitchmill.dyj3d@simplelogin.co>2026-11-14 23:06:30 +0530
committerveradec <glitchmill.dyj3d@simplelogin.co>2026-11-14 23:06:30 +0530
commit2d73b46a809485c08ca1f0b547ea0474468864ae (patch)
treeba79e0dad4ea8a222b5fb5696f85b6ae9f5f9991
parent24a328e6b6c6356459bb3ce9c42941de226885e0 (diff)
fix: rewrite to rust
-rw-r--r--Cargo.lock7
-rw-r--r--Cargo.toml6
-rw-r--r--main.c5
-rw-r--r--src/main.rs3
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]
diff --git a/main.c b/main.c
deleted file mode 100644
index cb12680..0000000
--- a/main.c
+++ /dev/null
@@ -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!");
+}