[package]
edition = "2021"
name = "windui"
version = "0.6.0"
authors = ["huanfeng <huanfengf@gmail.com>"]
build = false
exclude = [
".github/",
".remember/",
"/scripts",
"/temp",
"/artifacts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "轻量跨平台桌面 GUI:tiny-skia 渲染 + 平台原生窗口/文字(Windows: Win32+DirectWrite;macOS: Cocoa+CoreText)"
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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/huanfeng/wind-ui-rust"
[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
[features]
d2d = []
default = [
"svg",
"d2d",
]
svg = ["dep:resvg"]
svg-text = [
"svg",
"resvg/text",
"resvg/system-fonts",
]
[lib]
name = "windui"
path = "src/lib.rs"
[[example]]
name = "about"
path = "examples/about.rs"
[[example]]
name = "animation"
path = "examples/animation.rs"
[[example]]
name = "background_task"
path = "examples/background_task.rs"
[[example]]
name = "dropdown"
path = "examples/dropdown.rs"
[[example]]
name = "dyn_list"
path = "examples/dyn_list.rs"
[[example]]
name = "emoji"
path = "examples/emoji.rs"
[[example]]
name = "file_drop"
path = "examples/file_drop.rs"
[[example]]
name = "frameless"
path = "examples/frameless.rs"
[[example]]
name = "fullshowcase"
path = "examples/fullshowcase.rs"
[[example]]
name = "image"
path = "examples/image.rs"
[[example]]
name = "ime"
path = "examples/ime.rs"
[[example]]
name = "ime_settings"
path = "examples/ime_settings.rs"
[[example]]
name = "light_titlebar"
path = "examples/light_titlebar.rs"
[[example]]
name = "list"
path = "examples/list.rs"
[[example]]
name = "multiline"
path = "examples/multiline.rs"
[[example]]
name = "multiline_demo"
path = "examples/multiline_demo.rs"
[[example]]
name = "phase0_window"
path = "examples/phase0_window.rs"
[[example]]
name = "phase1_layout"
path = "examples/phase1_layout.rs"
[[example]]
name = "phase2_text"
path = "examples/phase2_text.rs"
[[example]]
name = "phase3_button"
path = "examples/phase3_button.rs"
[[example]]
name = "phase4_form"
path = "examples/phase4_form.rs"
[[example]]
name = "phase5_containers"
path = "examples/phase5_containers.rs"
[[example]]
name = "progress"
path = "examples/progress.rs"
[[example]]
name = "settings"
path = "examples/settings.rs"
[[example]]
name = "theming"
path = "examples/theming.rs"
[[example]]
name = "toast"
path = "examples/toast.rs"
[[example]]
name = "tray"
path = "examples/tray.rs"
[dependencies.resvg]
version = "0.47"
optional = true
default-features = false
[dependencies.rfd]
version = "0.17"
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.tiny-skia]
version = "0.12"
[dependencies.toml]
version = "1.1"
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.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",
]
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3"
features = [
"CFBase",
"CFString",
"CFAttributedString",
"CFDictionary",
"CFArray",
"CFData",
"CFCGTypes",
]
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3"
features = [
"CGContext",
"CGImage",
"CGColorSpace",
"CGColor",
"CGGeometry",
"CGAffineTransform",
"CGDataProvider",
"CGPath",
]
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-text]
version = "0.3"
features = [
"CTLine",
"CTFramesetter",
"CTFrame",
"CTTypesetter",
"CTRun",
"CTFont",
"CTFontDescriptor",
"CTParagraphStyle",
"CTStringAttributes",
]
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"NSString",
"NSURL",
"NSData",
"NSGeometry",
"NSValue",
"NSArray",
"NSDictionary",
"NSAttributedString",
"NSRange",
"NSObjCRuntime",
"NSNotification",
"NSThread",
"NSTimer",
"NSDate",
"NSUserNotification",
]
[target."cfg(windows)".dependencies.raw-window-handle]
version = "0.6"
[target."cfg(windows)".dependencies.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_Threading",
"Win32_Security",
"Win32_System_Ole",
"Win32_Graphics_Direct2D",
"Win32_Graphics_Direct2D_Common",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
]
[target."cfg(windows)".dependencies.windows-core]
version = "0.62"
[target."cfg(windows)".dependencies.windows-numerics]
version = "0.3"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true