arma-rs 1.11.13

Arma 3 Extensions in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::Path;

fn main() {
    let mut root = Path::new("../../README.md");
    if !root.exists() {
        root = Path::new("../README.md");
    }
    if !root.exists() {
        root = Path::new("README.md");
    }
    std::fs::copy(
        root,
        Path::new(&format!("{}/README.md", std::env::var("OUT_DIR").unwrap())),
    )
    .unwrap();
}