This issue talks about how and why we should use SDL2 as a windowing library, and not Rust ecosystem libraries such as winit
Summary
winit has lackluster support for IMEs (Which are used in many world languages, namely Japanese and Chinese) and depends on a lot of different dependencies all of which depend on the Rust ecosystem , whereas SDL2 is a very common shared dependency and can be built without much issue. It works on virtually any platform and overall pretty fun to use.
A simple test creating two new fresh projects shows adding winit as a dependency adds 1741 lines to Cargo.toml, but adding sdl2 only adds 65.
SDL2 being shared and an old library in general also goes on to show how we can use it reliably across more unupdated systems.
So in short, we can use it for short build times and reliably working applications.
This issue talks about how and why we should use
SDL2as a windowing library, and not Rust ecosystem libraries such aswinitSummary
winithas lackluster support for IMEs (Which are used in many world languages, namely Japanese and Chinese) and depends on a lot of different dependencies all of which depend on the Rust ecosystem , whereas SDL2 is a very common shared dependency and can be built without much issue. It works on virtually any platform and overall pretty fun to use.A simple test creating two new fresh projects shows adding
winitas a dependency adds 1741 lines toCargo.toml, but addingsdl2only adds65.SDL2 being shared and an old library in general also goes on to show how we can use it reliably across more unupdated systems.
So in short, we can use it for short build times and reliably working applications.