Skip to content

Commit

Permalink
Specify dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
remcokranenburg committed Jan 14, 2022
1 parent 69e5945 commit a69bfe8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 4 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ keywords = ["graphics", "gtk", "opengl", "glium", "gui"]
categories = ["api-bindings", "graphics", "gui", "rendering", "rendering::graphics-api"]

[dependencies]
glib = "*"
glium = "*"
gl_loader = "*"

[dependencies.gtk]
package = "gtk4"
version = "*"
features = ["v4_2"]
glib = "^0.14.8"
glium = "^0.31.0"
gl_loader = "^0.1.2"
gtk4 = "^0.3.1"
4 changes: 2 additions & 2 deletions examples/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use glium::{
program,
uniform,
};
use gtk::prelude::*;
use gtk::{
use gtk4::prelude::*;
use gtk4::{
Application,
ApplicationWindow,
Box,
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use glium::backend::{Backend, Context, Facade};
use glium::debug::DebugCallbackBehavior;
use glium::IncompatibleOpenGl;
use glium::SwapBuffersError;
use gtk::prelude::*;
use gtk::GLArea;
use gtk4::prelude::*;
use gtk4::GLArea;
use std::rc::Rc;

struct GLAreaBackend {
Expand Down

0 comments on commit a69bfe8

Please sign in to comment.