Cargo Features
Raylib has no features set by default.
[dependencies]
raylib = { version = "5.0.2", features = ["nightly", "with_serde", "nalgebra_interop", "wayland", "custom_frame_control", "opengl_33", "opengl_21", "opengl_es_20", "noscreenshot", "nogif"] }
- nightly
- with_serde = serde, serde_json
- nalgebra_interop = nalgebra
- wayland
-
Enables wayland of raylib-sys
raylib-sys:
Build for wayland on linux. Should fix #119
- custom_frame_control
-
Enables custom_frame_control of raylib-sys
raylib-sys:
config.h's SUPPORT_CUSTOM_FRAME_CONTROL
- opengl_33
-
Enables opengl_33 of raylib-sys
raylib-sys:
OpenGL stuff, intended for fixing #122
- opengl_21
-
Enables opengl_21 of raylib-sys
- opengl_es_20
-
Enables opengl_es_20 of raylib-sys
raylib-sys:
opengl_11 = [] I couldn't get this one working, the others were fine in my limited testing (unsure about wayland compatibility)
- noscreenshot
-
Enables noscreenshot of raylib-sys
raylib-sys:
Allow disabling screenshots and gifs on f12
- nogif
-
Enables nogif of raylib-sys
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.