kibi 0.3.2

A text editor in less than 1024 lines of code with syntax highlighting, search and more.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::process::Command;

fn main() {
    let version = match Command::new("git").args(["describe", "--tags", "--match=v*"]).output() {
        Ok(output) if output.status.success() =>
            String::from_utf8_lossy(&output.stdout[1..]).replacen('-', ".r", 1).replace('-', "."),
        _ => env!("CARGO_PKG_VERSION").into(),
    };
    println!("cargo:rustc-env=KIBI_VERSION={version}");
}