solcrypt/src/decrypt.rs

13 lines
352 B
Rust
Raw Normal View History

mod crypto;
use crypto::decrypt_directory;
2024-06-17 13:51:32 +03:00
use std::env;
fn main() {
2024-06-17 14:53:59 +03:00
#[cfg(target_os = "windows")]
let home: String = env::var("USERPROFILE").unwrap_or("C:\\Users\\Xory".to_string()); // no way this could fail!
#[cfg(target_os = "linux")]
let home: String = env::var("HOME").unwrap();
2024-06-17 13:51:32 +03:00
decrypt_directory(&home_dir).unwrap();
}