aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock7
-rw-r--r--src/main.rs10
2 files changed, 15 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..ec71b59
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "debug"
+version = "0.1.0"
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..dd64001 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,9 @@
-fn main() {
- println!("Hello, world!");
+use std::fs::File;
+use std::io::{self, Write};
+
+fn main() -> io::Result<()> {
+ let mut f = File::create("/debug.txt")?;
+ f.write_all("boot successful".as_bytes())?;
+
+ Ok(())
}