Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(windows): link against the static MSVC runtime

tonhowtf0780cc8b13b2
diff --git a/src-tauri/.cargo/config.toml b/src-tauri/.cargo/config.toml
new file mode 100644
index 00000000..69228cab
--- /dev/null
+++ b/src-tauri/.cargo/config.toml
@@ -0,0 +1,9 @@
+# libwebrtc (via the livekit SDK) ships built against the static MSVC runtime,
+# so everything else has to match or the link fails with LNK2038/LNK1169. This
+# mirrors what livekit/rust-sdks sets in its own .cargo/config.toml. It also
+# drops the VC++ redistributable requirement for Windows users.
+[target.x86_64-pc-windows-msvc]
+rustflags = ["-C", "target-feature=+crt-static"]
+
+[target.aarch64-pc-windows-msvc]
+rustflags = ["-C", "target-feature=+crt-static"]