#graphics #game #sfml #submodule

sf2g

Minimal Rust binding for SFML2 Graphics submodule

2 unstable releases

Uses new Rust 2024

new 0.2.0 Apr 25, 2025
0.1.0 Apr 19, 2025

#113 in Graphics APIs

Download history 136/week @ 2025-04-16

136 downloads per month
Used in 2 crates

zlib-acknowledgement

1.5MB
32K SLoC

C++ 22K SLoC // 0.2% comments Rust 6K SLoC // 0.0% comments Objective-C++ 4K SLoC // 0.3% comments Objective-C 195 SLoC // 0.5% comments Shell 1 SLoC

sf2g

Minimal Rust bindings for the Graphics module of SFML 2, the Simple and Fast Multimedia Library. Fork of rust-sfml.

Platform support

Platform Development and testing CI (basic tests)
🐧 Linux ✅ Most tested Status
🪟 Windows (MSVC) ⚠️ Rarely tested. Looking for testers/maintainers! Status
🐧 -> 🪟 (mingw-w64) ⚠️ Cross-compile from Linux to Windows. Somewhat tested.
🍎 Mac OS X ❌ Untested. Looking for testers/maintainers! Status

Prerequisites

  • Rust 1.86 or later
  • CMake, and a C++ toolchain for building SFML
  • 🐧 On Linux, you need the following dependencies installed:
    • Window module: libGL libX11 libXcursor libXrandr
    • Graphics module: libfreetype

License

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 as SFML, the Zlib/png license.

Dependencies

~8MB
~163K SLoC