hUI/hui/Cargo.toml

47 lines
1.5 KiB
TOML
Raw Normal View History

2024-02-17 14:43:46 -06:00
[package]
name = "hui"
description = "Simple UI library for games and other interactive applications"
repository = "https://github.com/griffi-gh/hui"
2024-02-19 10:49:01 -06:00
readme = "../README.md"
2024-02-17 14:43:46 -06:00
authors = ["griffi-gh <prasol258@gmail.com>"]
rust-version = "1.75"
2024-02-21 04:06:13 -06:00
version = "0.1.0-alpha.4"
2024-02-17 14:43:46 -06:00
edition = "2021"
license = "GPL-3.0-or-later"
publish = true
2024-02-17 14:51:54 -06:00
include = [
"assets/**/*",
"src/**/*.rs",
"Cargo.toml",
]
2024-02-17 14:43:46 -06:00
[dependencies]
hashbrown = "0.14"
nohash-hasher = "0.2"
glam = "0.25"
fontdue = "0.8"
rect_packer = "0.2"
log = "0.4"
document-features = "0.2"
2024-02-25 18:15:55 -06:00
derive_setters = "0.1"
2024-03-21 16:23:42 -05:00
derive_more = "0.99"
2024-02-29 09:02:05 -06:00
tinyset = "0.4"
2024-03-22 19:57:07 -05:00
enum_dispatch = "0.3"
2024-02-17 14:43:46 -06:00
[features]
2024-02-20 10:30:26 -06:00
default = ["builtin_elements", "builtin_font", "pixel_perfect_text"]
## Enable the built-in font (ProggyTiny, adds 35kb to the executable)
2024-02-17 14:43:46 -06:00
builtin_font = []
## Enable the built-in elements (`Container`, `ProgressBar`, etc.)\
builtin_elements = ["builtin_container"]
## Enable only the `Container` component (which is essential for laying out other components)
builtin_container = []
2024-02-20 10:30:26 -06:00
## Round all vertex positions to nearest integer coordinates (not recommended)
pixel_perfect = ["pixel_perfect_text"]
## Apply pixel-perfect rendering hack to text (fixes blurry text rendering)
pixel_perfect_text = []
#! Make sure to disable the `pixel_perfect` feature if you are rendering UI in 3D space\
#! or using DPI (or any other form of) scaling while passing the virtual resolution to the ui
# ## Enable multi-threading support (currently only affects some 3rd-party libraries)
# parallel = ["fontdue/parallel"]