1
1
Fork 0
mirror of https://github.com/griffi-gh/hUI.git synced 2025-04-15 12:17:20 -05:00

Compare commits

...

9 commits

Author SHA1 Message Date
griffi-gh 6ce17d0625 Release 0.1.0-alpha.6
minor dep update release
2025-02-28 16:38:45 +01:00
griffi-gh 9332c1e4bd fix broken examples 2025-02-28 16:35:13 +01:00
griffi-gh 7d04d4a244 update MSRV in README 2025-02-28 16:33:37 +01:00
griffi-gh 2310e83907 fix hui-painter-wip rust-version 2025-02-28 16:32:53 +01:00
griffi-gh 24f0c83304 bump edition to 2024, rust-version to 1.85 2025-02-28 16:32:21 +01:00
griffi-gh a02343f8dd update README 2025-02-28 16:20:32 +01:00
griffi-gh b2d6a347ba update deps 2025-02-28 16:18:13 +01:00
griffi-gh a939e6e336 bump version to 0.1.0-alpha.6 2025-02-28 16:12:21 +01:00
griffi-gh 5badb6e2e9 update flake 2025-02-28 16:12:11 +01:00
12 changed files with 72 additions and 55 deletions

View file

@ -94,7 +94,24 @@
</td>
<td>
<code>hui-wgpu = &lt;master&gt;</code><br>
<code>wgpu = "23"</code>
<code>wgpu = "24"</code>
</td>
</tr>
<tr>
<td align="center">
<code>0.1.0-alpha.6</code>
</th>
<td>
<code>hui-glium = "0.1.0-alpha.6"</code><br>
<code>glium = "0.36"</code>
</td>
<td>
<code>hui-winit = "0.1.0-alpha.6"</code><br>
<code>winit = "0.30"</code>
</td>
<td>
<code>hui-wgpu = "0.1.0-alpha.6"</code><br>
<code>wgpu = "24"</code>
</td>
</tr>
<tr>
@ -102,15 +119,15 @@
<code>0.1.0-alpha.5</code>
</th>
<td>
<code>hui-glium = &lt;master&gt;</code><br>
<code>hui-glium = "0.1.0-alpha.5"</code><br>
<code>glium = "0.36"</code>
</td>
<td>
<code>hui-winit = &lt;master&gt;</code><br>
<code>hui-winit = "0.1.0-alpha.5"</code><br>
<code>winit = "0.30"</code>
</td>
<td>
<code>hui-wgpu = &lt;master&gt;</code><br>
<code>hui-wgpu = "0.1.0-alpha.5"</code><br>
<code>wgpu = "23"</code>
</td>
</tr>
@ -181,5 +198,5 @@
</table>
<h2>MSRV</h2>
1.80 (or latest stable at the time of the last major release)<br>
1.85 (or latest stable at the time of the last major release)<br>
bumps to MSRV are considered a breaking change

View file

