toasty 0.3.0

An async ORM for Rust supporting SQL and NoSQL databases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::{env, fs, path::PathBuf};

fn main() {
    println!("cargo::rerun-if-env-changed=TOASTY_GUIDE_URL");

    let url = env::var("TOASTY_GUIDE_URL")
        .unwrap_or_else(|_| "https://github.com/tokio-rs/toasty/tree/main/docs/guide".to_string());

    let out = PathBuf::from(env::var("OUT_DIR").unwrap());
    fs::write(
        out.join("guide_link.md"),
        format!("[Toasty guide]: {url}\n"),
    )
    .unwrap();
}