9 lines
190 B
Rust
9 lines
190 B
Rust
use std::{fs::File, io::Write};
|
|
|
|
fn main() {
|
|
let version = concat!("v", env!("CARGO_PKG_VERSION"));
|
|
File::create("version.txt")
|
|
.unwrap()
|
|
.write_all(version.as_bytes())
|
|
.unwrap();
|
|
}
|