Crate graphene

source ·
Expand description

§Rust Graphene bindings

Rust bindings and wrappers for Graphene, part of gtk-rs-core.

Graphene 1.10 is the lowest supported version for the underlying library.

§Minimum supported Rust version

Currently, the minimum supported Rust version is 1.70.0.



We recommend using crates from, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

graphene = { git = "", package = "graphene" }

Avoid mixing versioned and git crates like this:

# This will not compile
graphene = "0.13"
graphene = { git = "", package = "graphene" }

§See Also


graphene is available under the MIT License, please refer to it.



  • Traits intended for blanket imports.


  • A 3D box, described as the volume between a minimum and a maximum vertices.
  • Describe a rotation using Euler angles.
  • A 3D volume delimited by 2D clip planes.
  • A structure capable of holding a 4x4 matrix.
  • A 2D plane that extends infinitely in a 3D volume.
  • A point with two coordinates.
  • A point with three components: X, Y, and Z.
  • A 4 vertex quadrilateral, as represented by four Point.
  • A quaternion.
  • A ray emitted from an origin in a given direction.
  • The location and size of a rectangle region.
  • A size.
  • A sphere, represented by its center and radius.
  • A triangle.
  • A structure capable of holding a vector with two dimensions, x and y.
  • A structure capable of holding a vector with three dimensions: x, y, and z.
  • A structure capable of holding a vector with four dimensions: x, y, z, and w.