-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
22 lines (20 loc) · 812 Bytes
/
Copy pathbuild.rs
File metadata and controls
22 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// extern crate winres;
fn main() {
// Admin priveliges requesting:
// if cfg!(target_os = "windows") {
// // Require admin priveliges to run the main program
// let mut res = winres::WindowsResource::new();
// res.set_manifest(r#"
// <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
// <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
// <security>
// <requestedPrivileges>
// <requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
// </requestedPrivileges>
// </security>
// </trustInfo>
// </assembly>
// "#);
// res.compile().unwrap();
// }
}