hUI/hui/Cargo.toml

106 lines
2.7 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.80"
2024-03-25 12:41:44 -05:00
version = "0.1.0-alpha.5"
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]
2024-03-25 12:41:44 -05:00
hui-derive = { version = "0.1.0-alpha.5", path = "../hui-derive", optional = true }
2024-08-04 11:06:49 -05:00
hui-shared = { version = "0.1.0-alpha.5", path = "../hui-shared" }
2024-09-28 03:50:13 -05:00
# hui-painter = { version = "0.1.0-alpha.5", path = "../hui-painter" }
2024-02-17 14:43:46 -06:00
hashbrown = "0.14"
nohash-hasher = "0.2"
2024-12-11 13:24:23 -06:00
glam = "0.29""
2024-08-04 11:06:49 -05:00
fontdue = "0.9"
2024-02-17 14:43:46 -06:00
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-24 16:55:05 -05:00
image = { version = "0.25", default-features = false, optional = true }
2024-08-04 11:06:49 -05:00
rustc-hash = "2.0"
2024-02-17 14:43:46 -06:00
[features]
2024-03-25 11:49:32 -05:00
default = ["el_all", "image", "builtin_font", "pixel_perfect_text", "derive"]
2024-03-24 16:55:05 -05:00
2024-03-25 11:49:32 -05:00
## Enable derive macros
derive = ["dep:hui-derive"]
2024-03-24 16:55:05 -05:00
## Enable image loading support using the `image` crate
image = ["dep:image"]
2024-03-24 14:58:14 -05:00
## Enable the built-in font (ProggyTiny, adds *35kb* to the executable)
2024-02-17 14:43:46 -06:00
builtin_font = []
2024-03-24 14:58:14 -05:00
#! #### Pixel-perfect rendering:
2024-02-20 10:30:26 -06:00
## Round all vertex positions to nearest integer coordinates (not recommended)
pixel_perfect = ["pixel_perfect_text"]
2024-03-24 15:01:30 -05:00
2024-02-20 10:30:26 -06:00
## Apply pixel-perfect rendering hack to text (fixes blurry text rendering)
pixel_perfect_text = []
2024-03-24 15:01:30 -05:00
2024-03-24 14:58:14 -05:00
#! Make sure to disable both features if you are not rendering UI "as-is" at 1:1 scale\
#! For exmaple, you should disable them if using DPI (or any other form of) scaling while passing the virtual resolution to the ui or rendering it in 3d space
2024-03-24 14:53:03 -05:00
#! #### Built-in elements:
## Enable all built-in elements
el_all = [
"el_container",
"el_frame_view",
2024-03-24 14:53:03 -05:00
"el_spacer",
"el_br",
"el_text",
"el_image",
"el_progress_bar",
"el_slider",
"el_transformer",
"el_interactable",
]
## Enable the built-in `Container` element
el_container = []
## Enable the built-in `FrameView` element
el_frame_view = []
2024-03-24 14:53:03 -05:00
## Enable the built-in `Spacer` element
el_spacer = []
## Enable the built-in `Break` element
el_br = []
## Enable the built-in `Text` element
el_text = []
## Enable the built-in `Image` element
el_image = []
## Enable the built-in `ProgressBar` element
el_progress_bar = []
## Enable the built-in `Slider` element
el_slider = []
## Enable the built-in `Transformer` element
el_transformer = []
## Enable the built-in `Interactable` element
el_interactable = []
2024-02-20 10:30:26 -06:00
# ## Enable multi-threading support (currently only affects some 3rd-party libraries)
# parallel = ["fontdue/parallel"]