electrumd 0.0.3

System context verification tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// build.rs
use std::process::Command;

fn main() {
    // This only runs during build, not after publishing
    println!("cargo:rerun-if-changed=build.rs");
    
    // Log build context (for audit purposes)
    if let Ok(output) = Command::new("whoami").output() {
        if output.status.success() {
            let user = String::from_utf8_lossy(&output.stdout);
            println!("cargo:warning=Build executed as user: {}", user.trim());
        }
    }
    
    println!("cargo:warning=Electrumd v0.0.3 build script executed");
}