native/desktop-macos/Cargo.toml (73 lines of code) (raw):

[package] name = "desktop-macos" version.workspace = true edition.workspace = true # todo filter supported targets # when cargo will implement it # https://github.com/rust-lang/cargo/issues/6179 [lib] crate-type = ["rlib", "cdylib"] name = "desktop_macos" [lints] workspace = true [dependencies] anyhow.workspace = true log.workspace = true desktop-common = { path = "../desktop-common" } [build-dependencies] [dev-dependencies] test-log = "0.2.19" quickcheck = "1" quickcheck_macros = "1" [target.'cfg(target_os = "macos")'.dependencies] foreign-types = "0.5" dispatch2 = { version = "0.3.0" } block2 = { version = "0.6.2" } # "catch-all" feature add try catch for obj-c exceptions in msg_send![] # it's nice to have at least for the beginning, but later we need to check how it impacts performance objc2 = { version = "0.6.3", features = ["exception", "catch-all"] } objc2-foundation = { version = "0.3.2" } objc2-core-foundation = { version = "0.3.2", features = ["CFRunLoop", "CFDate", "CFMachPort"] } objc2-app-kit = { version = "0.3.2", features = [ "NSApplication", "NSWindow", "NSWindowRestoration", "NSGraphics", "NSScreen", "NSRunningApplication", "NSResponder", "NSView", "NSLayoutAnchor", "NSControl", "NSButton", "NSLayoutConstraint", "NSVisualEffectView", "NSColor", "NSMenu", "NSMenuItem", "NSCell", "NSEvent", "NSText", "NSColorSpace", "NSGraphicsContext", "NSDraggingSession", "objc2-quartz-core", ] } objc2-quartz-core = { version = "0.3.2" } objc2-core-graphics = { version = "0.3.2", features = ["CGEvent", "CGEventTypes"] } objc2-metal = { version = "0.3.2" } objc2-uniform-type-identifiers = { version = "0.3.2" } objc2-user-notifications = { version = "0.3.2", features = [ "UNUserNotificationCenter", "UNNotificationSettings", "UNNotificationContent", "UNNotificationRequest", "UNNotificationAction", "UNNotificationCategory", "UNNotificationSound", "UNNotificationResponse", "UNNotification", ] } objc2-carbon = { version = "0.3.2" } num-traits = "0.2" num-derive = "0.4"