-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathCargo.toml
More file actions
135 lines (123 loc) · 3.33 KB
/
Copy pathCargo.toml
File metadata and controls
135 lines (123 loc) · 3.33 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[package]
name = "minifb"
version = "0.29.0"
license = "MIT OR Apache-2.0"
authors = ["Daniel Collin <daniel@collin.com>"]
description = "Cross-platform window setup with optional bitmap rendering"
keywords = ["windowing", "window", "framebuffer"]
categories = ["rendering"]
repository = "https://github.com/emoon/rust_minifb"
documentation = "https://docs.rs/minifb/0.15/minifb"
build = "build.rs"
edition = "2018"
readme = "README.md"
exclude = ["examples/resources/"]
[[example]]
name = "wasm"
crate-type = ["cdylib"]
[badges]
maintenance = { status = "actively-developed" }
[dev-dependencies]
png = "0.17"
console_error_panic_hook = "0.1.7"
web-sys = { version = "0.3.56", features = [
"Blob",
"CanvasRenderingContext2d",
"CssStyleDeclaration",
"Document",
"Element",
"Gamepad",
"GamepadButton",
"GamepadEvent",
"Headers",
"HtmlCanvasElement",
"HtmlImageElement",
"ImageData",
"Navigator",
"Node",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Url",
"Window",
"console",
'KeyboardEvent',
'MouseEvent',
] }
wasm-bindgen = { version = "0.2.79", features = ["serde-serialize"] }
[build-dependencies]
cc = "1.0"
[dependencies]
raw-window-handle = "0.6"
web-time = "1.1"
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3.9"
features = ["winuser", "wingdi", "libloaderapi", "errhandlingapi", "fileapi"]
[features]
default = ["wayland", "x11", "dlopen"]
dlopen = ["wayland-client/dlopen"]
x11 = ["x11-dl", "libc"]
wayland = [
"dlib",
"lazy_static",
"libc",
"tempfile",
"wayland-client",
"wayland-cursor",
"wayland-protocols",
]
[target.'cfg(not(any(target_os = "macos", target_os = "redox", windows, target_arch="wasm32")))'.dependencies]
# `system` selects the libwayland-backed backend rather than wayland-rs'
# pure-Rust one. It is required because `raw-window-handle` has to hand out a
# real `wl_surface*`/`wl_display*`, which only that backend can produce.
wayland-client = { version = "0.31", features = ["system"], optional = true }
wayland-protocols = { version = "0.32", features = [
"client",
"unstable",
], optional = true }
wayland-cursor = { version = "0.31", optional = true }
tempfile = { version = "3.3", optional = true }
x11-dl = { version = "2.19.1", optional = true }
libc = { version = "0.2.107", optional = true }
dlib = { version = "0.5", optional = true }
lazy_static = { version = "1.0", optional = true }
[target.x86_64-unknown-redox.dependencies]
orbclient = "0.3.20"
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.56"
wasm-bindgen-futures = "0.4.29"
serde = { version = "1.0.136", features = ["derive"] }
serde_derive = "1.0.123"
futures = "0.3.12"
console_error_panic_hook = "0.1.7"
# The `web-sys` crate allows you to interact with the various browser APIs,
# like the DOM.
web-sys = { version = "0.3.56", features = [
"Blob",
"CanvasRenderingContext2d",
"CssStyleDeclaration",
"Document",
"Element",
"Gamepad",
"GamepadButton",
"GamepadEvent",
"Headers",
"HtmlCanvasElement",
"HtmlImageElement",
"ImageData",
"Navigator",
"Node",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Url",
"Window",
"console",
'KeyboardEvent',
'MouseEvent',
] }
# The `wasm-bindgen` crate provides the bare minimum functionality needed
# to interact with JavaScript.
wasm-bindgen = { version = "0.2.79", features = ["serde-serialize"] }