2022-01-15 08:17:17 -06:00
|
|
|
[package]
|
2022-12-22 18:39:56 -06:00
|
|
|
name = "softbuffer"
|
2022-05-22 18:20:40 -05:00
|
|
|
version = "0.1.1"
|
2022-01-15 08:17:17 -06:00
|
|
|
edition = "2021"
|
2022-01-16 08:45:01 -06:00
|
|
|
license = "MIT OR Apache-2.0"
|
2022-12-20 07:07:08 -07:00
|
|
|
description = "Cross-platform software buffer"
|
2022-12-22 18:39:56 -06:00
|
|
|
documentation = "https://docs.rs/softbuffer"
|
2022-01-19 21:57:09 -06:00
|
|
|
readme = "README.md"
|
2022-12-22 18:39:56 -06:00
|
|
|
repository = "https://github.com/rust-windowing/softbuffer"
|
2022-12-20 07:07:08 -07:00
|
|
|
keywords = ["framebuffer", "windowing"]
|
2022-01-19 21:57:09 -06:00
|
|
|
categories = ["game-development", "graphics", "gui", "multimedia", "rendering"]
|
|
|
|
|
exclude = ["examples"]
|
2022-01-15 08:17:17 -06:00
|
|
|
|
2022-12-21 16:20:15 -08:00
|
|
|
[features]
|
2022-12-21 17:16:45 -08:00
|
|
|
default = ["x11", "wayland", "wayland-dlopen"]
|
2022-12-21 16:20:15 -08:00
|
|
|
wayland = ["wayland-backend", "wayland-client", "nix"]
|
2022-12-21 17:16:45 -08:00
|
|
|
wayland-dlopen = ["wayland-sys/dlopen"]
|
2022-12-21 16:20:15 -08:00
|
|
|
x11 = ["x11-dl"]
|
|
|
|
|
|
2022-01-15 08:17:17 -06:00
|
|
|
[dependencies]
|
2022-01-16 08:59:29 -06:00
|
|
|
thiserror = "1.0.30"
|
2022-08-24 00:16:20 -05:00
|
|
|
raw-window-handle = "0.5.0"
|
2022-01-16 08:03:20 -06:00
|
|
|
|
2022-12-19 16:29:16 -08:00
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
|
2022-12-21 16:20:15 -08:00
|
|
|
nix = { version = "0.26.1", optional = true }
|
|
|
|
|
wayland-backend = { version = "0.1.0-beta.14", features = ["client_system"], optional = true }
|
|
|
|
|
wayland-client = { version = "0.30.0-beta.14", optional = true }
|
2022-12-21 17:16:45 -08:00
|
|
|
wayland-sys = "0.30.0"
|
2022-12-21 16:20:15 -08:00
|
|
|
x11-dl = { version = "2.19.1", optional = true }
|
2022-01-15 08:17:17 -06:00
|
|
|
|
2022-12-20 08:08:46 -08:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
|
|
|
|
|
version = "0.42.0"
|
|
|
|
|
features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"]
|
2022-01-16 08:03:20 -06:00
|
|
|
|
2022-01-19 11:59:43 +09:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2022-04-24 07:31:19 -07:00
|
|
|
cocoa = "0.24.0"
|
2022-01-19 11:59:43 +09:00
|
|
|
core-graphics = "0.22.3"
|
2022-04-24 07:31:19 -07:00
|
|
|
foreign-types = "0.3.0"
|
2022-01-19 11:59:43 +09:00
|
|
|
objc = "0.2.7"
|
|
|
|
|
|
2022-02-12 20:24:18 +11:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
|
wasm-bindgen = "0.2.78"
|
|
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
|
|
|
version = "0.3.55"
|
|
|
|
|
features = ["CanvasRenderingContext2d", "Document", "Element", "HtmlCanvasElement", "ImageData", "Window"]
|
|
|
|
|
|
2022-12-07 11:27:36 -07:00
|
|
|
[target.'cfg(target_os = "redox")'.dependencies]
|
|
|
|
|
redox_syscall = "0.3"
|
|
|
|
|
|
2022-01-15 08:17:17 -06:00
|
|
|
[dev-dependencies]
|
2022-02-23 19:13:26 +11:00
|
|
|
instant = "0.1.12"
|
2022-08-24 00:16:20 -05:00
|
|
|
winit = "0.27.2"
|
2022-02-23 19:13:26 +11:00
|
|
|
|
|
|
|
|
[dev-dependencies.image]
|
|
|
|
|
version = "0.23.14"
|
|
|
|
|
# Disable rayon on web
|
|
|
|
|
default-features = false
|
|
|
|
|
features = ["jpeg"]
|
|
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
|
|
|
# Turn rayon back on everywhere else; creating the separate entry resets the features to default.
|
2022-01-31 22:03:48 -06:00
|
|
|
image = "0.23.14"
|
2022-04-24 07:31:19 -07:00
|
|
|
rayon = "1.5.1"
|