forked from rust-windowing/softbuffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (46 loc) · 1.77 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "softbuffer"
version = "0.1.1"
edition = "2021"
authors = ["David Johnson <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "Softbuffer integrates with the raw-window-handle crate to allow writing to a window in a cross-platform way while using the very high quality dedicated window management libraries that are available in the Rust ecosystem."
documentation = "https://docs.rs/softbuffer"
readme = "README.md"
homepage = "https://github.com/john01dav/softbuffer"
repository = "https://github.com/john01dav/softbuffer"
keywords = ["framebuffer"]
categories = ["game-development", "graphics", "gui", "multimedia", "rendering"]
exclude = ["examples"]
[dependencies]
thiserror = "1.0.30"
raw-window-handle = "0.5.0"
[target.'cfg(target_os = "linux")'.dependencies]
tempfile = "3.3.0"
wayland-client = {version = "0.29", features = ["use_system_lib"], default_features = false}
x11-dl = "2.19.1"
[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3.9"
features = ["windef", "wingdi", "winuser"]
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.0"
core-graphics = "0.22.3"
foreign-types = "0.3.0"
objc = "0.2.7"
[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"]
[dev-dependencies]
instant = "0.1.12"
winit = "0.27.2"
[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.
image = "0.23.14"
rayon = "1.5.1"