From 89922792c5745d896967338947cffb7934b29326 Mon Sep 17 00:00:00 2001 From: BFlat Date: Fri, 9 Oct 2026 18:53:59 +0700 Subject: [PATCH] Clarify that muda is a native menu crate, not Tauri (#1786) muda is maintained by the tauri-apps org but is standalone: AppKit menus, no webview or JS, so it fits the no-Tauri rule. Reword the comments that called it "Tauri's menu crate". Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA Co-authored-by: Claude --- apps/photocraft/Cargo.toml | 4 ++-- apps/photocraft/src/mac_menu.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/photocraft/Cargo.toml b/apps/photocraft/Cargo.toml index eb09070777..b1293f6a15 100644 --- a/apps/photocraft/Cargo.toml +++ b/apps/photocraft/Cargo.toml @@ -54,8 +54,8 @@ fmv-macos-events = "=0.1.0" objc2 = "=0.6.4" objc2-foundation = { version = "=0.3.2", default-features = false, features = ["std", "NSArray", "NSEnumerator", "NSGeometry"] } objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std", "NSApplication", "NSApplicationScripting", "NSEvent", "NSResponder", "NSView", "NSWindow"] } -# The macOS menu bar (mac_menu.rs): Tauri's menu crate, AppKit menus behind a safe API (no GTK -# with default features off). Pinned exactly: review the diff before bumping. +# The macOS menu bar (mac_menu.rs): a standalone native menu crate (from the tauri-apps org, but +# not Tauri: no webview, no JS), AppKit menus behind a safe API (no GTK with default features off). Pinned exactly: review the diff before bumping. muda = { version = "=0.21.1", default-features = false } # Quit with `terminate:` from the main queue, outside winit's event handler (mac_window.rs). # Already in Cargo.lock (winit, objc2-app-kit); pinned exactly to the same version. diff --git a/apps/photocraft/src/mac_menu.rs b/apps/photocraft/src/mac_menu.rs index 871a9d03d6..648595ad46 100644 --- a/apps/photocraft/src/mac_menu.rs +++ b/apps/photocraft/src/mac_menu.rs @@ -1,5 +1,5 @@ -//! The macOS menu bar, through muda (Tauri's menu crate: AppKit menus behind a safe API, no GTK on -//! macOS). The menus themselves, their Mac layout and how their keys reach PhotoCraft are in +//! The macOS menu bar, through muda (a standalone native menu crate, not Tauri: no webview, just +//! AppKit menus behind a safe API, no GTK on macOS). The menus themselves, their Mac layout and how their keys reach PhotoCraft are in //! `photocraft_ui_egui::native_menu`; this file only builds and updates the `NSMenu`s. //! //! - Item ids are command ids; a command in two menus (Keyboard Shortcuts is in Edit and Window)