forked from PistonDevelopers/glfw-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
49 lines (40 loc) · 1.26 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
[package]
authors = ["The glfw-rs developers."]
description = "GLFW3 bindings and idiomatic wrapper for Rust."
keywords = ["windowing", "opengl", "vulkan"]
license = "Apache-2.0"
name = "glfw"
readme = "README.md"
repository = "https://github.com/bjz/glfw-rs"
version = "0.55.0"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0.0"
# would like one to enable when raw-window-handle-v0-6 is not enabled, but have not figured out how
raw-window-handle-0-5 = { package = "raw-window-handle", version = "0.5.0"}
raw-window-handle-0-6 = { package = "raw-window-handle", version = "0.6.0", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["libloaderapi"] }
[dependencies.glfw-sys]
optional = true
version = "5.0.0"
[dependencies.image]
optional = true
version = "^0.24.1"
[dependencies.log]
optional = true
version = "0.4"
[dependencies.ash]
optional = true
version = "0.37.2"
[dev-dependencies]
log = "0.4"
[features]
all = ["image", "vulkan", "log", "wayland", "raw-window-handle-v0-6"]
default = ["glfw-sys", "raw-window-handle-v0-6"]
vulkan = ["ash"]
wayland = ["glfw-sys/wayland"]
raw-window-handle-v0-6 = ["dep:raw-window-handle-0-6"]