#stb #gamedev #low-level #api-bindings #wrapper

sys stb-sys

Low level bindgen generated wrappers for stb libraries

9 releases (5 breaking)

0.6.0 Aug 8, 2020
0.5.0 Aug 8, 2020
0.4.1 Aug 8, 2020
0.3.1 Aug 2, 2020
0.1.1 Aug 1, 2020

#8 in #stb

Download history 2/week @ 2023-12-11 6/week @ 2023-12-18 1/week @ 2023-12-25 10/week @ 2024-01-08 5/week @ 2024-02-05 15/week @ 2024-02-12 26/week @ 2024-02-19 32/week @ 2024-02-26 26/week @ 2024-03-04 36/week @ 2024-03-11 24/week @ 2024-03-18 34/week @ 2024-03-25

121 downloads per month
Used in 2 crates

MIT license

490KB
4K SLoC

C 4K SLoC // 0.2% comments Rust 73 SLoC

stb-sys

Crate CI Crates.io

Low level bindgen generated bindings to stb libraries.

The following APIs are currently available:

  • stb_easy_font
  • stb_dxt
  • stb_image
  • stb_image_write
  • stb_perlin
  • stb_rect_pack
  • stb_image_resize
  • stb_truetype

For high level bindigns have a look on stb crate.

Usage

Add the following to your Cargo.toml file:

[dependencies]
stb-sys = { version = "0.4.0", features = ["stb_image", "stb_image_write"] }

Contributing

Contributions are generally welcome. Make sure your changes make sense for this project (if in doubt, open an issue first), the code is reasonbly tested, and passes the CI checks.

Dependencies

~0–2MB
~37K SLoC