diff --git a/Cargo.lock b/Cargo.lock index aaa65aa..a230d94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,27 +50,18 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "once_cell", "version_check", ] -[[package]] -name = "aho-corasick" -version = "0.6.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ce3d38065e618af2d7b77e10c5ad9a069859b4be3c2250f674af3840d9c8a5" -dependencies = [ - "memchr 2.5.0", -] - [[package]] name = "aho-corasick" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" dependencies = [ - "memchr 2.5.0", + "memchr", ] [[package]] @@ -90,7 +81,7 @@ dependencies = [ "cc", "jni-sys", "libc", - "log 0.4.18", + "log", "ndk", "ndk-context", "ndk-sys", @@ -119,12 +110,52 @@ dependencies = [ ] [[package]] -name = "ansi_term" -version = "0.12.1" +name = "anstream" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163" dependencies = [ - "winapi 0.3.9", + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is-terminal", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" + +[[package]] +name = "anstyle-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +dependencies = [ + "windows-sys 0.48.0", +] + +[[package]] +name = "anstyle-wincon" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +dependencies = [ + "anstyle", + "windows-sys 0.48.0", ] [[package]] @@ -157,17 +188,6 @@ dependencies = [ "libloading 0.7.4", ] -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi 0.3.9", -] - [[package]] name = "autocfg" version = "1.1.0" @@ -182,7 +202,7 @@ checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" dependencies = [ "addr2line", "cc", - "cfg-if 1.0.0", + "cfg-if", "libc", "miniz_oxide 0.6.2", "object", @@ -191,21 +211,24 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.32.3" +version = "0.66.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b242e11a8f446f5fc7b76b37e81d737cabca562a927bd33766dac55b5f1177f" +checksum = "f2b84e06fc203107bfbad243f4aba2af864eb7db3b1cf46ea0a023b0b433d2a7" dependencies = [ + "bitflags 2.3.3", "cexpr", - "cfg-if 0.1.10", "clang-sys", - "clap", - "env_logger", "lazy_static", - "log 0.3.9", + "lazycell", + "log", "peeking_take_while", - "proc-macro2 0.2.3", - "quote 0.4.2", - "regex 0.2.11", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", + "syn 2.0.24", "which", ] @@ -232,9 +255,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.1" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" +checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" [[package]] name = "block" @@ -282,9 +305,9 @@ version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdde5c9cd29ebd706ce1b35600920a33550e402fc998a2e53ad3b42c3c47a192" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", + "proc-macro2", + "quote", + "syn 2.0.24", ] [[package]] @@ -292,6 +315,9 @@ name = "calendar" version = "0.1.0" dependencies = [ "chrono", + "clap", + "directories", + "icalendar", "iced", "lttng-ust", "lttng-ust-generate", @@ -303,7 +329,7 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a59225be45a478d772ce015d9743e49e92798ece9e34eda9a6aa2a6a7f40192" dependencies = [ - "log 0.4.18", + "log", "nix 0.25.1", "slotmap", "thiserror", @@ -321,19 +347,13 @@ dependencies = [ [[package]] name = "cexpr" -version = "0.2.3" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42aac45e9567d97474a834efdee3081b3c942b2205be932092f53354ce503d6c" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" dependencies = [ - "nom 3.2.1", + "nom", ] -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "cfg-if" version = "1.0.0" @@ -358,35 +378,61 @@ dependencies = [ "num-traits", "time", "wasm-bindgen", - "winapi 0.3.9", + "winapi", ] [[package]] name = "clang-sys" -version = "0.21.2" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e414af9726e1d11660801e73ccc7fb81803fb5f49e5903a25b348b2b3b480d2e" +checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f" dependencies = [ "glob", "libc", - "libloading 0.4.3", + "libloading 0.7.4", ] [[package]] name = "clap" -version = "2.34.0" +version = "4.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +checksum = "1640e5cc7fb47dbb8338fd471b105e7ed6c3cb2aeb00c2e067127ffd3764a05d" dependencies = [ - "ansi_term", - "atty", - "bitflags 1.3.2", - "strsim", - "textwrap", - "unicode-width", - "vec_map", + "clap_builder", + "clap_derive", + "once_cell", ] +[[package]] +name = "clap_builder" +version = "4.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98c59138d527eeaf9b53f35a77fcc1fad9d883116070c63d5de1c7dc7b00c72b" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8cd2b2a819ad6eec39e8f1d6b53001af1e5469f8c177579cdaeb313115b825f" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.24", +] + +[[package]] +name = "clap_lex" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" + [[package]] name = "clipboard-win" version = "4.5.0" @@ -395,7 +441,7 @@ checksum = "7191c27c2357d9b7ef96baac1773290d4ca63b24205b82a3fd8a0637afcf0362" dependencies = [ "error-code", "str-buf", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -469,6 +515,12 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "colorchoice" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" + [[package]] name = "com-rs" version = "0.2.1" @@ -519,12 +571,12 @@ dependencies = [ [[package]] name = "cosmic-text" version = "0.8.0" -source = "git+https://github.com/hecrj/cosmic-text.git?rev=e8b10fd675832cb9c1cc9de30922beb4cf883876#e8b10fd675832cb9c1cc9de30922beb4cf883876" +source = "git+https://github.com/hecrj/cosmic-text.git?rev=c3cd24dc972bb8fd55d016c81ac9fa637e0a4ada#c3cd24dc972bb8fd55d016c81ac9fa637e0a4ada" dependencies = [ "aliasable", "fontdb", "libm", - "log 0.4.18", + "log", "rangemap", "rustybuzz", "swash", @@ -541,9 +593,15 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] +[[package]] +name = "crunchy" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" + [[package]] name = "d3d12" version = "0.6.0" @@ -552,7 +610,28 @@ checksum = "d8f0de2f5a8e7bd4a9eec0e3c781992a4ce1724f68aec7d7a3715344de8b39da" dependencies = [ "bitflags 1.3.2", "libloading 0.7.4", - "winapi 0.3.9", + "winapi", +] + +[[package]] +name = "directories" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.48.0", ] [[package]] @@ -577,13 +656,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] -name = "env_logger" -version = "0.4.3" +name = "either" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ddf21e73e016298f5cb37d6ef8e8da8e39f91f9ec8b0df44b7deb16a9f8cd5b" +checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" + +[[package]] +name = "errno" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" dependencies = [ - "log 0.3.9", - "regex 0.2.11", + "errno-dragonfly", + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", ] [[package]] @@ -655,7 +751,7 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af8d8cbea8f21307d7e84bca254772981296f058a1d36b461bf4d83a7499fc9e" dependencies = [ - "log 0.4.18", + "log", "memmap2 0.6.2", "slotmap", "tinyvec", @@ -732,9 +828,9 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", + "proc-macro2", + "quote", + "syn 2.0.24", ] [[package]] @@ -761,7 +857,7 @@ dependencies = [ "futures-macro", "futures-sink", "futures-task", - "memchr 2.5.0", + "memchr", "pin-project-lite", "pin-utils", "slab", @@ -774,7 +870,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -783,7 +879,7 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.11.0+wasi-snapshot-preview1", ] @@ -802,9 +898,9 @@ checksum = "ad83ab008a4fa3b31dfa713dd41b5a9bdea1e94e4cf1e2fc274ffbd49b0271d3" [[package]] name = "glob" -version = "0.2.11" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "glow" @@ -821,7 +917,7 @@ dependencies = [ [[package]] name = "glyphon" version = "0.2.0" -source = "git+https://github.com/hecrj/glyphon.git?rev=8dbf36020e5759fa9144517b321372266160113e#8dbf36020e5759fa9144517b321372266160113e" +source = "git+https://github.com/hecrj/glyphon.git?rev=8324f20158a62f8520bad4ed09f6aa5552f8f2a6#8324f20158a62f8520bad4ed09f6aa5552f8f2a6" dependencies = [ "cosmic-text", "etagere", @@ -855,9 +951,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce95f9e2e11c2c6fadfce42b5af60005db06576f231f5c92550fdded43c423e8" dependencies = [ "backtrace", - "log 0.4.18", + "log", "thiserror", - "winapi 0.3.9", + "winapi", "windows 0.44.0", ] @@ -891,6 +987,16 @@ dependencies = [ "svg_fmt", ] +[[package]] +name = "half" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc52e53916c08643f1b56ec082790d1e86a32e58dc5268f897f313fbae7b4872" +dependencies = [ + "cfg-if", + "crunchy", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -921,17 +1027,14 @@ dependencies = [ "libloading 0.7.4", "thiserror", "widestring", - "winapi 0.3.9", + "winapi", ] [[package]] -name = "hermit-abi" -version = "0.1.19" +name = "heck" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" @@ -977,6 +1080,18 @@ dependencies = [ "cc", ] +[[package]] +name = "icalendar" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f730bf0dc0a06f7e19c4ca6b731427d741384338b60128e5d0d00aeb0b5f071" +dependencies = [ + "chrono", + "iso8601", + "nom", + "uuid", +] + [[package]] name = "iced" version = "0.9.0" @@ -995,7 +1110,7 @@ version = "0.9.0" dependencies = [ "bitflags 1.3.2", "instant", - "log 0.4.18", + "log", "palette", "thiserror", "twox-hash", @@ -1007,7 +1122,7 @@ version = "0.6.0" dependencies = [ "futures", "iced_core", - "log 0.4.18", + "log", "wasm-bindgen-futures", "wasm-timer", ] @@ -1019,11 +1134,11 @@ dependencies = [ "bitflags 1.3.2", "bytemuck", "glam", + "half", "iced_core", - "log 0.4.18", + "log", "raw-window-handle", "thiserror", - "tiny-skia 0.9.1", ] [[package]] @@ -1033,6 +1148,7 @@ dependencies = [ "iced_graphics", "iced_tiny_skia", "iced_wgpu", + "log", "raw-window-handle", "thiserror", ] @@ -1063,7 +1179,7 @@ dependencies = [ "cosmic-text", "iced_graphics", "kurbo", - "log 0.4.18", + "log", "raw-window-handle", "rustc-hash", "softbuffer", @@ -1082,7 +1198,7 @@ dependencies = [ "glyphon", "guillotiere", "iced_graphics", - "log 0.4.18", + "log", "once_cell", "raw-window-handle", "rustc-hash", @@ -1109,11 +1225,11 @@ dependencies = [ "iced_graphics", "iced_runtime", "iced_style", - "log 0.4.18", + "log", "raw-window-handle", "thiserror", "web-sys", - "winapi 0.3.9", + "winapi", "window_clipboard", "winit", ] @@ -1134,7 +1250,7 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "wasm-bindgen", "web-sys", @@ -1151,6 +1267,26 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "is-terminal" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +dependencies = [ + "hermit-abi 0.3.1", + "rustix", + "windows-sys 0.48.0", +] + +[[package]] +name = "iso8601" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924e5d73ea28f59011fec52a0d12185d496a9b075d360657aed2a5707f701153" +dependencies = [ + "nom", +] + [[package]] name = "jni-sys" version = "0.3.0" @@ -1175,16 +1311,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - [[package]] name = "khronos-egl" version = "4.1.0" @@ -1212,21 +1338,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] -name = "libc" -version = "0.2.144" +name = "lazycell" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] -name = "libloading" -version = "0.4.3" +name = "libc" +version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd38073de8f7965d0c17d30546d4bb6da311ab428d1c7a3fc71dff7f9d4979b9" -dependencies = [ - "kernel32-sys", - "lazy_static", - "winapi 0.2.8", -] +checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "libloading" @@ -1234,8 +1355,8 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" dependencies = [ - "cfg-if 1.0.0", - "winapi 0.3.9", + "cfg-if", + "winapi", ] [[package]] @@ -1244,7 +1365,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d580318f95776505201b28cf98eb1fa5e4be3b689633ba6a3e6cd880ff22d8cb" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "windows-sys 0.48.0", ] @@ -1254,6 +1375,12 @@ version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" +[[package]] +name = "linux-raw-sys" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0" + [[package]] name = "lock_api" version = "0.4.9" @@ -1264,15 +1391,6 @@ dependencies = [ "scopeguard", ] -[[package]] -name = "log" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" -dependencies = [ - "log 0.4.18", -] - [[package]] name = "log" version = "0.4.18" @@ -1297,8 +1415,6 @@ checksum = "3d029a0683065983856ffcc8818fc59d71a48acd4616b3668c69f1ee8026a593" [[package]] name = "lttng-ust-generate" version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0210fff1da0b5233f88c1498ad26e7a31ebe28b5e9dc39908d636f5cd964495" dependencies = [ "bindgen", "cc", @@ -1313,15 +1429,6 @@ dependencies = [ "libc", ] -[[package]] -name = "memchr" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a" -dependencies = [ - "libc", -] - [[package]] name = "memchr" version = "2.5.0" @@ -1374,7 +1481,7 @@ dependencies = [ "block", "core-graphics-types", "foreign-types", - "log 0.4.18", + "log", "objc", ] @@ -1410,7 +1517,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log 0.4.18", + "log", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.48.0", ] @@ -1426,13 +1533,13 @@ dependencies = [ "codespan-reporting", "hexf-parse", "indexmap", - "log 0.4.18", + "log", "num-traits", "rustc-hash", "spirv", "termcolor", "thiserror", - "unicode-xid 0.2.4", + "unicode-xid", ] [[package]] @@ -1472,7 +1579,7 @@ checksum = "e4916f159ed8e5de0082076562152a76b7a1f64a01fd9d1e0fea002c37624faf" dependencies = [ "bitflags 1.3.2", "cc", - "cfg-if 1.0.0", + "cfg-if", "libc", "memoffset 0.6.5", ] @@ -1484,7 +1591,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "libc", "memoffset 0.6.5", ] @@ -1497,7 +1604,7 @@ checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4" dependencies = [ "autocfg", "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "libc", "memoffset 0.6.5", ] @@ -1509,29 +1616,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a" dependencies = [ "bitflags 1.3.2", - "cfg-if 1.0.0", + "cfg-if", "libc", "memoffset 0.7.1", "pin-utils", "static_assertions", ] -[[package]] -name = "nom" -version = "3.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05aec50c70fd288702bcd93284a8444607f3292dbdf2a30de5ea5dcdbe72287b" -dependencies = [ - "memchr 1.0.2", -] - [[package]] name = "nom" version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ - "memchr 2.5.0", + "memchr", "minimal-lexical", ] @@ -1570,8 +1668,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.59", - "quote 1.0.28", + "proc-macro2", + "quote", "syn 1.0.109", ] @@ -1646,7 +1744,7 @@ version = "0.30.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" dependencies = [ - "memchr 2.5.0", + "memchr", ] [[package]] @@ -1655,6 +1753,12 @@ version = "1.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + [[package]] name = "orbclient" version = "0.3.45" @@ -1691,9 +1795,9 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c02bfa6b3ba8af5434fa0531bf5701f750d983d4260acd6867faca51cdc4484" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", + "proc-macro2", + "quote", + "syn 2.0.24", ] [[package]] @@ -1723,12 +1827,12 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "instant", "libc", "redox_syscall 0.2.16", "smallvec", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1737,7 +1841,7 @@ version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "redox_syscall 0.2.16", "smallvec", @@ -1784,8 +1888,8 @@ checksum = "92aacdc5f16768709a569e913f7451034034178b05bdc8acda226659a3dccc66" dependencies = [ "phf_generator", "phf_shared", - "proc-macro2 1.0.59", - "quote 1.0.28", + "proc-macro2", + "quote", "syn 1.0.109", ] @@ -1835,6 +1939,16 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +[[package]] +name = "prettyplease" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92139198957b410250d43fad93e630d956499a625c527eda65175c8680f83387" +dependencies = [ + "proc-macro2", + "syn 2.0.24", +] + [[package]] name = "proc-macro-crate" version = "1.3.1" @@ -1847,18 +1961,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "0.2.3" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd07deb3c6d1d9ff827999c7f9b04cdfd66b1b17ae508e14fe47b620f2282ae0" -dependencies = [ - "unicode-xid 0.1.0", -] - -[[package]] -name = "proc-macro2" -version = "1.0.59" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "78803b62cbf1f46fde80d7c0e803111524b9877184cfe7c3033659490ac7a7da" dependencies = [ "unicode-ident", ] @@ -1875,16 +1980,7 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11bafc859c6815fbaffbbbf4229ecb767ac913fecb27f9ad4343662e9ef099ea" dependencies = [ - "memchr 2.5.0", -] - -[[package]] -name = "quote" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1eca14c727ad12702eb4b6bfb5a232287dcf8385cb8ca83a3eeaf6519c44c408" -dependencies = [ - "proc-macro2 0.2.3", + "memchr", ] [[package]] @@ -1893,7 +1989,7 @@ version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" dependencies = [ - "proc-macro2 1.0.59", + "proc-macro2", ] [[package]] @@ -1963,16 +2059,14 @@ dependencies = [ ] [[package]] -name = "regex" -version = "0.2.11" +name = "redox_users" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" +checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "aho-corasick 0.6.10", - "memchr 2.5.0", - "regex-syntax 0.5.6", - "thread_local", - "utf8-ranges", + "getrandom", + "redox_syscall 0.2.16", + "thiserror", ] [[package]] @@ -1981,18 +2075,9 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" dependencies = [ - "aho-corasick 1.0.1", - "memchr 2.5.0", - "regex-syntax 0.7.2", -] - -[[package]] -name = "regex-syntax" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7" -dependencies = [ - "ucd-util", + "aho-corasick", + "memchr", + "regex-syntax", ] [[package]] @@ -2019,6 +2104,19 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustix" +version = "0.38.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac5ffa1efe7548069688cd7028f32591853cd7b5b756d41bcffd2353e4fc75b4" +dependencies = [ + "bitflags 2.3.3", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.48.0", +] + [[package]] name = "rustybuzz" version = "0.8.0" @@ -2055,12 +2153,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cda4e97be1fd174ccc2aae81c8b694e803fa99b34e8fd0f057a9d70698e3ed09" dependencies = [ "ab_glyph", - "log 0.4.18", + "log", "memmap2 0.5.10", "smithay-client-toolkit", "tiny-skia 0.8.4", ] +[[package]] +name = "shlex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" + [[package]] name = "simd-adler32" version = "0.3.5" @@ -2107,7 +2211,7 @@ dependencies = [ "calloop", "dlib", "lazy_static", - "log 0.4.18", + "log", "memmap2 0.5.10", "nix 0.24.3", "pkg-config", @@ -2138,7 +2242,7 @@ dependencies = [ "core-graphics", "fastrand", "foreign-types", - "log 0.4.18", + "log", "nix 0.26.2", "objc", "raw-window-handle", @@ -2184,9 +2288,9 @@ checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" [[package]] name = "strsim" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "svg_fmt" @@ -2210,19 +2314,19 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", + "proc-macro2", + "quote", "unicode-ident", ] [[package]] name = "syn" -version = "2.0.18" +version = "2.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" +checksum = "36ccaf716a23c35ff908f91c971a86a9a71af5998c1d8f10e828d9f55f68ac00" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", + "proc-macro2", + "quote", "unicode-ident", ] @@ -2245,15 +2349,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - [[package]] name = "thiserror" version = "1.0.40" @@ -2269,18 +2364,9 @@ version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", -] - -[[package]] -name = "thread_local" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" -dependencies = [ - "lazy_static", + "proc-macro2", + "quote", + "syn 2.0.24", ] [[package]] @@ -2291,7 +2377,7 @@ checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2303,7 +2389,7 @@ dependencies = [ "arrayref", "arrayvec", "bytemuck", - "cfg-if 1.0.0", + "cfg-if", "png", "tiny-skia-path 0.8.4", ] @@ -2317,8 +2403,8 @@ dependencies = [ "arrayref", "arrayvec", "bytemuck", - "cfg-if 1.0.0", - "log 0.4.18", + "cfg-if", + "log", "png", "tiny-skia-path 0.9.0", ] @@ -2389,17 +2475,11 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "rand", "static_assertions", ] -[[package]] -name = "ucd-util" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abd2fc5d32b590614af8b0a20d837f32eca055edd0bbead59a9cfe80858be003" - [[package]] name = "unicode-bidi" version = "0.3.13" @@ -2437,7 +2517,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5faade31a542b8b35855fff6e8def199853b2da8da256da52f52f1316ee3137" dependencies = [ "hashbrown 0.12.3", - "regex 1.8.3", + "regex", ] [[package]] @@ -2458,12 +2538,6 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" -[[package]] -name = "unicode-xid" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" - [[package]] name = "unicode-xid" version = "0.2.4" @@ -2471,10 +2545,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] -name = "utf8-ranges" -version = "1.0.5" +name = "utf8parse" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcfc827f90e53a02eaef5e535ee14266c1d569214c6aa70133a624d8a3164ba" +checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" + +[[package]] +name = "uuid" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d023da39d1fde5a8a3fe1f3e01ca9632ada0a63e9797de55a879d6e2236277be" +dependencies = [ + "getrandom", +] [[package]] name = "vec_map" @@ -2506,7 +2589,7 @@ version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "wasm-bindgen-macro", ] @@ -2517,11 +2600,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" dependencies = [ "bumpalo", - "log 0.4.18", + "log", "once_cell", - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", + "proc-macro2", + "quote", + "syn 2.0.24", "wasm-bindgen-shared", ] @@ -2531,7 +2614,7 @@ version = "0.4.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d1985d03709c53167ce907ff394f5316aa22cb4e12761295c5dc57dacb6297e" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "wasm-bindgen", "web-sys", @@ -2543,7 +2626,7 @@ version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" dependencies = [ - "quote 1.0.28", + "quote", "wasm-bindgen-macro-support", ] @@ -2553,9 +2636,9 @@ version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", - "syn 2.0.18", + "proc-macro2", + "quote", + "syn 2.0.24", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2665,8 +2748,8 @@ version = "0.29.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53" dependencies = [ - "proc-macro2 1.0.59", - "quote 1.0.28", + "proc-macro2", + "quote", "xml-rs", ] @@ -2676,9 +2759,9 @@ version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4834c14b3edf1d9986c83ca79b1e7e3afbe9874c7c144702f6467063259ce45d" dependencies = [ - "proc-macro2 1.0.59", + "proc-macro2", "quick-xml", - "quote 1.0.28", + "quote", ] [[package]] @@ -2700,7 +2783,7 @@ checksum = "96b2a02ac608e07132978689a6f9bf4214949c85998c247abadd4f4129b1aa06" dependencies = [ "dlib", "lazy_static", - "log 0.4.18", + "log", "pkg-config", ] @@ -2721,9 +2804,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3059ea4ddec41ca14f356833e2af65e7e38c0a8f91273867ed526fb9bafcca95" dependencies = [ "arrayvec", - "cfg-if 1.0.0", + "cfg-if", "js-sys", - "log 0.4.18", + "log", "naga", "parking_lot 0.12.1", "profiling", @@ -2746,9 +2829,9 @@ checksum = "8f478237b4bf0d5b70a39898a66fa67ca3a007d79f2520485b8b0c3dfc46f8c2" dependencies = [ "arrayvec", "bit-vec", - "bitflags 2.3.1", + "bitflags 2.3.3", "codespan-reporting", - "log 0.4.18", + "log", "naga", "parking_lot 0.12.1", "profiling", @@ -2771,7 +2854,7 @@ dependencies = [ "arrayvec", "ash", "bit-set", - "bitflags 2.3.1", + "bitflags 2.3.3", "block", "core-graphics-types", "d3d12", @@ -2785,7 +2868,7 @@ dependencies = [ "khronos-egl", "libc", "libloading 0.8.0", - "log 0.4.18", + "log", "metal", "naga", "objc", @@ -2800,7 +2883,7 @@ dependencies = [ "wasm-bindgen", "web-sys", "wgpu-types", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2809,18 +2892,20 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bd33a976130f03dcdcd39b3810c0c3fc05daf86f0aaf867db14bfb7c4a9a32b" dependencies = [ - "bitflags 2.3.1", + "bitflags 2.3.3", "js-sys", "web-sys", ] [[package]] name = "which" -version = "1.0.5" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e84a603e7e0b1ce1aa1ee2b109c7be00155ce52df5081590d1ffb93f4f515cb2" +checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" dependencies = [ + "either", "libc", + "once_cell", ] [[package]] @@ -2829,12 +2914,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - [[package]] name = "winapi" version = "0.3.9" @@ -2845,12 +2924,6 @@ dependencies = [ "winapi-x86_64-pc-windows-gnu", ] -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" @@ -2863,7 +2936,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2872,7 +2945,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44c17110f57155602a80dca10be03852116403c9ff3cd25b079d666f2aa3df6e" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3048,7 +3121,7 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winit" version = "0.28.6" -source = "git+https://github.com/iced-rs/winit.git?rev=ac1ddfe0bd870910b3aa64a18d386fdd55b30a1d#ac1ddfe0bd870910b3aa64a18d386fdd55b30a1d" +source = "git+https://github.com/iced-rs/winit.git?rev=c52db2045d0a2f1b8d9923870de1d4ab1994146e#c52db2045d0a2f1b8d9923870de1d4ab1994146e" dependencies = [ "android-activity", "bitflags 1.3.2", @@ -3058,7 +3131,7 @@ dependencies = [ "dispatch", "instant", "libc", - "log 0.4.18", + "log", "mio", "ndk", "objc2", @@ -3085,7 +3158,7 @@ version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" dependencies = [ - "memchr 2.5.0", + "memchr", ] [[package]] @@ -3107,7 +3180,7 @@ checksum = "6e99be55648b3ae2a52342f9a870c0e138709a3493261ce9b469afe6e4df6d8a" dependencies = [ "gethostname", "nix 0.22.3", - "winapi 0.3.9", + "winapi", "winapi-wsapoll", ] @@ -3122,7 +3195,7 @@ dependencies = [ "libloading 0.7.4", "nix 0.25.1", "once_cell", - "winapi 0.3.9", + "winapi", "winapi-wsapoll", "x11rb-protocol", ] @@ -3142,7 +3215,7 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "463705a63313cd4301184381c5e8042f0a7e9b4bb63653f216311d4ae74690b7" dependencies = [ - "nom 7.1.3", + "nom", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 2720761..d32afce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,10 @@ tracing = ["dep:lttng-ust"] iced = { path = "../iced", features = ["advanced"] } chrono = "0.4" lttng-ust = { version = "0.1.0", optional = true } +icalendar = "0.15.4" +directories = "5.0.1" +clap = { version = "4.3.11", features = ["derive"] } [build-dependencies] -lttng-ust-generate = "0.1.0" +#lttng-ust-generate = "0.1.0" +lttng-ust-generate = { path = "../lttng-ust-rs/lttng-ust-generate" } diff --git a/src/main.rs b/src/main.rs index 918ef65..fb37ef5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,10 +4,15 @@ mod model; use ui::calendar; use model::events::EventsCollection; +use model::ical_bridge::load_calendar; use chrono::{Datelike, NaiveDate, Months, Utc}; use calendar::{CalendarMonthView, CalendarYearView, CalendarParams }; +use std::path; +use clap; +use clap::Parser; + use iced::{ alignment, executor, @@ -23,8 +28,21 @@ use iced::widget::{ //use iced::button; use iced::theme; +struct CalendarFlags { + calendar_paths: std::vec::Vec, +} + +#[derive(Parser, Debug)] +#[command(version, about)] +struct CliArgs { + files: Vec, +} + pub fn main() -> iced::Result { - CalendarApp::run(Settings::default()) + let args = CliArgs::parse(); + let calendar_files = args.files.iter().map(|arg| path::PathBuf::from(arg)).collect(); + //let calendar_files = vec![path::PathBuf::from("/home/fab/calendario.ics")]; + CalendarApp::run(Settings::with_flags(CalendarFlags {calendar_paths: calendar_files})) } #[derive(Default)] @@ -118,15 +136,19 @@ impl Application for CalendarApp { type Executor = executor::Default; type Message = Message; type Theme = iced::Theme; - type Flags = (); + type Flags = CalendarFlags; - fn new(_flags: Self::Flags) -> (Self, Command) { - let month = Utc::today().naive_local(); - (CalendarApp { + fn new(flags: Self::Flags) -> (Self, Command) { + let month = Utc::now().date_naive(); + let mut ret = (CalendarApp { month, events: EventsCollection::new(), ..CalendarApp::default() - }, Command::none()) + }, Command::none()); + for calendar_path in flags.calendar_paths { + load_calendar(&calendar_path, &mut ret.0.events); + } + ret } fn title(&self) -> String { diff --git a/src/model.rs b/src/model.rs index 6226263..853de07 100644 --- a/src/model.rs +++ b/src/model.rs @@ -1 +1,2 @@ -pub mod events; \ No newline at end of file +pub mod events; +pub mod ical_bridge; \ No newline at end of file diff --git a/src/model/events.rs b/src/model/events.rs index 7f56392..8e6165f 100644 --- a/src/model/events.rs +++ b/src/model/events.rs @@ -10,16 +10,6 @@ pub struct Event { pub end: NaiveDate, } -//impl Clone for Event { -// fn clone(&self) -> Self { -// Event { -// text: self.text.clone(), -// begin: self.begin, -// end: self.end, -// } -// } -//} -// impl Event { pub fn is_in_day(&self, day: NaiveDate) -> bool { day >= self.begin && day <= self.end @@ -49,36 +39,14 @@ impl EventsCollection { pub fn new() -> Self { EventsCollection { // TODO: hard-coded events - events: vec![ - Event { - text: String::from("pentecoste"), - begin: NaiveDate::from_ymd_opt(2023, 05, 30).unwrap(), - end: NaiveDate::from_ymd_opt(2023, 06, 09).unwrap(), - }, - Event { - text: String::from("estate"), - begin: NaiveDate::from_ymd_opt(2023, 07, 31).unwrap(), - end: NaiveDate::from_ymd_opt(2023, 09, 11).unwrap(), - }, - Event { - text: String::from("event one"), - begin: NaiveDate::from_ymd_opt(2023, 07, 31).unwrap(), - end: NaiveDate::from_ymd_opt(2023, 08, 03).unwrap(), - }, - Event { - text: String::from("event two"), - begin: NaiveDate::from_ymd_opt(2023, 08, 02).unwrap(), - end: NaiveDate::from_ymd_opt(2023, 08, 04).unwrap(), - }, - Event { - text: String::from("event three"), - begin: NaiveDate::from_ymd_opt(2023, 08, 05).unwrap(), - end: NaiveDate::from_ymd_opt(2023, 08, 06).unwrap(), - }, - ], + events: Vec::new(), } } + pub fn create(self: &mut Self, begin: NaiveDate, end: NaiveDate, text: &str) { + self.events.push(Event {text: text.to_string(), begin, end}); + } + pub fn is_any_in_day(&self, day: NaiveDate) -> Option { for ev_day in &self.events { if ev_day.is_in_day(day) { diff --git a/src/model/ical_bridge.rs b/src/model/ical_bridge.rs new file mode 100644 index 0000000..7e7e2d6 --- /dev/null +++ b/src/model/ical_bridge.rs @@ -0,0 +1,43 @@ +use icalendar; +use icalendar::{Component, DatePerhapsTime, CalendarDateTime, CalendarComponent}; +use chrono::NaiveDate; +use crate::EventsCollection; +use std::fs; + +fn cdt_as_date(cdt: &CalendarDateTime) -> NaiveDate { + match cdt { + CalendarDateTime::Floating(ndt) => ndt.date(), + CalendarDateTime::Utc(ud) => ud.naive_local().date(), + CalendarDateTime::WithTimezone{date_time, tzid: _} => date_time.date(), + } +} + +fn as_date(cal_date: &DatePerhapsTime) -> NaiveDate { + match cal_date { + DatePerhapsTime::DateTime(cdt) => cdt_as_date(cdt), + DatePerhapsTime::Date(nd) => nd.clone() + } +} + +fn create_event(events: &mut EventsCollection, event: &icalendar::Event) { + events.create(as_date(&event.get_start().unwrap()), as_date(&event.get_end().unwrap()).pred_opt().unwrap(), event.get_summary().unwrap()); +} + +pub fn load_calendar(calendar_path: &std::path::Path, events: &mut EventsCollection) { + let mut calendar = icalendar::Calendar::new(); + let contents = fs::read_to_string(calendar_path) + .expect("Could not read the calendar"); + let res = icalendar::parser::read_calendar(&contents); + match res { + Ok(parsed_calendar) => { calendar.extend(parsed_calendar.components); } + Err(e) => println!("{}", e) + } + + for cc in calendar.iter() { + match cc { + CalendarComponent::Event(event) => create_event(events, event), + _ => (), + } + } +} + diff --git a/src/ui/basics.rs b/src/ui/basics.rs index 74292a0..4b3ad0c 100644 --- a/src/ui/basics.rs +++ b/src/ui/basics.rs @@ -46,14 +46,6 @@ impl CellGrid { } } - pub fn num_rows(&self) -> u32 { - return self.num_y; - } - - pub fn num_cols(&self) -> u32 { - return self.num_x; - } - pub fn rows(&self) -> Self { CellGrid::new(self.x, self.y, self.width, self.height, 1, self.num_y) } diff --git a/src/ui/calendar.rs b/src/ui/calendar.rs index e80875a..d37b668 100644 --- a/src/ui/calendar.rs +++ b/src/ui/calendar.rs @@ -10,7 +10,7 @@ use iced::advanced::{layout, renderer}; use iced::advanced::widget::{Tree, Widget}; -use iced::{Color, Element, Length, Point, Rectangle, alignment}; +use iced::{Color, Element, Length, Rectangle, alignment}; use iced::advanced::text::{self, Text, LineHeight, Shaping}; use chrono::{NaiveDate, Datelike, Duration, Local, Months}; use super::basics::CellGrid; @@ -111,7 +111,7 @@ fn render_events_in_row( LineHeight::default(), renderer.default_font(), row_bounds.size(), - Shaping::default()).1; + Shaping::default()).height; let last_day = first_day + Duration::days(num_days - 1); let all_events = events.within(first_day, last_day); @@ -136,7 +136,8 @@ fn render_events_in_row( // start of event ev_bar.bounds.x = cell.x; ev_bar.bounds.y = ev_y; - } else if ev_bar.ev.end == current_day { + } + if ev_bar.ev.end == current_day { // end of event -> set width ev_bar.bounds.width = cell.x + cell.width - ev_bar.bounds.x; }