terraphim_update 1.10.0

Shared auto-update functionality for Terraphim AI binaries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tempfile::NamedTempFile;

fn main() {
    let temp_file = NamedTempFile::new().unwrap();
    let url = format!("file://{}", temp_file.path().display());
    println!("URL: {}", url);

    // Try to understand what ureq does with this
    match ureq::get(&url).call() {
        Ok(_) => println!("Success"),
        Err(e) => println!("Error: {:?}", e),
    }
}