Skip to content

Commit 867ff14

Browse files
committed
fix: gate tauri-winrt-notification behind cfg(windows)
The crate was listed in general [dependencies] instead of [target.'cfg(windows)'.dependencies], causing macOS and Linux CI builds to compile its windows-future dependency chain and fail with "cannot find type IMarshal in module windows_core::imp". The Windows build passed because the types exist there. The source code was already correctly gated — notifications.rs uses #[cfg(target_os = "windows")] around the Toast import — so only the Cargo.toml manifest needed the fix.
1 parent d97ca2d commit 867ff14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ tauri-plugin-dialog = "2"
3636
tauri-plugin-fs = "2"
3737
tauri-plugin-notification = "2"
3838
tauri-plugin-updater = "2"
39-
tauri-winrt-notification = "0.7"
4039
axum = "0.7"
4140
tower = "0.5"
4241
tower-http = { version = "0.6", features = ["cors"] }
4342
uuid = { version = "1", features = ["v4"] }
4443

4544
[target.'cfg(windows)'.dependencies]
4645
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Registry", "Win32_Security"] }
46+
tauri-winrt-notification = "0.7"
4747

4848
[profile.release]
4949
panic = "abort"

0 commit comments

Comments
 (0)