rosascript 0.1.1

faster dx with obj c ffi bindings
use std::env;
use std::fs::File;
use std::io::Write;

fn main() {
    println!("cargo:rustc-link-search=native=.");
    println!("cargo:rustc-link-lib=dylib=AppleScriptExecutor");

    let mut file = File::create("build.log").unwrap();

    let out_dir = env::var("OUT_DIR").unwrap_or_else(|_| "UNKNOWN".to_string());
    writeln!(file, "The OUT_DIR is: {}", out_dir).unwrap();

    // Get the CARGO_MANIFEST_DIR
    let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| "UNKNOWN".to_string());
    writeln!(file, "The CARGO_MANIFEST_DIR is: {}", manifest_dir).unwrap();

    writeln!(file, "This is a log message").unwrap();
    let mut file = File::create("environment_variables.txt").unwrap();

    // Iterate over all environment variables and write them to the file
    for (key, value) in env::vars() {
        writeln!(file, "{}={}", key, value).unwrap()
    }
}