starting to try to build my own text widget
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2025-08-10 21:05:39 -05:00
parent 47dea95ba6
commit 79ae0dac0f
4 changed files with 288 additions and 38 deletions

280
Cargo.lock generated
View file

@ -679,7 +679,16 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0481a0e032742109b1133a095184ee93d88f3dc9e0d28a5d033dc77a073f44f"
dependencies = [
"bit-vec",
"bit-vec 0.7.0",
]
[[package]]
name = "bit-set"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
dependencies = [
"bit-vec 0.8.0",
]
[[package]]
@ -688,6 +697,12 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2c54ff287cfc0a34f38a6b832ea1bd8e448a330b3e40a50859e6488bee07f22"
[[package]]
name = "bit-vec"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
[[package]]
name = "bitflags"
version = "1.3.2"
@ -1029,6 +1044,15 @@ dependencies = [
"unicode-width 0.1.14",
]
[[package]]
name = "codespan-reporting"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
dependencies = [
"unicode-width 0.2.1",
]
[[package]]
name = "color_quant"
version = "1.1.0"
@ -1260,7 +1284,7 @@ dependencies = [
"log",
"rangemap",
"rustc-hash 1.1.0",
"rustybuzz",
"rustybuzz 0.14.1",
"self_cell",
"smol_str",
"swash",
@ -1901,6 +1925,30 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "femtovg"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c66a4045686ce22a7e99a1e9ec3b5c86f43cdedf678a699f544f10af286da893"
dependencies = [
"bitflags 2.9.1",
"bytemuck",
"fnv",
"glow 0.16.0",
"image",
"imgref",
"log",
"lru 0.16.0",
"rgb",
"rustybuzz 0.20.1",
"slotmap",
"unicode-bidi",
"unicode-segmentation",
"wasm-bindgen",
"web-sys",
"wgpu 26.0.1",
]
[[package]]
name = "filetime"
version = "0.2.25"
@ -2329,6 +2377,18 @@ dependencies = [
"web-sys",
]
[[package]]
name = "glow"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08"
dependencies = [
"js-sys",
"slotmap",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "glutin_wgl_sys"
version = "0.6.1"
@ -2608,6 +2668,7 @@ checksum = "459196ed295495a68f7d7fe1d84f6c4b7ff0e21fe3017b2f283c6fac3ad803c9"
dependencies = [
"cfg-if",
"crunchy",
"num-traits",
]
[[package]]
@ -2819,9 +2880,9 @@ source = "git+https://github.com/pop-os/glyphon.git?tag=iced-0.14-dev#6ef9d12a20
dependencies = [
"cosmic-text",
"etagere",
"lru",
"lru 0.12.5",
"rustc-hash 2.1.1",
"wgpu",
"wgpu 22.1.0",
]
[[package]]
@ -2933,7 +2994,7 @@ dependencies = [
"wayland-client",
"wayland-protocols",
"wayland-sys",
"wgpu",
"wgpu 22.1.0",
"x11rb",
]
@ -3112,6 +3173,12 @@ version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "029d73f573d8e8d63e6d5020011d3255b28c3ba85d6cf870a07184ed23de9284"
[[package]]
name = "imgref"
version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408"
[[package]]
name = "immutable-chunkmap"
version = "2.0.6"
@ -3524,6 +3591,12 @@ version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
[[package]]
name = "lru"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86ea4e65087ff52f3862caff188d489f1fab49a0cb09e01b2e3f1a617b10aaed"
[[package]]
name = "lumina"
version = "0.1.0"
@ -3532,6 +3605,7 @@ dependencies = [
"colors-transform",
"crisp",
"dirs 5.0.1",
"femtovg",
"gstreamer",
"gstreamer-app",
"iced_video_player",
@ -3783,10 +3857,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8bd5a652b6faf21496f2cfd88fc49989c8db0825d1f6746b1a71a6ede24a63ad"
dependencies = [
"arrayvec",
"bit-set",
"bit-set 0.6.0",
"bitflags 2.9.1",
"cfg_aliases 0.1.1",
"codespan-reporting",
"codespan-reporting 0.11.1",
"hexf-parse",
"indexmap",
"log",
@ -3797,6 +3871,31 @@ dependencies = [
"unicode-xid",
]
[[package]]
name = "naga"
version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "916cbc7cb27db60be930a4e2da243cf4bc39569195f22fd8ee419cd31d5b662c"
dependencies = [
"arrayvec",
"bit-set 0.8.0",
"bitflags 2.9.1",
"cfg-if",
"cfg_aliases 0.2.1",
"codespan-reporting 0.12.0",
"half",
"hashbrown",
"hexf-parse",
"indexmap",
"libm",
"log",
"num-traits",
"once_cell",
"rustc-hash 1.1.0",
"thiserror 2.0.12",
"unicode-ident",
]
[[package]]
name = "ndk"
version = "0.8.0"
@ -4731,6 +4830,21 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
[[package]]
name = "portable-atomic"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
[[package]]
name = "portable-atomic-util"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
dependencies = [
"portable-atomic",
]
[[package]]
name = "potential_utf"
version = "0.1.2"
@ -5227,8 +5341,26 @@ dependencies = [
"libm",
"smallvec",
"ttf-parser 0.21.1",
"unicode-bidi-mirroring",
"unicode-ccc",
"unicode-bidi-mirroring 0.2.0",
"unicode-ccc 0.2.0",
"unicode-properties",
"unicode-script",
]
[[package]]
name = "rustybuzz"
version = "0.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702"
dependencies = [
"bitflags 2.9.1",
"bytemuck",
"core_maths",
"log",
"smallvec",
"ttf-parser 0.25.1",
"unicode-bidi-mirroring 0.4.0",
"unicode-ccc 0.4.0",
"unicode-properties",
"unicode-script",
]
@ -6510,12 +6642,24 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23cb788ffebc92c5948d0e997106233eeb1d8b9512f93f41651f52b6c5f5af86"
[[package]]
name = "unicode-bidi-mirroring"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5dfa6e8c60bb66d49db113e0125ee8711b7647b5579dc7f5f19c42357ed039fe"
[[package]]
name = "unicode-ccc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1df77b101bcc4ea3d78dafc5ad7e4f58ceffe0b2b16bf446aeb50b6cb4157656"
[[package]]
name = "unicode-ccc"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e"
[[package]]
name = "unicode-ident"
version = "1.0.18"
@ -6612,7 +6756,7 @@ dependencies = [
"log",
"pico-args",
"roxmltree",
"rustybuzz",
"rustybuzz 0.14.1",
"simplecss",
"siphasher",
"strict-num",
@ -6950,7 +7094,7 @@ dependencies = [
"document-features",
"js-sys",
"log",
"naga",
"naga 22.1.0",
"parking_lot 0.12.4",
"profiling",
"raw-window-handle",
@ -6959,9 +7103,32 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"wgpu-core",
"wgpu-hal",
"wgpu-types",
"wgpu-core 22.1.0",
"wgpu-hal 22.0.0",
"wgpu-types 22.0.0",
]
[[package]]
name = "wgpu"
version = "26.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70b6ff82bbf6e9206828e1a3178e851f8c20f1c9028e74dd3a8090741ccd5798"
dependencies = [
"arrayvec",
"bitflags 2.9.1",
"cfg-if",
"cfg_aliases 0.2.1",
"document-features",
"hashbrown",
"log",
"portable-atomic",
"profiling",
"raw-window-handle",
"smallvec",
"static_assertions",
"wgpu-core 26.0.1",
"wgpu-hal 26.0.4",
"wgpu-types 26.0.0",
]
[[package]]
@ -6971,13 +7138,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0348c840d1051b8e86c3bcd31206080c5e71e5933dabd79be1ce732b0b2f089a"
dependencies = [
"arrayvec",
"bit-vec",
"bit-vec 0.7.0",
"bitflags 2.9.1",
"cfg_aliases 0.1.1",
"document-features",
"indexmap",
"log",
"naga",
"naga 22.1.0",
"once_cell",
"parking_lot 0.12.4",
"profiling",
@ -6985,8 +7152,46 @@ dependencies = [
"rustc-hash 1.1.0",
"smallvec",
"thiserror 1.0.69",
"wgpu-hal",
"wgpu-types",
"wgpu-hal 22.0.0",
"wgpu-types 22.0.0",
]
[[package]]
name = "wgpu-core"
version = "26.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5f62f1053bd28c2268f42916f31588f81f64796e2ff91b81293515017ca8bd9"
dependencies = [
"arrayvec",
"bit-set 0.8.0",
"bit-vec 0.8.0",
"bitflags 2.9.1",
"cfg_aliases 0.2.1",
"document-features",
"hashbrown",
"indexmap",
"log",
"naga 26.0.0",
"once_cell",
"parking_lot 0.12.4",
"portable-atomic",
"profiling",
"raw-window-handle",
"rustc-hash 1.1.0",
"smallvec",
"thiserror 2.0.12",
"wgpu-core-deps-windows-linux-android",
"wgpu-hal 26.0.4",
"wgpu-types 26.0.0",
]
[[package]]
name = "wgpu-core-deps-windows-linux-android"
version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "720a5cb9d12b3d337c15ff0e24d3e97ed11490ff3f7506e7f3d98c68fa5d6f14"
dependencies = [
"wgpu-hal 26.0.4",
]
[[package]]
@ -6998,13 +7203,13 @@ dependencies = [
"android_system_properties",
"arrayvec",
"ash",
"bit-set",
"bit-set 0.6.0",
"bitflags 2.9.1",
"block",
"cfg_aliases 0.1.1",
"core-graphics-types",
"d3d12",
"glow",
"glow 0.13.1",
"glutin_wgl_sys",
"gpu-alloc",
"gpu-allocator",
@ -7016,7 +7221,7 @@ dependencies = [
"libloading",
"log",
"metal",
"naga",
"naga 22.1.0",
"ndk-sys 0.5.0+25.2.9519653",
"objc",
"once_cell",
@ -7030,10 +7235,30 @@ dependencies = [
"thiserror 1.0.69",
"wasm-bindgen",
"web-sys",
"wgpu-types",
"wgpu-types 22.0.0",
"winapi",
]
[[package]]
name = "wgpu-hal"
version = "26.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7df2c64ac282a91ad7662c90bc4a77d4a2135bc0b2a2da5a4d4e267afc034b9e"
dependencies = [
"bitflags 2.9.1",
"cfg-if",
"cfg_aliases 0.2.1",
"libloading",
"log",
"naga 26.0.0",
"portable-atomic",
"portable-atomic-util",
"raw-window-handle",
"renderdoc-sys",
"thiserror 2.0.12",
"wgpu-types 26.0.0",
]
[[package]]
name = "wgpu-types"
version = "22.0.0"
@ -7045,6 +7270,17 @@ dependencies = [
"web-sys",
]
[[package]]
name = "wgpu-types"
version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eca7a8d8af57c18f57d393601a1fb159ace8b2328f1b6b5f80893f7d672c9ae2"
dependencies = [
"bitflags 2.9.1",
"bytemuck",
"log",
]
[[package]]
name = "whoami"
version = "1.6.0"