Rust bindings for SFML, the Simple and Fast Multimedia Library.
- Linux, Windows, or OS X
- Rust 1.60 or later
- SFML 2.5
- A C++ compiler for building CSFML
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
includefolder of your SFML location.
SFML_LIBS_DIR. Set this to the
libfolder of your SFML location.
!! Thread safety warning !!
rust-sfml strives to be memory-safe, as a Rust library should be, but currently there is no clear plan on how to solve thread-safety issues. You should be fine as long as you only use SFML on the main thread, but as soon as you try to call into SFML from another thread, you are on your own.
This 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 than the SFML, the Zlib/png license.