#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 43/week @ 2024-03-29 27/week @ 2024-04-05 22/week @ 2024-04-12 31/week @ 2024-04-19 24/week @ 2024-04-26 23/week @ 2024-05-03 22/week @ 2024-05-10 19/week @ 2024-05-17 24/week @ 2024-05-24 20/week @ 2024-05-31 14/week @ 2024-06-07 17/week @ 2024-06-14 22/week @ 2024-06-21 13/week @ 2024-06-28 33/week @ 2024-07-05 3/week @ 2024-07-12

74 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