This commit is contained in:
Erin 2023-11-30 17:50:21 +01:00
parent 91795923b5
commit 43be3467a7
4 changed files with 25 additions and 0 deletions

7
Cargo.lock generated Normal file
View file

@ -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"

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "ablescript"
version = "0.6.66"
edition = "2021"
[dependencies]

2
src/lib.rs Normal file
View file

@ -0,0 +1,2 @@
/// AbleScript Language version
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

10
src/main.rs Normal file
View file

@ -0,0 +1,10 @@
use std::io::Read;
fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("[AbleScript {}]", ablescript::VERSION);
let mut buf = String::new();
std::io::stdin().read_to_string(&mut buf)?;
Ok(())
}