stb

Crates.iostb
lib.rsstb
version0.3.2
sourcesrc
created_at2020-08-01 23:08:33.218497
updated_at2020-08-08 02:09:16.747705
descriptionSafe Rust API for stb libraries
homepage
repositoryhttps://github.com/mxpv/stb
max_upload_size
id272039
size47,564
Maksym Pavlenko (mxpv)

documentation

https://docs.rs/stb

README

stb

Crate CI Docs Crates.io

All in one safe Rust API and wrappers for stb libraries.

The following APIs are currently available:

  • stb_easy_font
  • stb_dxt
  • stb_image
  • stb_image_write
  • stb_perlin

Please refer to the documentation for details or have a look on examples.

Not implemented, but planned:

  • stb_truetype
  • stb_image_resize
  • stb_rect_pack

Usage

Add the following to your Cargo.toml file:

[dependencies]
stb = "0.3.2"

or if you want to have a specific feature selection:

[dependencies]
stb = { version = "0.3.2", default-features = false, features = ["stb_easy_font"] }

Create features

Here is the list of feature toggles available in this crate so far:

  • stb_easy_font
  • stb_dxt
    • stb_dxt_use_rounding_bias
  • stb_image
    • stbi_no_linear
    • stbi_no_jpeg
    • stbi_no_png
    • stbi_no_bmp
    • stbi_no_psd
    • stbi_no_gif
    • stbi_no_hdr
    • stbi_no_pic
    • stbi_no_pnm
  • stb_image_write
  • stb_perlin

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.

Commit count: 34

cargo fmt