From 48adaa832ebb4ec4255c2700aa2ca433d38dbf0c Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 1 Jul 2023 23:39:50 +0000 Subject: [PATCH] lemoa: 0.1.0 -> 0.2.0 --- pkgs/additional/lemoa/Cargo.lock | 122 +++++++++++++++++++++++++++--- pkgs/additional/lemoa/default.nix | 4 +- 2 files changed, 114 insertions(+), 12 deletions(-) diff --git a/pkgs/additional/lemoa/Cargo.lock b/pkgs/additional/lemoa/Cargo.lock index 6087ce3d..88a1fdae 100644 --- a/pkgs/additional/lemoa/Cargo.lock +++ b/pkgs/additional/lemoa/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ "serde_urlencoded", "smallvec", "socket2", - "time", + "time 0.3.22", "url", ] @@ -250,6 +250,15 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + [[package]] name = "anyhow" version = "1.0.71" @@ -369,8 +378,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ "android-tzdata", + "iana-time-zone", + "js-sys", "num-traits", "serde", + "time 0.1.45", + "wasm-bindgen", + "winapi", ] [[package]] @@ -748,7 +762,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "wasm-bindgen", ] @@ -1102,6 +1116,29 @@ dependencies = [ "tokio-native-tls", ] +[[package]] +name = "iana-time-zone" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + [[package]] name = "ident_case" version = "1.0.1" @@ -1154,6 +1191,15 @@ version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" +[[package]] +name = "isolang" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f80f221db1bc708b71128757b9396727c04de86968081e18e89b0575e03be071" +dependencies = [ + "phf 0.11.2", +] + [[package]] name = "itoa" version = "1.0.6" @@ -1253,8 +1299,9 @@ dependencies = [ [[package]] name = "lemoa" -version = "0.1.0" +version = "0.2.0" dependencies = [ + "chrono", "html2pango", "lemmy_api_common", "markdown", @@ -1265,6 +1312,7 @@ dependencies = [ "reqwest", "serde", "serde_json", + "timeago", ] [[package]] @@ -1385,7 +1433,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016" dependencies = [ "log", - "phf", + "phf 0.10.1", "phf_codegen", "string_cache", "string_cache_codegen", @@ -1443,7 +1491,7 @@ checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", "log", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.48.0", ] @@ -1616,7 +1664,16 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_shared", + "phf_shared 0.10.0", +] + +[[package]] +name = "phf" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" +dependencies = [ + "phf_shared 0.11.2", ] [[package]] @@ -1626,7 +1683,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ "phf_generator", - "phf_shared", + "phf_shared 0.10.0", ] [[package]] @@ -1635,7 +1692,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ - "phf_shared", + "phf_shared 0.10.0", "rand", ] @@ -1648,6 +1705,15 @@ dependencies = [ "siphasher", ] +[[package]] +name = "phf_shared" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project" version = "1.1.0" @@ -2156,7 +2222,7 @@ dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", - "phf_shared", + "phf_shared 0.10.0", "precomputed-hash", "serde", ] @@ -2168,7 +2234,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ "phf_generator", - "phf_shared", + "phf_shared 0.10.0", "proc-macro2", "quote", ] @@ -2284,6 +2350,17 @@ dependencies = [ "syn 2.0.18", ] +[[package]] +name = "time" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" +dependencies = [ + "libc", + "wasi 0.10.0+wasi-snapshot-preview1", + "winapi", +] + [[package]] name = "time" version = "0.3.22" @@ -2311,6 +2388,16 @@ dependencies = [ "time-core", ] +[[package]] +name = "timeago" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5082dc942361cdfb74eab98bf995762d6015e5bb3a20bf7c5c71213778b4fcb4" +dependencies = [ + "chrono", + "isolang", +] + [[package]] name = "tinyvec" version = "1.6.0" @@ -2586,6 +2673,12 @@ dependencies = [ "try-lock", ] +[[package]] +name = "wasi" +version = "0.10.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" + [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2709,6 +2802,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +dependencies = [ + "windows-targets", +] + [[package]] name = "windows-sys" version = "0.42.0" diff --git a/pkgs/additional/lemoa/default.nix b/pkgs/additional/lemoa/default.nix index 732bd041..b87c7bbe 100644 --- a/pkgs/additional/lemoa/default.nix +++ b/pkgs/additional/lemoa/default.nix @@ -13,13 +13,13 @@ rustPlatform.buildRustPackage rec { pname = "lemoa"; - version = "0.1.0"; + version = "0.2.0"; src = fetchFromGitHub { owner = "lemmy-gtk"; repo = pname; rev = "v${version}"; - hash = "sha256-7tq9XP79GXnIoibrZugdir79P14qJevTzY44fC3R7cA="; + hash = "sha256-krd/w8YTzqQHZYmU3Pt/lKS7eg8n1N8hfL3Rgl1wGfM="; }; cargoLock = {