[package]
edition = "2024"
name = "fc-gpui-macos"
version = "0.13.0"
authors = ["FC GPUI Contributors"]
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "macOS platform and Metal renderer backend for fc-gpui"
homepage = "https://github.com/freefcw/fc-gpui"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/freefcw/fc-gpui"
resolver = "2"
[package.metadata.cargo-machete]
ignored = [
"bindgen",
"cbindgen",
]
[features]
accessibility = [
"dep:accesskit",
"dep:accesskit_macos",
"gpui/accessibility",
]
default = [
"accessibility",
"font-kit",
]
font-kit = [
"dep:font-kit",
"dep:core-text",
"dep:pathfinder_geometry",
"gpui/font-kit",
]
runtime_shaders = []
screen-capture = [
"dep:objc2-core-media",
"dep:objc2-screen-capture-kit",
"gpui/screen-capture",
]
test-support = ["gpui/test-support"]
[lib]
name = "gpui_macos"
path = "src/gpui_macos.rs"
doctest = false
[build-dependencies.bindgen]
version = "0.73.2"
[build-dependencies.cbindgen]
version = "0.29.4"
default-features = false
[build-dependencies.gpui]
version = "0.13.0"
default-features = false
package = "fc-gpui-core"
[target.'cfg(target_os = "macos")'.dependencies.accesskit]
version = "0.25.1"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.accesskit_macos]
version = "0.27.1"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.anyhow]
version = "1.0.86"
[target.'cfg(target_os = "macos")'.dependencies.async-task]
version = "4.7"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.collections]
version = "0.6.0"
package = "fc-gpui-collections"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10.1"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8.7"
[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
version = "0.24"
[target.'cfg(target_os = "macos")'.dependencies.core-text]
version = "=21.0.0"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.core-video]
version = "0.5.2"
features = ["link"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3.1"
features = [
"std",
"block2",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.etagere]
version = "0.3"
[target.'cfg(target_os = "macos")'.dependencies.font-kit]
version = "0.14.1-zed"
optional = true
package = "zed-font-kit"
[target.'cfg(target_os = "macos")'.dependencies.foreign-types]
version = "0.5"
[target.'cfg(target_os = "macos")'.dependencies.futures]
version = "0.3"
[target.'cfg(target_os = "macos")'.dependencies.gpui]
version = "0.13.0"
default-features = false
package = "fc-gpui-core"
[target.'cfg(target_os = "macos")'.dependencies.image]
version = "0.25.1"
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.itertools]
version = "0.15.0"
[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "macos")'.dependencies.log]
version = "0.4.16"
[target.'cfg(target_os = "macos")'.dependencies.media]
version = "0.6.0"
package = "fc-gpui-media"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3"
features = [
"NSAlert",
"NSApplication",
"NSApplicationScripting",
"NSAppearance",
"NSAttributedString",
"NSButton",
"NSCell",
"NSColor",
"NSControl",
"NSCursor",
"NSDockTile",
"NSDocumentController",
"NSDragging",
"NSEvent",
"NSGraphics",
"NSImage",
"NSMenu",
"NSMenuItem",
"NSOpenPanel",
"NSPanel",
"NSPasteboard",
"NSProgressIndicator",
"NSResponder",
"NSRunningApplication",
"NSSavePanel",
"NSScreen",
"NSScroller",
"NSStatusBar",
"NSStatusBarButton",
"NSStatusItem",
"NSTextInputClient",
"NSTextInputContext",
"NSTrackingArea",
"NSView",
"NSViewController",
"NSVisualEffectView",
"NSWindow",
"NSWindowRestoration",
"NSWindowTabGroup",
"NSWorkspace",
"block2",
"libc",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-quartz-core",
"std",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3"
features = [
"CFCGTypes",
"objc2",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-media]
version = "0.3"
features = [
"CMSampleBuffer",
"objc2",
]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"NSArray",
"NSAttributedString",
"NSAutoreleasePool",
"NSBundle",
"NSCoder",
"NSData",
"NSDictionary",
"NSError",
"NSGeometry",
"NSIndexSet",
"NSKeyedArchiver",
"NSLocale",
"NSNotification",
"NSObjCRuntime",
"NSObject",
"NSOperation",
"NSProcessInfo",
"NSRange",
"NSString",
"NSThread",
"NSURL",
"NSUserDefaults",
"NSValue",
"block2",
"objc2-core-foundation",
"std",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-local-authentication]
version = "0.3"
features = [
"std",
"LAContext",
"block2",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
version = "0.3"
features = [
"MTLAllocation",
"MTLBlitCommandEncoder",
"MTLBuffer",
"MTLCommandBuffer",
"MTLCommandEncoder",
"MTLCommandQueue",
"MTLDevice",
"MTLDrawable",
"MTLLibrary",
"MTLPixelFormat",
"MTLRenderCommandEncoder",
"MTLRenderPass",
"MTLRenderPipeline",
"MTLResource",
"MTLTexture",
"MTLTypes",
"bitflags",
"block2",
"dispatch2",
"std",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-quartz-core]
version = "0.3"
features = [
"CALayer",
"CAMetalLayer",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-metal",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-screen-capture-kit]
version = "0.3"
features = [
"SCError",
"SCShareableContent",
"SCStream",
"block2",
"dispatch2",
"objc2-core-graphics",
"objc2-core-media",
"std",
]
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-service-management]
version = "0.3"
features = [
"std",
"SMAppService",
"objc2",
"objc2-foundation",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-user-notifications]
version = "0.3"
features = [
"std",
"UNNotificationContent",
"UNNotificationRequest",
"UNNotificationTrigger",
"UNUserNotificationCenter",
"block2",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.parking]
version = "2.0.0"
[target.'cfg(target_os = "macos")'.dependencies.parking_lot]
version = "0.12.1"
[target.'cfg(target_os = "macos")'.dependencies.pathfinder_geometry]
version = "0.5"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.raw-window-handle]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.smallvec]
version = "1.6"
[target.'cfg(target_os = "macos")'.dependencies.smol]
version = "2.0"
[target.'cfg(target_os = "macos")'.dependencies.strum]
version = "0.28.0"
features = ["derive"]
[target.'cfg(target_os = "macos")'.dependencies.util]
version = "0.7.0"
package = "fc-gpui-util"
[target.'cfg(target_os = "macos")'.dependencies.uuid]
version = "1.1.2"
features = [
"v4",
"v5",
"serde",
]
[target.'cfg(target_os = "macos")'.dev-dependencies.gpui]
version = "0.13.0"
features = ["test-support"]
default-features = false
package = "fc-gpui-core"
[lints.clippy]
dbg_macro = "deny"
declare_interior_mutable_const = "deny"
disallowed_methods = "deny"
large_enum_variant = "allow"
let_underscore_future = "allow"
nonminimal_bool = "allow"
redundant_clone = "deny"
single_range_in_vec_init = "allow"
todo = "deny"
too_many_arguments = "allow"
type_complexity = "allow"
[lints.clippy.style]
level = "allow"
priority = -1
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0