gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81412 Definiciones

Update deps

a6491117379cea52dedc9584d892594a143e8cb0 · por elbaro · (hace 4 años) · padre 06471455e · ver el árbol en este commit

Delta semántico · 1

src/result.rs

  • cambió de firma struct Layout pub

2 archivos · +11 −10

diff --git a/Cargo.toml b/Cargo.toml
index 2cad6516c..3b111a5bc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
 name = "stretch2"
 version = "0.3.2"
 authors = ["elbaro <elbaro@users.noreply.github.com>"]
-edition = "2018"
+edition = "2021"
 include = ["src/**/*", "Cargo.toml"]
 description = "High performance & cross-platform Flexbox implementation"
 repository = "https://github.com/elbaro/stretch2"
@@ -15,19 +15,19 @@ circle-ci = { repository = "vislyhq/stretch", branch = "master" }
 maintenance = { status = "experimental" }
 
 [dependencies]
-arrayvec = { version = "0.5.1", default-features = false }
-hash32 = "0.1.1"
-hash32-derive = "0.1.0"
-heapless = "0.5.1"
-num-traits = { version = "0.2.10", default-features = false }
-typenum = "1.11.2"
+arrayvec = { version = "0.7.2", default-features = false }
+hash32 = "0.2.1"
+hash32-derive = "0.1.1"
+heapless = "0.7.9"
+num-traits = { version = "0.2.14", default-features = false }
+typenum = "1.15.0"
 
 [dependencies.hashbrown]
-version = "0.6.3"
+version = "0.11.2"
 optional = true
 
 [dependencies.serde]
-version = "1.0.102"
+version = "1.0.132"
 features = ["serde_derive"]
 optional = true
 
@@ -39,7 +39,7 @@ serde_camel_case = ["serde"]
 serde_kebab_case = ["serde"]
 
 [dev-dependencies]
-criterion = "0.3.0"
+criterion = "0.3.5"
 
 [profile.release]
 lto = true
diff --git a/src/result.rs b/src/result.rs
index 5ea88aef0..ff3619fe3 100644
--- a/src/result.rs
+++ b/src/result.rs
@@ -4,6 +4,7 @@ use crate::number::Number;
 
 #[derive(Copy, Debug, Clone)]
 pub struct Layout {
+    #[allow(dead_code)]
     pub(crate) order: u32,
     pub size: Size<f32>,
     pub location: Point<f32>,