[package]
name = "windui"
version = "0.2.0"
edition = "2021"
description = "轻量跨平台桌面 GUI:tiny-skia 渲染 + 平台原生窗口/文字(Windows: Win32+DirectWrite;macOS: Cocoa+CoreText)"
authors = ["huanfeng <huanfengf@gmail.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/huanfeng/wind-ui-rust"
homepage = "https://github.com/huanfeng/wind-ui-rust"
documentation = "https://docs.rs/windui"
readme = "README.md"
keywords = ["gui", "ui", "desktop", "windows", "macos"]
categories = ["gui", "rendering", "os::windows-apis", "os::macos-apis"]
exclude = [".github/", ".remember/", "/scripts", "/temp", "/artifacts"]
[features]
default = ["svg"]
svg = ["dep:resvg"]
svg-text = ["svg", "resvg/text", "resvg/system-fonts"]
[dependencies]
tiny-skia = "0.12"
resvg = { version = "0.47", optional = true, default-features = false }
serde = { version = "1", features = ["derive"] }
toml = "1.1"
[target.'cfg(windows)'.dependencies]
windows-core = "0.62"
windows = { version = "0.62", features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_Graphics_Dwm",
"Win32_Graphics_DirectWrite",
"Win32_Media",
"Win32_UI_WindowsAndMessaging",
"Win32_UI_Controls",
"Win32_UI_HiDpi",
"Win32_UI_Shell",
"Win32_UI_Input_Ime",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Input_Touch",
"Win32_System_LibraryLoader",
"Win32_System_Com",
"Win32_System_DataExchange",
"Win32_System_Memory",
"Win32_System_Ole",
] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
objc2-foundation = { version = "0.3", features = [
"NSString",
"NSURL",
"NSData",
"NSGeometry",
"NSValue",
"NSArray",
"NSDictionary",
"NSAttributedString",
"NSRange",
"NSObjCRuntime",
"NSNotification",
"NSThread",
"NSTimer",
"NSDate",
"NSUserNotification",
] }
objc2-app-kit = { version = "0.3", features = [
"NSApplication",
"NSResponder",
"NSWindow",
"NSView",
"NSEvent",
"NSGraphics",
"NSGraphicsContext",
"NSColor",
"NSScreen",
"NSImage",
"NSImageRep",
"NSPasteboard",
"NSStatusBar",
"NSStatusBarButton",
"NSStatusItem",
"NSButton",
"NSControl",
"NSCell",
"NSMenu",
"NSMenuItem",
"NSWorkspace",
"NSCursor",
"NSTrackingArea",
"NSText",
"NSTextInputClient",
"NSTextInputContext",
"NSDragging",
"NSPasteboardItem",
"NSRunningApplication",
"NSWindowScripting",
] }
objc2-core-foundation = { version = "0.3", features = [
"CFBase",
"CFString",
"CFAttributedString",
"CFDictionary",
"CFArray",
"CFData",
"CFCGTypes",
] }
objc2-core-graphics = { version = "0.3", features = [
"CGContext",
"CGImage",
"CGColorSpace",
"CGColor",
"CGGeometry",
"CGAffineTransform",
"CGDataProvider",
"CGPath",
] }
objc2-core-text = { version = "0.3", features = [
"CTLine",
"CTFramesetter",
"CTFrame",
"CTTypesetter",
"CTRun",
"CTFont",
"CTFontDescriptor",
"CTParagraphStyle",
"CTStringAttributes",
] }
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc", "x86_64-apple-darwin", "aarch64-apple-darwin"]
all-features = true