2022-01-15 08:17:17 -06:00
|
|
|
[package]
|
2022-12-22 18:39:56 -06:00
|
|
|
name = "softbuffer"
|
2023-06-04 16:10:35 -07:00
|
|
|
version = "0.3.0"
|
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"]
|
2023-03-17 19:56:10 -07:00
|
|
|
rust-version = "1.64.0"
|
2022-01-15 08:17:17 -06:00
|
|
|
|
2023-04-07 11:54:50 -07:00
|
|
|
[[bench]]
|
|
|
|
|
name = "buffer_mut"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2022-12-21 16:20:15 -08:00
|
|
|
[features]
|
2023-07-02 15:08:01 -07:00
|
|
|
default = ["x11", "x11-dlopen", "wayland", "wayland-dlopen"]
|
2023-04-06 00:30:59 -07:00
|
|
|
wayland = ["wayland-backend", "wayland-client", "memmap2", "nix", "fastrand"]
|
2022-12-21 17:16:45 -08:00
|
|
|
wayland-dlopen = ["wayland-sys/dlopen"]
|
2023-07-02 15:08:01 -07:00
|
|
|
x11 = ["as-raw-xcb-connection", "bytemuck", "nix", "tiny-xlib", "x11rb"]
|
|
|
|
|
x11-dlopen = ["tiny-xlib/dlopen", "x11rb/dl-libxcb"]
|
2022-12-21 16:20:15 -08:00
|
|
|
|
2022-01-15 08:17:17 -06:00
|
|
|
[dependencies]
|
2022-12-27 09:14:54 -08:00
|
|
|
log = "0.4.17"
|
2023-01-05 22:37:30 +00:00
|
|
|
raw-window-handle = "0.5.0"
|
2022-01-16 08:03:20 -06:00
|
|
|
|
2022-12-27 15:17:42 -08:00
|
|
|
[target.'cfg(all(unix, not(any(target_vendor = "apple", target_os = "android", target_os = "redox"))))'.dependencies]
|
2023-07-02 15:08:01 -07:00
|
|
|
as-raw-xcb-connection = { version = "1.0.0", optional = true }
|
2023-01-05 22:37:30 +00:00
|
|
|
bytemuck = { version = "1.12.3", optional = true }
|
2023-07-02 15:19:49 -07:00
|
|
|
memmap2 = { version = "0.7.1", optional = true }
|
2022-12-21 16:20:15 -08:00
|
|
|
nix = { version = "0.26.1", optional = true }
|
2023-07-02 15:08:01 -07:00
|
|
|
tiny-xlib = { version = "0.2.1", optional = true }
|
2022-12-27 12:18:14 -08:00
|
|
|
wayland-backend = { version = "0.1.0", features = ["client_system"], optional = true }
|
|
|
|
|
wayland-client = { version = "0.30.0", optional = true }
|
2022-12-21 17:16:45 -08:00
|
|
|
wayland-sys = "0.30.0"
|
2023-07-02 15:08:01 -07:00
|
|
|
x11rb = { version = "0.12.0", features = ["allow-unsafe-code", "shm"], optional = true }
|
2022-01-15 08:17:17 -06:00
|
|
|
|
2022-12-27 15:17:42 -08:00
|
|
|
[target.'cfg(all(unix, not(any(target_vendor = "apple", target_os = "android", target_os = "redox", target_os = "linux", target_os = "freebsd"))))'.dependencies]
|
2023-07-03 07:59:34 -07:00
|
|
|
fastrand = { version = "2.0.0", optional = true }
|
2022-12-22 10:13:32 -08:00
|
|
|
|
2022-12-20 08:08:46 -08:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
|
2023-04-06 08:05:18 -07:00
|
|
|
version = "0.48.0"
|
2022-12-20 08:08:46 -08:00
|
|
|
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]
|
2023-04-06 00:30:59 -07:00
|
|
|
bytemuck = { version = "1.12.3", features = ["extern_crate_alloc"] }
|
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]
|
2023-06-05 01:14:14 +02:00
|
|
|
js-sys = "0.3.63"
|
|
|
|
|
wasm-bindgen = "0.2.86"
|
2022-02-12 20:24:18 +11:00
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
|
|
|
|
version = "0.3.55"
|
2023-06-05 01:14:14 +02:00
|
|
|
features = [
|
|
|
|
|
"CanvasRenderingContext2d",
|
|
|
|
|
"Document",
|
|
|
|
|
"Element",
|
|
|
|
|
"HtmlCanvasElement",
|
|
|
|
|
"ImageData",
|
|
|
|
|
"OffscreenCanvas",
|
|
|
|
|
"OffscreenCanvasRenderingContext2d",
|
|
|
|
|
"Window",
|
|
|
|
|
]
|
2022-02-12 20:24:18 +11:00
|
|
|
|
2022-12-07 11:27:36 -07:00
|
|
|
[target.'cfg(target_os = "redox")'.dependencies]
|
|
|
|
|
redox_syscall = "0.3"
|
|
|
|
|
|
2022-12-27 15:17:42 -08:00
|
|
|
[build-dependencies]
|
|
|
|
|
cfg_aliases = "0.1.1"
|
|
|
|
|
|
2022-01-15 08:17:17 -06:00
|
|
|
[dev-dependencies]
|
2023-04-07 11:54:50 -07:00
|
|
|
criterion = { version = "0.4.0", default-features = false, features = ["cargo_bench_support"] }
|
2022-02-23 19:13:26 +11:00
|
|
|
instant = "0.1.12"
|
2023-02-20 10:04:09 -08:00
|
|
|
winit = "0.28.1"
|
2023-06-01 20:09:30 -07:00
|
|
|
winit-test = "0.1.0"
|
2022-02-23 19:13:26 +11:00
|
|
|
|
|
|
|
|
[dev-dependencies.image]
|
2023-04-06 08:05:18 -07:00
|
|
|
version = "0.24.6"
|
2022-02-23 19:13:26 +11:00
|
|
|
# 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.
|
2023-04-06 08:05:18 -07:00
|
|
|
image = "0.24.6"
|
2022-04-24 07:31:19 -07:00
|
|
|
rayon = "1.5.1"
|
2023-02-20 10:37:25 -08:00
|
|
|
|
2023-06-01 20:09:30 -07:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
|
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
|
|
2023-02-20 10:37:25 -08:00
|
|
|
[workspace]
|
|
|
|
|
members = [
|
|
|
|
|
"run-wasm",
|
|
|
|
|
]
|
2023-05-08 15:43:34 +02:00
|
|
|
|
2023-06-01 20:09:30 -07:00
|
|
|
[[test]]
|
|
|
|
|
name = "present_and_fetch"
|
|
|
|
|
path = "tests/present_and_fetch.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2023-05-08 15:43:34 +02:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
|
all-features = true
|
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
default-target = "x86_64-unknown-linux-gnu"
|
|
|
|
|
targets = [
|
|
|
|
|
"x86_64-pc-windows-msvc",
|
|
|
|
|
"x86_64-apple-darwin",
|
|
|
|
|
"x86_64-unknown-linux-gnu",
|
|
|
|
|
"wasm32-unknown-unknown",
|
|
|
|
|
]
|