rustick 0.7.2

timers for the Goonstation Space Station 13 codebase using byondapi
Documentation
use std::{
    fs::{File, read_to_string},
    io::Write,
};

macro_rules! feature_dm_file {
    ($name:expr) => {
        &"dmsrc/{}.dm".replace("{}", $name)
    };
}

fn main() {
    println!("cargo:rerun-if-changed=dmsrc/main.dm");

    let out_dir = std::env::var("OUT_DIR").unwrap();

    let mut f = File::create(format!("{}/rustick.dm", out_dir)).unwrap();

    writeln!(f, "{}", read_to_string(feature_dm_file!("main")).unwrap()).unwrap();
}