5 个不稳定版本
| 0.3.2 | 2020 年 8 月 8 日 |
|---|---|
| 0.3.1 | 2020 年 8 月 2 日 |
| 0.3.0 | 2020 年 8 月 2 日 |
| 0.2.0 | 2020 年 8 月 2 日 |
| 0.1.0 | 2020 年 8 月 1 日 |
147 在 FFI 中排名
每月下载量 60
525KB
5K SLoC
stb
一个包含 stb 库所有安全 Rust API 和包装器的单一接口。
以下 API 目前可用
stb_easy_fontstb_dxtstb_imagestb_image_writestb_perlin
未实现,但计划中
stb_truetypestb_image_resizestb_rect_pack
使用方法
将以下内容添加到您的 Cargo.toml 文件中
[dependencies]
stb = "0.3.2"
或者如果您想要特定的功能选择
[dependencies]
stb = { version = "0.3.2", default-features = false, features = ["stb_easy_font"] }
创建功能
以下是此 crate 中目前可用的功能开关列表
stb_easy_fontstb_dxtstb_dxt_use_rounding_bias
stb_imagestbi_no_linearstbi_no_jpegstbi_no_pngstbi_no_bmpstbi_no_psdstbi_no_gifstbi_no_hdrstbi_no_picstbi_no_pnm
stb_image_writestb_perlin
贡献
贡献通常受到欢迎。请确保您的更改适合此项目(如有疑问,请先打开一个问题),代码经过合理测试,并通过 CI 检查。
依赖项
~0–2MB
~38K SLoC