hyper-scripter 0.7.5

The script managing tool for script lovers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[path = "src/migration/mod.rs"]
mod migration;

use std::path::Path;

#[tokio::main]
async fn main() {
    let out_dir = std::env::var_os("OUT_DIR").unwrap();
    let file = Path::new(&out_dir).join(".script_info.db");

    migration::do_migrate_with_pre_sql(&file, None)
        .await
        .unwrap();
    println!(
        "cargo:rustc-env=DATABASE_URL=sqlite:{}",
        file.to_string_lossy()
    );
}