@ -8,11 +8,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1732689334,
"narHash": "sha256-yKI1KiZ0+bvDvfPTQ1ZT3oP/nIu3jPYm4dnbRd6hYg4=",
"lastModified": 1738391509,
"narHash": "sha256-TC3xA++KgprECm/WPsLUd+a77MObZPElCW6eAsjVW1k=",
"owner": "nix-community",
"repo": "fenix",
"rev": "a8a983027ca02b363dfc82fbe3f7d9548a8d3dce",
"rev": "de3ea31eb651b663449361f77d9c1e8835290470",
"type": "github"
},
"original": {
@ -42,11 +42,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1733749988,
"narHash": "sha256-+5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs=",
"lastModified": 1740547748,
"narHash": "sha256-Ly2fBL1LscV+KyCqPRufUBuiw+zmWrlJzpWOWbahplg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bc27f0fde01ce4e1bfec1ab122d72b7380278e68",
"rev": "3a05eebede89661660945da1f151959900903b6a",
"type": "github"
},
"original": {
@ -66,11 +66,11 @@
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1732633904,
"narHash": "sha256-7VKcoLug9nbAN2txqVksWHHJplqK9Ou8dXjIZAIYSGc=",
"lastModified": 1738224931,
"narHash": "sha256-1zhfA5NBqin0Z79Se85juvqQteq7uClJMEb7l2pdDUY=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "8d5e91c94f80c257ce6dbdfba7bd63a5e8a03fa6",
"rev": "3c2aca1e5e9fbabb4e05fc4baa62e807aadc476a",
"type": "github"
},
"original": {

View file

@ -4,9 +4,9 @@ description = "Derive macros for hUI"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
rust-version = "1.80"
version = "0.1.0-alpha.5"
edition = "2021"
rust-version = "1.85"
version = "0.1.0-alpha.6"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [

View file

@ -1,7 +1,7 @@
[package]
name = "hui-examples"
version = "0.0.0"
edition = "2021"
edition = "2024"
license = "GPL-3.0-or-later"
publish = false
@ -10,10 +10,10 @@ hui = { path = "../hui" }
# hui-painter = { path = "../hui-painter" }
hui-glium = { path = "../hui-glium" }
hui-winit = { path = "../hui-winit" }
kubi-logging = { git = "https://github.com/griffi-gh/kubi", rev = "be1e24ba0c9e6d24128e7d0e74bebd8b90c23be7" }
kubi-logging = { git = "https://github.com/griffi-gh/kubi", rev = "1e051c47b64c967305e4bbbd464ef5da2cc56bbb" }
glium = "0.36"
winit = "0.30"
glam = "0.29"
glam = "0.30"
log = "0.4"
image = { version = "0.25", features = ["jpeg", "png"] }

View file

@ -31,7 +31,7 @@ ui_main!(
let image = ui.add_image(TextureFormat::Rgba, IMAGE_DATA, 32);
(0, image)
},
run: |ui, size, (ref mut counter, image)| {
run: |ui, size, &mut (ref mut counter, image)| {
Container::default()
.with_size(size!(100%))
.with_padding(10.)
@ -76,7 +76,7 @@ ui_main!(
.add_child(ui);
Break.add_child(ui);
for _ in 0..*counter {
Image::new(*image)
Image::new(image)
.with_size(size!(48, 48))
.add_child(ui);
}

View file

@ -30,7 +30,7 @@ ui_main!(
let image = ui.add_image(TextureFormat::Rgba, IMAGE_DATA, 32);
(0, image)
},
run: |ui, size, (ref mut counter, image)| {
run: |ui, size, &mut (ref mut counter, image)| {
Container::default()
.with_size(size!(100%))
.with_padding(10.)
@ -68,7 +68,7 @@ ui_main!(
.add_child(ui);
Break.add_child(ui);
for _ in 0..*counter {
Image::new(*image)
Image::new(image)
.with_size(size!(48, 48))
.add_child(ui);
}

View file

@ -4,9 +4,9 @@ description = "glium render backend for `hui`"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
version = "0.1.0-alpha.5"
rust-version = "1.80"
edition = "2021"
version = "0.1.0-alpha.6"
rust-version = "1.85"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [
@ -16,7 +16,7 @@ include = [
]
[dependencies]
hui = { version = "=0.1.0-alpha.5", path = "../hui", default-features = false }
hui = { version = "=0.1.0-alpha.6", path = "../hui", default-features = false }
glium = { version = "0.36", default-features = false }
glam = "0.29"
glam = "0.30"
log = "0.4"

View file

@ -4,9 +4,9 @@ description = "UI rendering middleware for hUI, abstracts away triangulation, te
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
rust-version = "1.75"
version = "0.1.0-alpha.5"
edition = "2021"
rust-version = "1.85"
version = "0.1.0-alpha.6"
edition = "2024"
license = "GPL-3.0-or-later"
publish = false # TODO: change to true once ready
include = [
@ -15,8 +15,8 @@ include = [
]
[dependencies]
hui-shared = { version = "0.1.0-alpha.5", path = "../hui-shared" }
glam = "0.29"
hui-shared = { version = "0.1.0-alpha.6", path = "../hui-shared" }
glam = "0.30"
log = "0.4"
rect_packer = "0.2" # TODO: use sth else like `crunch` instead?
hashbrown = "0.15"

View file

@ -4,8 +4,8 @@ description = "internal crate"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
version = "0.1.0-alpha.5"
edition = "2021"
version = "0.1.0-alpha.6"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [
@ -14,4 +14,4 @@ include = [
]
[dependencies]
glam = "0.29"
glam = "0.30"

View file

@ -4,9 +4,9 @@ description = "wgpu render backend for `hui`"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
version = "0.1.0-alpha.5"
rust-version = "1.80"
edition = "2021"
version = "0.1.0-alpha.6"
rust-version = "1.85"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [
@ -16,8 +16,8 @@ include = [
]
[dependencies]
hui = { version = "=0.1.0-alpha.5", path = "../hui", default-features = false }
wgpu = { version = "23", default-features = false, features = ["wgsl"]}
hui = { version = "=0.1.0-alpha.6", path = "../hui", default-features = false }
wgpu = { version = "24", default-features = false, features = ["wgsl"]}
bytemuck = "1.15"
log = "0.4"
glam = "0.29"
glam = "0.30"

View file

@ -4,8 +4,8 @@ description = "winit platform backend for `hui`"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
version = "0.1.0-alpha.5"
edition = "2021"
version = "0.1.0-alpha.6"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [
@ -14,11 +14,11 @@ include = [
]
[dependencies]
hui = { version = "=0.1.0-alpha.5", path = "../hui", default-features = false }
hui = { version = "=0.1.0-alpha.6", path = "../hui", default-features = false }
winit = { version = "0.30", default-features = false, features = ["x11"]}
# winit_30 = { package = "winit", version = "0.30", default-features = false, optional = true }
# winit_29 = { package = "winit", version = "0.29", default-features = false, optional = true }
glam = "0.29"
glam = "0.30"
log = "0.4"
[features]

View file

@ -4,9 +4,9 @@ description = "Simple UI library for games and other interactive applications"
repository = "https://github.com/griffi-gh/hui"
readme = "../README.md"
authors = ["griffi-gh <prasol258@gmail.com>"]
rust-version = "1.80"
version = "0.1.0-alpha.5"
edition = "2021"
rust-version = "1.85"
version = "0.1.0-alpha.6"
edition = "2024"
license = "GPL-3.0-or-later"
publish = true
include = [
@ -16,18 +16,18 @@ include = [
]
[dependencies]
hui-derive = { version = "0.1.0-alpha.5", path = "../hui-derive", optional = true }
hui-shared = { version = "0.1.0-alpha.5", path = "../hui-shared" }
# hui-painter = { version = "0.1.0-alpha.5", path = "../hui-painter" }
hui-derive = { version = "0.1.0-alpha.6", path = "../hui-derive", optional = true }
hui-shared = { version = "0.1.0-alpha.6", path = "../hui-shared" }
# hui-painter = { version = "0.1.0-alpha.6", path = "../hui-painter" }
hashbrown = "0.15"
nohash-hasher = "0.2"
glam = "0.29"
glam = "0.30"
fontdue = "0.9"
rect_packer = "0.2"
log = "0.4"
document-features = "0.2"
derive_setters = "0.1"
derive_more = { version = "1.0", features = [ "full" ] }
derive_more = { version = "2.0", features = [ "full" ] }
tinyset = "0.5"
image = { version = "0.25", default-features = false, optional = true }
rustc-hash = "2.0"