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