Add UAC elevation support with manifest

- Added guruconnect.manifest requesting highestAvailable privileges
- Using winres to embed manifest in executable
- Added is_elevated() function to detect admin status
- Logs elevation status on startup
- Manifest includes Windows 7-11 compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-28 16:12:03 -07:00
parent c57429f26a
commit 43f15b0b1a
5 changed files with 123 additions and 3 deletions

25
Cargo.lock generated
View File

@@ -1029,7 +1029,7 @@ dependencies = [
"thiserror 1.0.69",
"tokio",
"tokio-tungstenite",
"toml",
"toml 0.8.2",
"tracing",
"tracing-subscriber",
"tray-icon",
@@ -1037,6 +1037,7 @@ dependencies = [
"uuid",
"windows",
"windows-service",
"winres",
"zstd",
]
@@ -1061,7 +1062,7 @@ dependencies = [
"sqlx",
"thiserror 1.0.69",
"tokio",
"toml",
"toml 0.8.2",
"tower",
"tower-http",
"tracing",
@@ -2968,7 +2969,7 @@ dependencies = [
"cfg-expr",
"heck 0.5.0",
"pkg-config",
"toml",
"toml 0.8.2",
"version-compare",
]
@@ -3172,6 +3173,15 @@ dependencies = [
"tokio",
]
[[package]]
name = "toml"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
"serde",
]
[[package]]
name = "toml"
version = "0.8.2"
@@ -3969,6 +3979,15 @@ dependencies = [
"memchr",
]
[[package]]
name = "winres"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c"
dependencies = [
"toml 0.5.11",
]
[[package]]
name = "wit-bindgen"
version = "0.46.0"