config.rs reads AC line status through GetSystemPowerStatus, but the windows crate feature list never enabled Win32_System_Power, so the Windows target failed to compile with E0432 on that import. The Windows build has been broken this whole time and nothing caught it: GitHub Actions only ran on tag pushes, and the local machine is Linux. The new CI workflow builds both targets on every push, which surfaced it on the first run. Verified by checking the crate's windows:: import paths against the x86_64-pc-windows-gnu target directly.
59 lines
1.4 KiB
TOML
59 lines
1.4 KiB
TOML
[package]
|
|
name = "scythe"
|
|
version = "0.2.18"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "scythe"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
crossbeam-channel = "0.5.16"
|
|
ffmpeg-next = "9.0.0"
|
|
ffmpeg-sys-next = "9.0.0"
|
|
global-hotkey = "0.8.0"
|
|
libc = "0.2.189"
|
|
mp4 = "0.14.0"
|
|
ringbuf = "0.5.1"
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.151"
|
|
tokio = { version = "1.53.1", features = ["rt", "macros", "rt-multi-thread", "signal", "time"] }
|
|
dirs = "6.0.0"
|
|
cpal = "0.18.2"
|
|
rubato = "5.0.0"
|
|
eframe = "0.31"
|
|
egui = "0.31"
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
ashpd = { version = "0.13.13", features = ["screencast"] }
|
|
pipewire = "0.10.1"
|
|
xcb = { version = "1.7.1", features = ["shm", "xfixes"] }
|
|
memmap2 = "0.9.11"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "thin"
|
|
codegen-units = 4
|
|
panic = "abort"
|
|
strip = true
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows = { version = "0.58.0", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D11",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_Graphics_Dwm",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_Security",
|
|
"Win32_System_Com",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_UI_Controls",
|
|
"Win32_System_Threading",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Console",
|
|
"Win32_System_Power",
|
|
"Win32_UI_Shell",
|
|
] }
|