Crates.io | sfml |
lib.rs | sfml |
version | 0.21.0 |
source | src |
created_at | 2015-04-14 20:33:23.656919 |
updated_at | 2023-07-24 08:53:37.579471 |
description | Rust binding for sfml |
homepage | |
repository | https://github.com/jeremyletang/rust-sfml |
max_upload_size | |
id | 1870 |
size | 1,334,040 |
Rust bindings for SFML, the Simple and Fast Multimedia Library.
If you get errors about SFML headers not being found, or linker errors, that probably means SFML is not installed in a global location. In that case, you can set two environment variables to help rust-sfml find the required files:
SFML_INCLUDE_DIR
. Set this to the include
folder of your SFML location.SFML_LIBS_DIR
. Set this to the lib
folder of your SFML location.To help debugging environment variables, you can try building with cargo build -vv
.
If the environment variables are set correctly, you should get warnings like this:
warning: Custom SFML include dir: C:\Users\You\sfml\include
warning: Adding custom SFML libs search path C:\Users\You\sfml\lib
The API documentation is available at: https://docs.rs/sfml/
If you need help with setting up rust-sfml
on your system, you can take a look at the wiki.
Please take note that:
rust-sfml
core team doesn't review itThis software is a binding of the SFML library created by Laurent Gomila, which is provided under the Zlib/png license.
This software is provided under the same license as SFML, the Zlib/png license.
rust-sfml users are welcome on the Official SFML Discord server