min-sqlite3-sys 1.4.3

zero dependency, tiny sqlite3 wrapper built for lodpm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::{env, path::Path, process};

fn main() {
    if env::var("DOCS_RS").is_ok() {
        println!("cargo:warning=docs.rs build detected. Process will safely exit.");
        process::exit(0);
    }

    println!("cargo:rustc-link-lib=dylib=min_sqlite3_sys");

    let home_path = env::var("HOME").expect("HOME environment variable is not set.");
    let target_dir = Path::new(&home_path).join(".local/share/min_sqlite3_sys");
    println!("cargo:rustc-link-search={}", target_dir.display());
}