srakabell.blogg.se

Keyup sdl2 rust
Keyup sdl2 rust




keyup sdl2 rust

On Linux, you will need to additionally do one of the following: You can choose to link SDL2 statically instead of dynamically with the static-link feature. (Arch doesn't have separate regular and development packages, everything goes together.) Add the following lines to build.rs script: these through your favourite package management tool, or via If you wish to distribute the newly built libSDL2.so/libSDL2.dylib alongside your executable, you will need to add rpath to your executable. While this should work for any architecture, you will need a C compiler (like gcc, clang, or MS's own compiler) to use this feature properly.īy default, macOS and Linux only load libraries from system directories like /usr/lib. Since 0.31, this crate supports a feature named "bundled" which compiles SDL2 from source and links it automatically. If you experience this issue because you are on a LTS machine (for instance, Ubuntu 12.04 or Ubuntu 14.04), we definitely recommend you to use the feature "bundled" which will compile the lastest stable version of SDL2 for your project. Below 2.0.5, you may experience link-time errors as some functions are used here but are not defined in SDL2. SDL2 >= 2.0.8 is recommended to use these bindings, but note that SDL2 >= 2.0.5 is also supported.

keyup sdl2 rust

We currently target the latest stable release of Rust. The unsafe_textures feature is not documented online, you can use cargo doc to generate your own documentation The following features are enabled in the documentation: If you want a library compatible with earlier versions of SDL, please see

KEYUP SDL2 RUST MANUAL

Low-level C components are wrapped in Rust code to make them more idiomatic andĪbstract away inappropriate manual memory management. Rust-SDL2 is a library for talking to the new SDL2.0 libraries from Rust. Bindings for SDL2 in Rust (changelog.md#v0350) Overview






Keyup sdl2 rust