I'm test-driving combinations of languages and game engines and when I get to Rust+Raylib, I run into a build problem that I haven't been able to find a solution for. Following the guide at crates.io: Rust Package Registry I get three errors on undeclared identifier GLFW_SCALE_FRAMEBUFFER. I'm on MacOS (M2 chip), CMake is 4.4.2 and I know Apple has an attitude about OpenGL. Is there a documented solution to this? If so, where?
I'm not a mac user, but GLFW_SCALE_FRAMEBUFFER has nothing to do with opengl, it's a glfw flag. glfw, although has an opengl backend, is a cross platform windowing library, it handles window creation, graphics context loading and initialization, input events, etc, similar to sdl.
I think the error indicates you have an incompatible version of glfw installed, or maybe it's misconfigured that the flag is disabled. this should not happen if you build raylib with the bundled glfw.
find the cmake build directory and search glfw in the CMakeCache.txt file to see if there's some related configs.