Skip to content

Commit

Permalink
updated dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
PsichiX committed Feb 9, 2025
1 parent 6e8807e commit 2eedb5b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "Renderer Agnostic User Interface"
Expand Down
2 changes: 1 addition & 1 deletion raui-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-app"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI application layer to focus only on making UI"
Expand Down
4 changes: 2 additions & 2 deletions raui-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-core"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI application layer"
Expand All @@ -14,4 +14,4 @@ categories = ["gui", "rendering::graphics-api"]
raui-derive = { version = "0.64", path = "../raui-derive" }
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
intuicio-data = "0.39"
intuicio-data = "0.44"
20 changes: 10 additions & 10 deletions raui-core/src/widget/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,18 @@ impl WidgetId {
if path.is_empty() {
return Self {
id: format!("{}:", type_name),
type_name: 0..type_name.as_bytes().len(),
type_name: 0..type_name.len(),
parts: Default::default(),
};
}
let count = type_name.as_bytes().len()
let count = type_name.len()
+ b":".len()
+ path.iter().map(|part| part.as_bytes().len()).sum::<usize>()
+ path.iter().map(|part| part.len()).sum::<usize>()
+ path.len().saturating_sub(1) * b"/".len();
let mut result = String::with_capacity(count);
let mut position = result.as_bytes().len();
let mut position = result.len();
result.push_str(type_name);
let type_name = 0..result.as_bytes().len();
let type_name = 0..result.len();
result.push(':');
let parts = path
.iter()
Expand All @@ -146,9 +146,9 @@ impl WidgetId {
if index > 0 {
result.push('/');
}
position = result.as_bytes().len();
position = result.len();
result.push_str(part);
let range = position..result.as_bytes().len();
let range = position..result.len();
if let Some(index) = part.find('?') {
let key = range.start..(range.start + index);
let meta = (range.start + index + b"?".len())..range.end;
Expand All @@ -167,15 +167,15 @@ impl WidgetId {
}

pub fn push(&self, part: &str) -> Self {
let count = self.id.as_bytes().len() + b"/".len();
let count = self.id.len() + b"/".len();
let mut result = String::with_capacity(count);
result.push_str(&self.id);
if self.depth() > 0 {
result.push('/');
}
let position = result.as_bytes().len();
let position = result.len();
result.push_str(part);
let range = position..result.as_bytes().len();
let range = position..result.len();
let (key, meta) = if let Some(index) = part.find('?') {
let key = range.start..(range.start + index);
let meta = (range.start + index + b"?".len())..range.end;
Expand Down
2 changes: 1 addition & 1 deletion raui-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-derive"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "Macros for Renderer Agnostic User Interface"
Expand Down
2 changes: 1 addition & 1 deletion raui-immediate-widgets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-immediate-widgets"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "Widgets library for RAUI immediate mode UI layer"
Expand Down
2 changes: 1 addition & 1 deletion raui-immediate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-immediate"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI immediate mode UI layer"
Expand Down
2 changes: 1 addition & 1 deletion raui-json-renderer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-json-renderer"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI renderer for JSON format"
Expand Down
2 changes: 1 addition & 1 deletion raui-material/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-material"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "Material components library for RAUI"
Expand Down
2 changes: 1 addition & 1 deletion raui-retained/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-retained"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI retained mode UI layer"
Expand Down
2 changes: 1 addition & 1 deletion raui-tesselate-renderer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raui-tesselate-renderer"
version = "0.64.1"
version = "0.64.2"
authors = ["Patryk 'PsichiX' Budzynski <[email protected]>"]
edition = "2021"
description = "RAUI renderer that tesselates layout into vertex and index buffers"
Expand Down

0 comments on commit 2eedb5b

Please sign in to comment.