From 43be3467a7019ddf89bb3d041819f86964e4b1da Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 30 Nov 2023 17:50:21 +0100 Subject: [PATCH] Init --- Cargo.lock | 7 +++++++ Cargo.toml | 6 ++++++ src/lib.rs | 2 ++ src/main.rs | 10 ++++++++++ 4 files changed, 25 insertions(+) create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 src/lib.rs create mode 100644 src/main.rs diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 00000000..95801eb2 --- /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 = "ablescript" +version = "0.6.66" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..4b24e1d9 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "ablescript" +version = "0.6.66" +edition = "2021" + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 00000000..72038fb6 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,2 @@ +/// AbleScript Language version +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 00000000..3c0f0945 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,10 @@ +use std::io::Read; + +fn main() -> Result<(), Box> { + println!("[AbleScript {}]", ablescript::VERSION); + + let mut buf = String::new(); + std::io::stdin().read_to_string(&mut buf)?; + + Ok(()) +}