#graphics #game #sfml #submodule

sf2g

Minimal Rust binding for SFML2 Graphics submodule

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 19, 2025

#14 in #sfml


Used in 2 crates

zlib-acknowledgement

2MB
32K SLoC

C++ 22K SLoC // 0.2% comments Rust 5.5K 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