[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.61.0"
edition = "2021"
rust-version = "1.56"
[dependencies]
bitflags = "1.0.0"
raw-window-handle-0-5 = { package = "raw-window-handle", version = "0.5.0", optional = true }
raw-window-handle-0-6 = { package = "raw-window-handle", version = "0.6.0", optional = true }
glfw-sys = {version = "7.0.0", default-features = false, features = ["native-gl", "native-egl"]}
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.5.1"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["libloaderapi"] }
[dependencies.image]
optional = true
version = "^0.25.1"
[dependencies.log]
optional = true
version = "0.4"
[dependencies.serde]
optional = true
version = "1"
features = ["derive"]
[dev-dependencies]
log = "0.4"
ash = "0.38"
[features]
all = ["image", "vulkan", "log", "wayland", "x11", "raw-window-handle-v0-6"]
default = ["all", "prebuilt-libs"]
with-window-handle-v0-5 = ["raw-window-handle-v0-5"]
vulkan = ["glfw-sys/vulkan"]
wayland = ["glfw-sys/wayland"]
x11 = ["glfw-sys/x11"]
native-handles = ["glfw-sys/native-handles"]
src-build = ["glfw-sys/src-build"]
prebuilt-libs = ["glfw-sys/prebuilt-libs"]
static-link = ["glfw-sys/static-link"]
raw-window-handle-v0-6 = ["dep:raw-window-handle-0-6", "native-handles"]
raw-window-handle-v0-5 = ["dep:raw-window-handle-0-5", "native-handles"]
serde = ["dep:serde"]
[package.metadata.docs.rs]
features = ["all"]
no-default-features = true
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc"]