Skip to main content

raylib_sys/
lib.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(clippy::approx_constant)]
5// bindgen maps C `long double` to u128 on Linux (128-bit float ABI); the generated
6// extern fns for these standard-math intrinsics are never called by raylib-rs, but
7// the `improper_ctypes` lint fires on the `include!`-d bindings.rs. Suppress it
8// crate-wide since we cannot annotate the generated file directly.
9#![allow(improper_ctypes)]
10
11#[cfg(not(feature = "nobindgen"))]
12include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
13
14#[cfg(feature = "nobindgen")]
15include!(env!("RAYLIB_BINDGEN_LOCATION"));
16
17#[cfg(target_os = "macos")]
18pub const MAX_MATERIAL_MAPS: u32 = 12;
19
20mod color;
21#[cfg(feature = "glam")]
22mod glam_conv;
23mod math;
24mod matrix_quat_math;
25#[cfg(feature = "mint")]
26mod mint_conv;
27mod vector_math;
28#[allow(unused_imports)]
29pub use color::*;
30#[allow(unused_imports)]
31pub use math::*;
32pub use matrix_quat_math::{matrix_decompose, quaternion_to_axis_angle};
33pub use vector_math::vector3_ortho_normalize;
34
35#[allow(clippy::derivable_impls)] // LOG_INFO != discriminant 0 (LOG_ALL); derived Default would return LOG_ALL
36impl Default for TraceLogLevel {
37    fn default() -> Self {
38        TraceLogLevel::LOG_INFO
39    }
40}