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

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 16/week @ 2024-07-21 102/week @ 2024-07-28 16/week @ 2024-08-04 19/week @ 2024-08-11 13/week @ 2024-08-18 11/week @ 2024-08-25 18/week @ 2024-09-01 21/week @ 2024-09-08 17/week @ 2024-09-15 28/week @ 2024-09-22 34/week @ 2024-09-29 6/week @ 2024-10-06 9/week @ 2024-10-13 18/week @ 2024-10-20 17/week @ 2024-10-27 14/week @ 2024-11-03

59 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–2.2MB
~43K SLoC