https://github.com/feenkcom/libwinit
C style wrapper for winit - Cross-platform window creation and management in Rust
https://github.com/feenkcom/libwinit
Last synced: about 1 year ago
JSON representation
C style wrapper for winit - Cross-platform window creation and management in Rust
- Host: GitHub
- URL: https://github.com/feenkcom/libwinit
- Owner: feenkcom
- License: mit
- Created: 2020-12-24T14:13:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T15:01:15.000Z (over 1 year ago)
- Last Synced: 2025-04-11T05:07:09.179Z (about 1 year ago)
- Language: Rust
- Size: 158 KB
- Stars: 12
- Watchers: 10
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libWinit
C style wrapper for [Winit](https://github.com/rust-windowing/winit/) - cross-platform window creation and management in Rust.
## Generating `winit.h` header
Make sure to install latest [cbindgen](https://github.com/eqrion/cbindgen):
```bash
cargo install cbindgen
```
Generate the header running the following from the root of `libwinit` repository:
```bash
cbindgen --config cbindgen.toml --crate libwinit --output winit.h
```
## Released `winit.h` header
`winit.h` is released together with shared libraries.
The latest header is available on GitHub: https://github.com/feenkcom/libwinit/releases/latest
## Example C project
Check [Example using C API](https://github.com/feenkcom/libwinit/blob/main/examples/c-api/README.md) to learn how to compile a sample C program to open a native window.