From 1a30f7d62d5f9a0e178c8aa8fb31f24ea5a03976 Mon Sep 17 00:00:00 2001 From: nazeh Date: Wed, 11 Dec 2024 14:33:28 +0300 Subject: [PATCH] chore: update dependencies --- Cargo.lock | 176 ++++++++++++++++++++++-------------- Cargo.toml | 2 +- pubky-common/Cargo.toml | 16 ++-- pubky-homeserver/Cargo.toml | 32 +++---- pubky/Cargo.toml | 30 +++--- 5 files changed, 150 insertions(+), 106 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 39eaba4..ce139ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -87,9 +87,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.93" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" +checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" [[package]] name = "arc-swap" @@ -171,9 +171,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "axum" -version = "0.7.7" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "504e3947307ac8326a5437504c517c4b56716c9d98fac0028c2acc7ca47d70ae" +checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" dependencies = [ "async-trait", "axum-core", @@ -227,19 +227,21 @@ dependencies = [ [[package]] name = "axum-extra" -version = "0.9.4" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73c3220b188aea709cf1b6c5f9b01c3bd936bb08bd2b5184a12b35ac8131b1f9" +checksum = "c794b30c904f0a1c2fb7740f7df7f7972dfaa14ef6f57cb6178dc63e5dca2f04" dependencies = [ "axum", "axum-core", "bytes", + "fastrand", "futures-util", "headers", "http", "http-body", "http-body-util", "mime", + "multer", "pin-project-lite", "serde", "tokio", @@ -247,7 +249,6 @@ dependencies = [ "tower 0.5.1", "tower-layer", "tower-service", - "tracing", ] [[package]] @@ -353,9 +354,9 @@ dependencies = [ [[package]] name = "blake3" -version = "1.5.4" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" dependencies = [ "arrayref", "arrayvec", @@ -425,9 +426,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.21" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" +checksum = "3135e7ec2ef7b10c6ed8950f0f792ed96ee093fa088608f1c76e569722700c84" dependencies = [ "clap_builder", "clap_derive", @@ -435,9 +436,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.21" +version = "4.5.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" +checksum = "30582fc632330df2bd26877bde0c1f4470d57c582bbc070376afcd04d8cb4838" dependencies = [ "anstream", "anstyle", @@ -459,9 +460,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "cobs" @@ -1068,7 +1069,25 @@ dependencies = [ "bitflags", "byteorder", "heed-traits", - "heed-types", + "heed-types 0.20.1", + "libc", + "lmdb-master-sys", + "once_cell", + "page_size", + "synchronoise", + "url", +] + +[[package]] +name = "heed" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd54745cfacb7b97dee45e8fdb91814b62bccddb481debb7de0f9ee6b7bf5b43" +dependencies = [ + "bitflags", + "byteorder", + "heed-traits", + "heed-types 0.21.0", "libc", "lmdb-master-sys", "once_cell", @@ -1089,6 +1108,16 @@ name = "heed-types" version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d3f528b053a6d700b2734eabcd0fd49cb8230647aa72958467527b0b7917114" +dependencies = [ + "byteorder", + "heed-traits", +] + +[[package]] +name = "heed-types" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c255bdf46e07fb840d120a36dcc81f385140d7191c76a7391672675c01a55d" dependencies = [ "bincode", "byteorder", @@ -1407,9 +1436,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "js-sys" -version = "0.3.74" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" dependencies = [ "once_cell", "wasm-bindgen", @@ -1505,7 +1534,7 @@ dependencies = [ "serde_bencode", "serde_bytes", "sha1_smol", - "thiserror 2.0.3", + "thiserror 2.0.6", "tracing", ] @@ -1557,6 +1586,23 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "multer" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b" +dependencies = [ + "bytes", + "encoding_rs", + "futures-util", + "http", + "httparse", + "memchr", + "mime", + "spin", + "version_check", +] + [[package]] name = "nanorand" version = "0.7.0" @@ -1803,7 +1849,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkarr" version = "3.0.0" -source = "git+https://github.com/Pubky/pkarr?branch=v3#7b3d13472639699a68416629e126de069836cc33" +source = "git+https://github.com/Pubky/pkarr?branch=v4#caaf12b437b952cae3e189afc035e35815933eae" dependencies = [ "base32", "byteorder", @@ -1816,12 +1862,12 @@ dependencies = [ "futures-lite", "genawaiter", "getrandom", - "heed", + "heed 0.20.5", "js-sys", - "libc", "lru", "mainline", "once_cell", + "page_size", "pubky-timestamp", "rand", "reqwest", @@ -1831,7 +1877,7 @@ dependencies = [ "serde", "sha1_smol", "simple-dns", - "thiserror 2.0.3", + "thiserror 2.0.6", "tokio", "tracing", "wasm-bindgen-futures", @@ -1866,9 +1912,9 @@ dependencies = [ [[package]] name = "postcard" -version = "1.0.10" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f7f0a8d620d71c457dd1d47df76bb18960378da56af4527aaa10f515eee732e" +checksum = "170a2601f67cc9dba8edd8c4870b15f71a6a2dc196daec8c83f72b59dff628a8" dependencies = [ "cobs", "embedded-io 0.4.0", @@ -1922,7 +1968,7 @@ dependencies = [ "pubky-common", "pubky-homeserver", "reqwest", - "thiserror 1.0.69", + "thiserror 2.0.6", "tokio", "tracing", "url", @@ -1947,7 +1993,7 @@ dependencies = [ "pubky-timestamp", "rand", "serde", - "thiserror 1.0.69", + "thiserror 2.0.6", ] [[package]] @@ -1964,10 +2010,10 @@ dependencies = [ "dirs-next", "flume", "futures-util", - "heed", + "heed 0.21.0", "hex", "httpdate", - "libc", + "page_size", "pkarr", "postcard", "pubky-common", @@ -2020,7 +2066,7 @@ dependencies = [ "rustc-hash", "rustls", "socket2", - "thiserror 2.0.3", + "thiserror 2.0.6", "tokio", "tracing", ] @@ -2039,7 +2085,7 @@ dependencies = [ "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.3", + "thiserror 2.0.6", "tinyvec", "tracing", "web-time", @@ -2398,9 +2444,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] @@ -2426,9 +2472,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", @@ -2437,9 +2483,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.132" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -2707,11 +2753,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.3" +version = "2.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +checksum = "8fec2a1820ebd077e2b90c4df007bebf344cd394098a13c563957d0afc83ea47" dependencies = [ - "thiserror-impl 2.0.3", + "thiserror-impl 2.0.6", ] [[package]] @@ -2727,9 +2773,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.3" +version = "2.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +checksum = "d65750cab40f4ff1929fb1ba509e9914eb756131cef4210da8d5d700d26f6312" dependencies = [ "proc-macro2", "quote", @@ -2804,9 +2850,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.41.1" +version = "1.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" +checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" dependencies = [ "backtrace", "bytes", @@ -2949,15 +2995,14 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.5.2" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +checksum = "403fa3b783d4b626a8ad51d766ab03cb6d2dbfc46b1c5d4448395e6628dc9697" dependencies = [ "bitflags", "bytes", "http", "http-body", - "http-body-util", "pin-project-lite", "tower-layer", "tower-service", @@ -3022,9 +3067,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -3074,9 +3119,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.3" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -3136,9 +3181,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" dependencies = [ "cfg-if", "once_cell", @@ -3147,13 +3192,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", "syn", @@ -3162,9 +3206,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.47" +version = "0.4.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfaf8f50e5f293737ee323940c7d8b08a66a95a419223d9f41610ca08b0833d" +checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" dependencies = [ "cfg-if", "js-sys", @@ -3175,9 +3219,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3185,9 +3229,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", @@ -3198,15 +3242,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "web-sys" -version = "0.3.74" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a98bc3c33f0fe7e59ad7cd041b89034fa82a7c2d4365ca538dda6cdaf513863c" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index b78e4d9..ff0f69b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ resolver = "2" [workspace.dependencies] -pkarr = { git = "https://github.com/Pubky/pkarr", branch = "v3", package = "pkarr", features = ["serde"] } +pkarr = { git = "https://github.com/Pubky/pkarr", branch = "v4", package = "pkarr" } [profile.release] lto = true diff --git a/pubky-common/Cargo.toml b/pubky-common/Cargo.toml index 1b8909f..9c0469e 100644 --- a/pubky-common/Cargo.toml +++ b/pubky-common/Cargo.toml @@ -9,22 +9,22 @@ repository = "https://github.com/pubky/pubky-core" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -base32 = "0.5.0" -blake3 = "1.5.1" +base32 = "0.5.1" +blake3 = "1.5.5" ed25519-dalek = { version = "2.1.1", features = ["serde"] } -once_cell = "1.19.0" +once_cell = "1.20.2" rand = "0.8.5" -thiserror = "1.0.60" -postcard = { version = "1.0.8", features = ["alloc"] } +thiserror = "2.0.6" +postcard = { version = "1.1.1", features = ["alloc"] } crypto_secretbox = { version = "0.1.1", features = ["std"] } argon2 = { version = "0.5.3", features = ["std"] } pubky-timestamp = { version = "0.2.0", features = ["full"] } -serde = { version = "1.0.213", features = ["derive"] } +serde = { version = "1.0.216", features = ["derive"] } pkarr = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -js-sys = "0.3.69" +js-sys = "0.3.76" [dev-dependencies] -postcard = "1.0.8" +postcard = "1.1.1" diff --git a/pubky-homeserver/Cargo.toml b/pubky-homeserver/Cargo.toml index ed8c984..b3050e8 100644 --- a/pubky-homeserver/Cargo.toml +++ b/pubky-homeserver/Cargo.toml @@ -4,30 +4,30 @@ version = "0.1.0" edition = "2021" [dependencies] -anyhow = "1.0.82" -axum = { version = "0.7.5", features = ["macros"] } -axum-extra = { version = "0.9.3", features = ["typed-header", "async-read-body"] } +anyhow = "1.0.94" +axum = { version = "0.7.9", features = ["macros"] } +axum-extra = { version = "0.9.6", features = ["typed-header", "async-read-body"] } base32 = "0.5.1" -bytes = "^1.7.1" -clap = { version = "4.5.11", features = ["derive"] } +bytes = "^1.9.0" +clap = { version = "4.5.23", features = ["derive"] } dirs-next = "2.0.0" -flume = "0.11.0" -futures-util = "0.3.30" -heed = "0.20.3" +flume = "0.11.1" +futures-util = "0.3.31" +heed = "0.21.0" hex = "0.4.3" httpdate = "1.0.3" -libc = "0.2.159" -postcard = { version = "1.0.8", features = ["alloc"] } +postcard = { version = "1.1.1", features = ["alloc"] } pkarr = { workspace = true } pubky-common = { version = "0.1.0", path = "../pubky-common" } -serde = { version = "1.0.213", features = ["derive"] } -tokio = { version = "1.37.0", features = ["full"] } +serde = { version = "1.0.216", features = ["derive"] } +tokio = { version = "1.42.0", features = ["full"] } toml = "0.8.19" tower-cookies = "0.10.0" -tower-http = { version = "0.5.2", features = ["cors", "trace"] } -tracing = "0.1.40" -tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } -url = "2.5.2" +tower-http = { version = "0.6.2", features = ["cors", "trace"] } +tracing = "0.1.41" +tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } +url = "2.5.4" axum-server = { version = "0.7.1", features = ["tls-rustls-no-provider"] } tower = "0.5.1" +page_size = "0.6.0" diff --git a/pubky/Cargo.toml b/pubky/Cargo.toml index 91c038b..6dc5193 100644 --- a/pubky/Cargo.toml +++ b/pubky/Cargo.toml @@ -11,38 +11,38 @@ keywords = ["web", "dht", "dns", "decentralized", "identity"] crate-type = ["cdylib", "rlib"] [dependencies] -thiserror = "1.0.62" -wasm-bindgen = "0.2.92" -url = "2.5.2" -bytes = "^1.7.1" +thiserror = "2.0.6" +wasm-bindgen = "0.2.99" +url = "2.5.4" +bytes = "^1.9.0" base64 = "0.22.1" pkarr = { workspace = true } pubky-common = { version = "0.1.0", path = "../pubky-common" } cookie = "0.18.1" -tracing = "0.1.40" +tracing = "0.1.41" cookie_store = { version = "0.21.1", default-features = false } -anyhow = "1.0.93" +anyhow = "1.0.94" # Native dependencies [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -reqwest = { version = "0.12.5", features = ["cookies", "rustls-tls"], default-features = false } -tokio = { version = "1.37.0", features = ["full"] } +reqwest = { version = "0.12.9", features = ["cookies", "rustls-tls"], default-features = false } +tokio = { version = "1.42.0", features = ["full"] } # Wasm dependencies [target.'cfg(target_arch = "wasm32")'.dependencies] -reqwest = { version = "0.12.5", default-features = false } +reqwest = { version = "0.12.9", default-features = false } futures-lite = { version = "2.5.0", default-features = false } -wasm-bindgen = "0.2.92" -wasm-bindgen-futures = "0.4.42" +wasm-bindgen = "0.2.99" +wasm-bindgen-futures = "0.4.49" -js-sys = "0.3.69" -web-sys = "0.3.70" +js-sys = "0.3.76" +web-sys = "0.3.76" [dev-dependencies] -anyhow = "1.0.93" +anyhow = "1.0.94" pubky-homeserver = { path = "../pubky-homeserver" } -tokio = "1.37.0" +tokio = "1.42.0" [package.metadata.docs.rs] all-features = true