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(()) +}