Add rustc-link-arg directives in build.rs to embed a UAC manifest: - /MANIFEST:EMBED - /MANIFESTUAC:level='requireAdministrator'
5 lines
176 B
Rust
5 lines
176 B
Rust
fn main() {
|
|
println!("cargo:rustc-link-arg-bin=launcher=/MANIFEST:EMBED");
|
|
println!("cargo:rustc-link-arg-bin=launcher=/MANIFESTUAC:level=\'requireAdministrator\'");
|
|
}
|