1[package]
2name = "glutin"
3version = "0.32.2"
4authors = ["Kirill Chibisov <contact@kchibisov.com>"]
5description = "Cross-platform OpenGL context provider."
6keywords = ["windowing", "opengl", "egl"]
7license = "Apache-2.0"
8readme = "README.md"
9repository = "https://github.com/rust-windowing/glutin"
10documentation = "https://docs.rs/glutin"
11rust-version = "1.70.0"
12edition = "2021"
13
14[features]
15default = ["egl", "glx", "x11", "wayland", "wgl"]
16egl = ["glutin_egl_sys", "libloading"]
17glx = ["x11", "glutin_glx_sys", "libloading"]
18wgl = ["glutin_wgl_sys", "windows-sys"]
19x11 = ["x11-dl"]
20wayland = ["wayland-sys", "egl"]
21
22[dependencies]
23bitflags = "2.2.1"
24libloading = { version = "0.8.0", optional = true }
25once_cell = "1.13"
26raw-window-handle = "0.6.2"
27
28[target.'cfg(windows)'.dependencies]
29glutin_egl_sys = { version = "0.7.1", path = "../glutin_egl_sys", optional = true }
30glutin_wgl_sys = { version = "0.6.1", path = "../glutin_wgl_sys", optional = true }
31
32[target.'cfg(windows)'.dependencies.windows-sys]
33version = "0.52"
34features = [
35 "Win32_Foundation",
36 "Win32_Graphics_Gdi",
37 "Win32_Graphics_OpenGL",
38 "Win32_System_LibraryLoader",
39 "Win32_UI_WindowsAndMessaging",
40]
41optional = true
42
43[target.'cfg(target_os = "android")'.dependencies]
44glutin_egl_sys = { version = "0.7.1", path = "../glutin_egl_sys" }
45
46[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
47glutin_egl_sys = { version = "0.7.1", path = "../glutin_egl_sys", optional = true }
48glutin_glx_sys = { version = "0.6.1", path = "../glutin_glx_sys", optional = true }
49wayland-sys = { version = "0.31.1", default-features = false, features = ["egl", "client", "dlopen"], optional = true }
50x11-dl = { version = "2.20.0", optional = true }
51
52[target.'cfg(any(target_os = "macos"))'.dependencies]
53cgl = "0.3.2"
54core-foundation = "0.9.3"
55objc2 = "0.5.1"
56dispatch = "0.2.0"
57
58[target.'cfg(any(target_os = "macos"))'.dependencies.objc2-foundation]
59version = "0.2.0"
60features = [
61 "dispatch",
62 "NSArray",
63 "NSThread",
64]
65
66[target.'cfg(any(target_os = "macos"))'.dependencies.objc2-app-kit]
67version = "0.2.0"
68features = [
69 "NSApplication",
70 "NSResponder",
71 "NSView",
72 "NSWindow",
73 "NSOpenGL",
74 "NSOpenGLView",
75]
76
77[build-dependencies]
78cfg_aliases = "0.2.1"
79
80[package.metadata.docs.rs]
81rustdoc-args = ["--cfg", "docsrs"]
82targets = [
83 "aarch64-linux-android",
84 "x86_64-unknown-linux-gnu",
85 "x86_64-pc-windows-msvc",
86 "x86_64-apple-darwin",
87 "i686-unknown-linux-gnu",
88 "i686-pc-windows-msvc",
89]
90default-target = "x86_64-unknown-linux-gnu"
91