Skip to content

Commit a596666

Browse files
committed
fix: mac build break due to objc crate not added for webview zoom
1 parent b0d206f commit a596666

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src-tauri/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-works
2727
[target.'cfg(target_os = "linux")'.dependencies]
2828
webkit2gtk = "0.18" # if tauri build fails, make sure to match this version to what we have in tauri
2929

30+
[target.'cfg(target_os = "macos")'.dependencies]
31+
objc = "0.2"
32+
3033
[features]
3134
# by default Tauri runs in production mode
3235
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL

src-tauri/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ use std::process::Command;
1212
#[cfg(target_os = "linux")]
1313
extern crate webkit2gtk;
1414

15+
#[cfg(target_os = "macos")]
16+
#[macro_use]
17+
extern crate objc;
18+
1519
use regex::Regex;
1620
extern crate percent_encoding;
1721
use tauri::http::ResponseBuilder;

0 commit comments

Comments
 (0)