muda/Cargo.toml

56 lines
1.3 KiB
TOML
Raw Normal View History

2022-05-05 21:50:22 +10:00
[package]
2022-05-07 19:19:58 +10:00
name = "muda"
version = "0.8.1"
2022-05-09 03:36:39 +10:00
description = "Menu Utilities for Desktop Applications"
2022-05-05 21:50:22 +10:00
edition = "2021"
keywords = [ "windowing", "menu" ]
2022-05-07 09:02:52 +10:00
license = "Apache-2.0 OR MIT"
readme = "README.md"
2022-05-07 19:19:58 +10:00
repository = "https://github.com/amrbashir/muda"
documentation = "https://docs.rs/muda"
categories = [ "gui" ]
2022-05-05 21:50:22 +10:00
[features]
default = [ "libxdo" ]
libxdo = [ "dep:libxdo" ]
common-controls-v6 = [ "windows-sys/Win32_UI_Controls" ]
serde = [ "dep:serde" ]
[dependencies]
crossbeam-channel = "0.5"
keyboard-types = "0.6"
refactor: rewrite (#18) * refactor: rewrite * fix syncing check items and cleanup * clippy * Add `append`, `prepend` and `insert` * accept different menu items in `*_list` methods * add context menu for gtk * add `with_items` * add `items` getter * chore: unreachable! and typos * implement remove * `*_list` -> `*_items` * fix winit example * add `show_context_menu_for_gtk_window` on `Submenu` type * Add windows implementation * TextMenuItem -> MenuItem, MenuItem trait -> MenuEntry * Add `PredfinedMenuItem` * move internal mod into its own file * update tao example to latest tao's `muda` branch * fix build on linux with latest tao changes * Fix accelerators on Linux * update examples * remove recursive removal of submenus * remvoe gtk menu items recursively * fix tao example on macos * On Windows, remove parents hmenu when removing an item * Add documentation * update README.md * use insert_items with postion 0 for prepend_items * Add menu mnemonics in examples * Add `ContextMenu` trait * Add methods to `ContextMenu` trait necessary for tray icon * fix linux build * fix context menu on gtk * Expose gtk::Menu in ContextMenu trait * Revert context menu to create a gtk::Menu on each call * clippy lints * cleanup crate structure * update docs * Fix doc tests and links * more docs fixes * error handling * macOS implementation (#19) * partial macOS implementation * fix context menu examples * add accelerator support for macOS * strip ampersands from titles on macOS * add CMD_OR_CTRL shorthand for modifiers * implement actions for predefined menu items on macos * fix examples * more predefined items * implement insert for macos * refactor macOS implementation * menu state getters and setters on macOS * implement remove for macOS * code tweaks * add show_context_menu_for_nsview for Submenu on macOS * docs improvements * allow adding item to the same menu multiple times on macOS * implement `items` for macOS * strip only single ampersands from menu titles * add support for menu item actions on macOS * add app name to macOS About, Hide, Quit menu items * add methods to set app window and help menus on macOS * fix clickable submenu titles on macOS * refactor submenu for safe reuse on macOS * fmt & clippy * few cleanups * fix docs * clippy * fix docs * cleanup examples * fix tests * fix clippy?? * use cargo action instead * ??? * Replace popUpContextMenu with popUpMenuPositioningItem Co-authored-by: Caesar Schinas <caesar@caesarschinas.com> Co-authored-by: Wu Wayne <yuweiwu@pm.me>
2022-11-24 03:29:52 +11:00
once_cell = "1"
thiserror = "1"
serde = { version = "1", optional = true }
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
version = "0.48"
features = [
"Win32_UI_WindowsAndMessaging",
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_UI_Shell",
"Win32_Globalization",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_System_SystemServices",
"Win32_UI_HiDpi",
"Win32_System_LibraryLoader"
]
2022-05-05 21:50:22 +10:00
[target."cfg(target_os = \"linux\")".dependencies]
gtk = "0.16"
gdk = "0.16"
gdk-pixbuf = "0.16"
libxdo = { version = "0.6.0", optional = true }
2022-05-05 21:50:22 +10:00
[target."cfg(target_os = \"macos\")".dependencies]
cocoa = "0.25"
objc = "0.2"
png = "0.17"
2022-05-05 21:50:22 +10:00
[dev-dependencies]
winit = "0.28"
tao = { git = "https://github.com/tauri-apps/tao", branch = "muda" }
wry = { git = "https://github.com/tauri-apps/wry", branch = "tao-v0.22" }
image = "0.24"