[package]
name = "x-graphics"
description = "Graphics framework for X"
homepage = "https://github.com/libark/x"
repository = "https://github.com/libark/x"
documentation = "https://docs.rs/x-graphics"
version = "0.1.0"
authors = ["Zhou Wei <zhouwei@ehom.net>"]
license = "MIT OR Apache-2.0"
categories = ["graphics"]
keywords = ["graphics", "2d", "image", "bitmap"]
edition = "2021"
[dependencies]
bitflags = "2.6"
cfg-if = "1.0"
libc = "0.2"
os-ver = "0.2"
thiserror = "1.0"
winit = { version = "0.30" }
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
core-foundation = "0.10"
core-graphics2 = { version = "0.4", default-features = false, features = ["link", "objc"] }
core-text = "21.0"
objc2 = "0.5"
objc2-foundation = "0.2"
[target.'cfg(target_os = "macos")'.dependencies]
objc2-app-kit = "0.2"
[target.'cfg(target_os = "ios")'.dependencies]
objc2-ui-kit = { version = "0.2", features = ["UIView", "UIWindow"] }
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.58"
features = [
"Foundation_Numerics",
"Win32_Globalization",
"Win32_Graphics_Direct2D",
"Win32_Graphics_Direct2D_Common",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_DirectWrite",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_System_Com",
"Win32_System_SystemServices",
]
[target.'cfg(target_os = "linux")'.dependencies]
skia-safe = "0.78"
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen = "0.2"
web-time = "1.1"
js-sys = "0.3"
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
version = "0.3"
features = [
"CanvasGradient",
"CanvasRenderingContext2d",
"CanvasWindingRule",
"Document",
"DomMatrix",
"DomPoint",
"DomPointInit",
"DomRect",
"Element",
"HtmlCanvasElement",
"ImageBitmap",
"ImageData",
"OffscreenCanvas",
"OffscreenCanvasRenderingContext2d",
"Path2d",
"TextMetrics",
"Window",
]
[target.'cfg(target_family = "wasm")'.dev-dependencies]
console_error_panic_hook = "0.1"