Cargo Features
[dependencies]
raylib = { version = "5.5.1", default-features = false, features = ["nightly", "with_serde", "wayland", "convert_mint", "custom_frame_control", "opengl_33", "opengl_21", "opengl_es_20", "opengl_es_30", "sdl", "noscreenshot", "nogif", "imgui", "nobuild", "bindgen"] }
- default = bindgen
-
The
bindgen
feature is set by default wheneverraylib
is added without
somewhere in the dependency tree.default-features = false - nightly
- with_serde = serde, serde_json
- wayland
-
Enables wayland of raylib-sys
raylib-sys:
Build for wayland on linux. Should fix #119
- convert_mint = mint
- 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)
- opengl_es_30
-
Enables opengl_es_30 of raylib-sys
- sdl
-
Enables sdl of raylib-sys
- noscreenshot
-
Enables noscreenshot of raylib-sys
raylib-sys:
Allow disabling screenshots and gifs on f12
- nogif
-
Enables nogif of raylib-sys
- imgui
-
Enables imgui and imgui-sys and imgui of raylib-sys
raylib-sys:
ImGui support
Affects
imgui::ImGuiTheme
,raylib::imgui
… - nobuild
-
Enables nobuild of raylib-sys
raylib-sys:
Build Raylib headless for docs/esoteric platforms. Up to you to link.
- bindgen default
-
Enables bindgen of raylib-sys
raylib-sys:
Generate bindings automatically.
You can turn this off if you wanna go into the source and put in your own bindings.rs, which is useful since bindgen doesn't work on esoteric platforms.
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.