From 27a5b5eb8a7cc00c009f236002c061e61afce91c Mon Sep 17 00:00:00 2001 From: mridul Date: Thu, 4 Jul 2024 20:45:55 +0530 Subject: [PATCH 01/12] dependencies upgrade and fmt-debug fix --- Cargo.lock | 440 ++++++++++++---------------- mbedtls-platform-support/Cargo.toml | 6 + mbedtls-sys/Cargo.toml | 7 + mbedtls/Cargo.toml | 27 +- mbedtls/src/x509/mod.rs | 1 + 5 files changed, 215 insertions(+), 266 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 017c5735b..edd4916f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,21 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "android-tzdata" +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 = "anes" version = "0.1.6" @@ -31,33 +46,17 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4655ae1a7b0cdf149156f780c5bf3f1352bc53cbd9e0a361a7ef7b22947e965" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] -[[package]] -name = "autocfg" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875" - [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - [[package]] name = "bindgen" version = "0.65.1" @@ -69,23 +68,23 @@ dependencies = [ "clang-sys", "lazy_static", "lazycell", - "log 0.4.8", + "log", "peeking_take_while", "prettyplease", - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "regex", "rustc-hash", "shlex", - "syn 2.0.32", + "syn 2.0.68", "which", ] [[package]] name = "bit-vec" -version = "0.5.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f59bbe95d4e52a6398ec21238d31577f2b28a9d86807f06ca59d191d8440d0bb" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" @@ -95,9 +94,9 @@ checksum = "8a606a02debe2813760609f57a64a2ffd27d9fdf5b2f133eaca0b248dd92cdd2" [[package]] name = "bitflags" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "block-padding" @@ -173,14 +172,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.9" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8493056968583b0193c1bb04d6f7684586f3726992d6c573261941a895dbd68" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ - "libc", - "num-integer", + "android-tzdata", + "iana-time-zone", + "js-sys", "num-traits", - "time", + "wasm-bindgen", + "windows-targets 0.52.0", ] [[package]] @@ -265,6 +266,12 @@ dependencies = [ "cc", ] +[[package]] +name = "core-foundation-sys" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" + [[package]] name = "criterion" version = "0.5.1" @@ -369,6 +376,12 @@ dependencies = [ "libc", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "fuchsia-cprng" version = "0.1.1" @@ -429,8 +442,8 @@ version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eb14ed937631bd8b8b8977f2c198443447a8355b6e3ca599f38c975e5a963b6" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] @@ -471,7 +484,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", - "version_check 0.9.2", + "version_check", ] [[package]] @@ -520,40 +533,83 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] + [[package]] name = "httparse" -version = "1.3.4" +version = "1.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" + +[[package]] +name = "httpdate" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.10.16" +version = "0.14.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273" +checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" dependencies = [ - "base64", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http", + "http-body", "httparse", - "language-tags", - "log 0.3.9", - "mime", - "num_cpus", - "time", - "traitobject", - "typeable", - "unicase", - "url", + "httpdate", + "itoa", + "pin-project-lite", + "tokio", + "tower-service", + "tracing", + "want", ] [[package]] -name = "idna" -version = "0.1.5" +name = "iana-time-zone" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[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]] @@ -601,12 +657,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "language-tags" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" - [[package]] name = "lazy_static" version = "1.4.0" @@ -653,15 +703,6 @@ version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" -[[package]] -name = "log" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" -dependencies = [ - "log 0.4.8", -] - [[package]] name = "log" version = "0.4.8" @@ -683,7 +724,7 @@ version = "0.12.3" dependencies = [ "async-stream", "bit-vec", - "bitflags 1.2.0", + "bitflags 2.6.0", "byteorder", "cbc", "cc", @@ -733,7 +774,7 @@ dependencies = [ "lazy_static", "libc", "libz-sys", - "quote 1.0.33", + "quote", "syn 1.0.64", ] @@ -743,15 +784,6 @@ version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" -[[package]] -name = "mime" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" -dependencies = [ - "log 0.3.9", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -765,7 +797,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" dependencies = [ "libc", - "log 0.4.8", + "log", "miow", "ntapi", "winapi", @@ -801,22 +833,21 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.2.4" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "343b3df15c945a59e72aae31e89a7cfc9e11850e96d4fde6fed5e3c7c8d9c887" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ - "autocfg 0.1.6", + "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-integer" -version = "0.1.41" +version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ - "autocfg 0.1.6", "num-traits", ] @@ -826,7 +857,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ - "autocfg 1.1.0", + "autocfg", ] [[package]] @@ -857,12 +888,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" -[[package]] -name = "percent-encoding" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" - [[package]] name = "pin-project-lite" version = "0.2.9" @@ -915,44 +940,26 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ - "proc-macro2 1.0.66", - "syn 2.0.32", -] - -[[package]] -name = "proc-macro2" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" -dependencies = [ - "unicode-xid 0.1.0", + "proc-macro2", + "syn 2.0.68", ] [[package]] name = "proc-macro2" -version = "1.0.66" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" -dependencies = [ - "proc-macro2 0.4.30", -] - -[[package]] -name = "quote" -version = "1.0.33" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ - "proc-macro2 1.0.66", + "proc-macro2", ] [[package]] @@ -1021,12 +1028,6 @@ dependencies = [ "rand_core 0.3.1", ] -[[package]] -name = "redox_syscall" -version = "0.1.56" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" - [[package]] name = "regex" version = "1.8.4" @@ -1072,7 +1073,7 @@ version = "0.38.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" dependencies = [ - "bitflags 2.4.0", + "bitflags 2.6.0", "errno", "libc", "linux-raw-sys", @@ -1085,12 +1086,6 @@ version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - [[package]] name = "same-file" version = "1.0.6" @@ -1108,9 +1103,9 @@ checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" [[package]] name = "serde" -version = "1.0.101" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9796c9b7ba2ffe7a9ce53c2287dfc48080f4b2b362fcc245a259b3a7201119dd" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] @@ -1137,13 +1132,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.70" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3525a779832b08693031b8ecfb0de81cd71cfd3812088fafe9a7496789572124" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "syn 0.14.9", + "proc-macro2", + "quote", + "syn 2.0.68", ] [[package]] @@ -1169,7 +1164,7 @@ version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" dependencies = [ - "autocfg 1.1.0", + "autocfg", ] [[package]] @@ -1178,50 +1173,28 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" -[[package]] -name = "syn" -version = "0.14.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261ae9ecaa397c42b960649561949d69311f08eeaea86a65696e6e46517cf741" -dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "unicode-xid 0.1.0", -] - [[package]] name = "syn" version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fd9d1e9976102a03c542daa2eff1b43f9d72306342f3f8b3ed5fb8908195d6f" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", - "unicode-xid 0.2.1", + "proc-macro2", + "quote", + "unicode-xid", ] [[package]] name = "syn" -version = "2.0.32" +version = "2.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239814284fd6f1a4ffe4ca893952cdd93c224b6a1571c9a9eadd670295c0c9e2" +checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "unicode-ident", ] -[[package]] -name = "time" -version = "0.1.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" -dependencies = [ - "libc", - "redox_syscall", - "winapi", -] - [[package]] name = "tinytemplate" version = "1.2.1" @@ -1232,21 +1205,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "tinyvec" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf8dbc19eb42fba10e8feaaec282fb50e2c14b2726d6301dbfeed0f73306a6f" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - [[package]] name = "tokio" version = "1.16.1" @@ -1269,11 +1227,17 @@ version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] +[[package]] +name = "tower-service" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" + [[package]] name = "tracing" version = "0.1.36" @@ -1292,8 +1256,8 @@ version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] @@ -1307,16 +1271,10 @@ dependencies = [ ] [[package]] -name = "traitobject" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" - -[[package]] -name = "typeable" -version = "0.1.2" +name = "try-lock" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" @@ -1324,74 +1282,24 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" -[[package]] -name = "unicase" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" -dependencies = [ - "version_check 0.1.5", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -dependencies = [ - "matches", -] - [[package]] name = "unicode-ident" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" -[[package]] -name = "unicode-normalization" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" -dependencies = [ - "tinyvec", -] - -[[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" -[[package]] -name = "url" -version = "1.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" -dependencies = [ - "idna", - "matches", - "percent-encoding", -] - [[package]] name = "vcpkg" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95" -[[package]] -name = "version_check" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" - [[package]] name = "version_check" version = "0.9.2" @@ -1408,6 +1316,15 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + [[package]] name = "wasm-bindgen" version = "0.2.90" @@ -1425,11 +1342,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" dependencies = [ "bumpalo", - "log 0.4.8", + "log", "once_cell", - "proc-macro2 1.0.66", - "quote 1.0.33", - "syn 2.0.32", + "proc-macro2", + "quote", + "syn 2.0.68", "wasm-bindgen-shared", ] @@ -1439,7 +1356,7 @@ version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999" dependencies = [ - "quote 1.0.33", + "quote", "wasm-bindgen-macro-support", ] @@ -1449,9 +1366,9 @@ version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", - "syn 2.0.32", + "proc-macro2", + "quote", + "syn 2.0.68", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -1515,6 +1432,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-sys" version = "0.48.0" @@ -1649,9 +1575,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "yasna" -version = "0.2.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79af3189e6b0484c9fd54208f8eeb8818cadee00ec81438b67a64c8e6f2f3694" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ "bit-vec", "num-bigint", diff --git a/mbedtls-platform-support/Cargo.toml b/mbedtls-platform-support/Cargo.toml index 68f3748c3..2e5087f53 100644 --- a/mbedtls-platform-support/Cargo.toml +++ b/mbedtls-platform-support/Cargo.toml @@ -44,3 +44,9 @@ custom_gmtime_r = ["mbedtls-sys-auto/custom_gmtime_r", "chrono"] custom_time = ["mbedtls-sys-auto/custom_time", "chrono"] force_aesni_support = ["mbedtls-sys-auto/custom_has_support","mbedtls-sys-auto/aes_alt", "aesni"] aesni = ["mbedtls-sys-auto/aesni"] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(sys_threading_component, values("custom"))', + 'cfg(sys_time_component, values("custom"))', +] } \ No newline at end of file diff --git a/mbedtls-sys/Cargo.toml b/mbedtls-sys/Cargo.toml index 1dd386db2..852afddda 100644 --- a/mbedtls-sys/Cargo.toml +++ b/mbedtls-sys/Cargo.toml @@ -72,3 +72,10 @@ custom_time = ["time"] custom_gmtime_r = ["time"] # deprecated features, these don't do anything anymore, can be removed on major version bump pthread = ["threading"] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(std_component, values("fs"))', + 'cfg(threading_component, values("pthread"))', + 'cfg(time_component, values("custom", "libc"))', +] } diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 512eb3d7d..bbe9b3212 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -23,23 +23,23 @@ keywords = ["MbedTLS", "mbed", "TLS", "SSL", "cryptography"] features = ["x509", "ssl"] [dependencies] -bitflags = "1" -serde = { version = "1.0.7", default-features = false, features = ["alloc"] } -serde_derive = "1.0.7" +bitflags = "2.6" +serde = { version = "1.0.203", default-features = false, features = ["alloc"] } +serde_derive = "1.0.203" byteorder = { version = "1.0.0", default-features = false } -yasna = { version = "0.2", optional = true, features = [ +yasna = { version = "0.5", optional = true, features = [ "num-bigint", "bit-vec", ] } -num-bigint = { version = "0.2", optional = true } -bit-vec = { version = "0.5", optional = true } +num-bigint = { version = "0.4", optional = true } +bit-vec = { version = "0.6", optional = true } cbc = { version = "0.1.2", optional = true } rc2 = { version = "0.8.1", optional = true } cfg-if = "1.0.0" tokio = { version = "1.16.1", optional = true } -chrono = { version = "0.4", optional = true } +chrono = { version = "0.4.38", optional = true } -mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2.25.0", default-features = false, features = [ +mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2", default-features = false, features = [ "trusted_cert_callback", "threading", ] } @@ -55,7 +55,7 @@ rand = "0.4.0" serde_cbor = "0.6" hex = "0.3" matches = "0.1.8" -hyper = { version = "0.10.16", default-features = false } +hyper = { version = "0.14", default-features = false } async-stream = "0.3.0" futures = "0.3" tracing = "0.1" @@ -107,6 +107,15 @@ legacy_protocols = ["mbedtls-sys-auto/legacy_protocols", "ssl"] async = ["std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"] async-rt = ["async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(nightly)', + 'cfg(sys_threading_component, values("custom"))', + 'cfg(sys_time_component, values("custom"))', + 'cfg(sys_std_component, values("entropy"))', + 'cfg(time_component, values("custom", "libc"))', +] } + [[example]] name = "client" required-features = ["std", "ssl"] diff --git a/mbedtls/src/x509/mod.rs b/mbedtls/src/x509/mod.rs index 699bbbd86..dde17a703 100644 --- a/mbedtls/src/x509/mod.rs +++ b/mbedtls/src/x509/mod.rs @@ -45,6 +45,7 @@ bitflags! { } bitflags! { + #[derive(Copy, Clone, Debug)] pub struct VerifyError: u32 { const CERT_BAD_KEY = X509_BADCERT_BAD_KEY as u32; const CERT_BAD_MD = X509_BADCERT_BAD_MD as u32; From 2f529fdca49294e43e1914ca94ef65295429391b Mon Sep 17 00:00:00 2001 From: mridul Date: Tue, 27 Aug 2024 15:07:54 +0530 Subject: [PATCH 02/12] libc update --- mbedtls-sys/Cargo.toml | 12 ++++++------ mbedtls/Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mbedtls-sys/Cargo.toml b/mbedtls-sys/Cargo.toml index 852afddda..94ea52110 100644 --- a/mbedtls-sys/Cargo.toml +++ b/mbedtls-sys/Cargo.toml @@ -26,19 +26,19 @@ cfg-if = "1.0.0" libz-sys = { version = "1.0.0", optional = true } # deprecated dependency, this don't do anything anymore, but still needed to # provide the `libc` feature, can be removed on major version bump -libc = { version = "0.2.0", optional = true } +libc = { version = "0.2.155", optional = true } [target.'cfg(unix)'.dependencies] -libc = { version = "0.2.0" } +libc = { version = "0.2.155" } [target.'cfg(windows)'.dependencies] -libc = { version = "0.2.0" } +libc = { version = "0.2.155" } [build-dependencies] -bindgen = { version = "0.65.1" } -cmake = "0.1.17" +bindgen = { version = "0.68.1" } +cmake = "0.1.50" cc = "1.0.45" -lazy_static = "1.4" +lazy_static = "1.5" syn = { version = "1.0.64", features = ["full", "visit"] } quote = "1.0.9" diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index bbe9b3212..291cf49a9 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -50,7 +50,7 @@ mbedtls-platform-support = { version = "0.1", path = "../mbedtls-platform-suppor rs-libc = "0.2.0" [dev-dependencies] -libc = "0.2.0" +libc = "0.2.155" rand = "0.4.0" serde_cbor = "0.6" hex = "0.3" From d0a403e3366f247cf0ac0a22707d640af55d4f39 Mon Sep 17 00:00:00 2001 From: mridul Date: Tue, 27 Aug 2024 15:10:48 +0530 Subject: [PATCH 03/12] mbedtls-sys update --- mbedtls-platform-support/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbedtls-platform-support/Cargo.toml b/mbedtls-platform-support/Cargo.toml index 2e5087f53..93fd26313 100644 --- a/mbedtls-platform-support/Cargo.toml +++ b/mbedtls-platform-support/Cargo.toml @@ -27,7 +27,7 @@ chrono = { version = "0.4", optional = true } chrono = "0.4" [dependencies.mbedtls-sys-auto] -version = "2.25.0" +version = "2" default-features = false features = ["threading", "custom_printf"] path = "../mbedtls-sys" From 2aba6567d0cc1363150dde10a8c2aee19145420c Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Wed, 28 Aug 2024 14:56:14 -0700 Subject: [PATCH 04/12] update and fix CI --- .github/workflows/test.yml | 8 +++++++- ci.sh | 16 +++++++-------- ci_tools.sh | 42 +------------------------------------- 3 files changed, 16 insertions(+), 50 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0e156847..d3bfce37d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,6 +86,12 @@ jobs: toolchain: ${{ matrix.rust }} targets: ${{ matrix.target }} + - name: Install cargo-nextest + uses: taiki-e/install-action@v2 + with: + tool: nextest@0.9.52 + checksum: true + - name: Run tests run: | # Set LIBCLANG_PATH for bindgen to access clang library under windows-2019 @@ -96,7 +102,7 @@ jobs: ./ci_tools.sh ./ci.sh env: - TRAVIS_RUST_VERSION: ${{ matrix.rust }} + RUST_VERSION: ${{ matrix.rust }} TARGET: ${{ matrix.target }} MATRIX_OS: ${{ matrix.os }} ZLIB_INSTALLED: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }} diff --git a/ci.sh b/ci.sh index f1f7d6439..e0dce1d93 100755 --- a/ci.sh +++ b/ci.sh @@ -4,8 +4,8 @@ cd "$(dirname "$0")" repo_root=$(readlink -f $(dirname "${BASH_SOURCE[0]}")) -if [ -z $TRAVIS_RUST_VERSION ]; then - echo "Expected TRAVIS_RUST_VERSION to be set in env" +if [ -z $RUST_VERSION ]; then + echo "Expected RUST_VERSION to be set in env" exit 1 fi @@ -17,11 +17,11 @@ export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/tmp/aarch64-linux-musl-cr export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER=qemu-aarch64 cd "${repo_root}/mbedtls" -case "$TRAVIS_RUST_VERSION" in +case "$RUST_VERSION" in stable|beta|nightly) # Install the rust toolchain - rustup default $TRAVIS_RUST_VERSION - rustup target add --toolchain $TRAVIS_RUST_VERSION $TARGET + rustup default $RUST_VERSION + rustup target add --toolchain $RUST_VERSION $TARGET printenv for FEAT in "" "x509," "ssl,"; do @@ -44,7 +44,7 @@ case "$TRAVIS_RUST_VERSION" in cargo nextest run --no-default-features --features "$FEAT"no_std_deps --target $TARGET fi else - cargo +$TRAVIS_RUST_VERSION test --no-run --features "$FEAT" --target=$TARGET + cargo +$RUST_VERSION test --no-run --features "$FEAT" --target=$TARGET fi done @@ -71,8 +71,8 @@ case "$TRAVIS_RUST_VERSION" in fi ;; *) - # Default case: If TRAVIS_RUST_VERSION does not match any of the above - echo "Unknown version $TRAVIS_RUST_VERSION" + # Default case: If RUST_VERSION does not match any of the above + echo "Unknown version $RUST_VERSION" exit 1 ;; esac diff --git a/ci_tools.sh b/ci_tools.sh index b74b41624..d9d728ac2 100755 --- a/ci_tools.sh +++ b/ci_tools.sh @@ -15,7 +15,7 @@ check_sha512() { Linux) sha512sum -c <<< "$hash *$file" ;; - Darwin) + Darwin*) shasum -a 512 -c <<< "$hash *$file" ;; MINGW64_NT-*) @@ -28,25 +28,6 @@ check_sha512() { esac } -# function for downloading pre-built `cargo-nextest` on various platforms -download_cargo_nextest() { - local platform="$1" - local cargo_nextest_hash="$2" - local url="$3" - echo "Check if need to download pre-built $platform 'cargo-nextest'" - if ! check_sha512 "${cargo_nextest_hash}" "${CARGO_HOME:-$HOME/.cargo}/bin/cargo-nextest"; then - case $platform in - MINGW64-*) - curl -LsSf "$url" -o temp.zip && unzip -d "${CARGO_HOME:-$HOME/.cargo}/bin" temp.zip && rm temp.zip - ;; - *) - curl -LsSf "$url" | tar zxf - -C "${CARGO_HOME:-$HOME/.cargo}/bin" - ;; - esac - check_sha512 "${cargo_nextest_hash}" "${CARGO_HOME:-$HOME/.cargo}/bin/cargo-nextest" - fi -} - aarch64_cross_toolchain_hash=c8ee0e7fd58f5ec6811e3cec5fcdd8fc47cb2b49fb50e9d7717696ddb69c812547b5f389558f62dfbf9db7d6ad808a5a515cc466b8ea3e9ab3daeb20ba1adf33 # save to directory that will be cached aarch64_cross_toolchain_save_path=${repo_root}/target/aarch64-linux-musl-cross.tgz @@ -59,24 +40,3 @@ if [ "$TARGET" == "aarch64-unknown-linux-musl" ]; then tar -xf ${aarch64_cross_toolchain_save_path} -C /tmp; fi -# download pre-built `cargo-nextest` -kernel=$(uname) -architecture=$(uname -m) -case "$kernel-$architecture" in - Linux-x86_64 | Linux-amd64) - download_cargo_nextest "amd64" "d22ce5799f3056807fd0cd8223a290c7153a5f084d5ab931fce755c2cabd33f79c0f75542eb724fe07a7ca083f415ec1f84edc46584b06df43d97a0ff91018da" "https://get.nexte.st/0.9.52/linux" - ;; - Linux-arm64) - download_cargo_nextest "arm64" "cff3297c84560de8693e7f887fcf6cf33ab0036e27a9debf2b0a0832094555335f34dc30d0f9d1128ce8472dcb4594a3cf33be2357b19dcc94269b58090cc1a9" "https://get.nexte.st/0.9.52/linux-arm" - ;; - Darwin-x86_64) - download_cargo_nextest "Darwin-amd64" "0bb8b77ce019de3d06ee6b7382d830ed67309f187781e0de3866a0635879b494c7db48d55eee7553cfaa0bfca59abd8f8540a6d81ed703f06f9c81514d20073d" "https://get.nexte.st/0.9.52/mac" - ;; - MINGW64_NT-*-x86_64) - download_cargo_nextest "MINGW64-amd64" "3ffd504a4ef0b4b5e988457e6c525e62bd030d46b8f303f1c4e83a9a8ba89aef34bb239e23f391d1dddb75bea6ff074499153b2c71b06338a05d74916408de9c" "https://get.nexte.st/0.9.52/windows" - ;; - *) - echo "Unknown platform '$kernel-$architecture'" - exit 1 - ;; -esac From 4ad68d89adda391bfb6e2a565ecf96dd72a5ef7e Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Wed, 28 Aug 2024 14:56:24 -0700 Subject: [PATCH 05/12] add script for running Ci locally --- ci_local.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 ci_local.sh diff --git a/ci_local.sh b/ci_local.sh new file mode 100755 index 000000000..d4cd9b1b7 --- /dev/null +++ b/ci_local.sh @@ -0,0 +1,41 @@ +#!/bin/bash +set -e +cd "$(dirname "$0")" + +# This script needs cargo-binstall installed +# Please check: https://github.com/cargo-bins/cargo-binstall + +cargo binstall cargo-nextest@0.9.52 --secure + +./ci_tools.sh + +# Array containing the configurations (rust and target) +# Please comment out other options if you do not want to test them +configs=( + "stable|x86_64-unknown-linux-gnu" + "stable|x86_64-fortanix-unknown-sgx" + "stable|aarch64-unknown-linux-musl" + "nightly|x86_64-unknown-linux-gnu" + "beta|x86_64-unknown-linux-gnu" +) + +# Path to the script to run +given_script="./ci.sh" + +# Iterate over each configuration +for config in "${configs[@]}"; do + # Split the configuration into rust and target using IFS (Internal Field Separator) + IFS='|' read -r rust target <<< "$config" + echo "Running $given_script with RUST_VERSION=$rust and TARGET=$target" + + # Export the variables to be used in the given script + export RUST_VERSION=$rust + export TARGET=$target + + # Run the given script with the set environment variables + $given_script + + echo "Finished running $given_script with RUST_VERSION=$rust and TARGET=$target" +done + + From cbe575dd0dafd6e671cea2351ac458bd15114e0b Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Wed, 28 Aug 2024 15:12:00 -0700 Subject: [PATCH 06/12] fix nightly warning about cfg lints --- mbedtls-platform-support/Cargo.toml | 6 ++++++ mbedtls-sys/Cargo.toml | 7 +++++++ mbedtls/Cargo.toml | 11 ++++++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/mbedtls-platform-support/Cargo.toml b/mbedtls-platform-support/Cargo.toml index 68f3748c3..fe5a962ba 100644 --- a/mbedtls-platform-support/Cargo.toml +++ b/mbedtls-platform-support/Cargo.toml @@ -44,3 +44,9 @@ custom_gmtime_r = ["mbedtls-sys-auto/custom_gmtime_r", "chrono"] custom_time = ["mbedtls-sys-auto/custom_time", "chrono"] force_aesni_support = ["mbedtls-sys-auto/custom_has_support","mbedtls-sys-auto/aes_alt", "aesni"] aesni = ["mbedtls-sys-auto/aesni"] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(sys_threading_component, values("custom"))', + 'cfg(sys_time_component, values("custom"))', +] } diff --git a/mbedtls-sys/Cargo.toml b/mbedtls-sys/Cargo.toml index 1dd386db2..852afddda 100644 --- a/mbedtls-sys/Cargo.toml +++ b/mbedtls-sys/Cargo.toml @@ -72,3 +72,10 @@ custom_time = ["time"] custom_gmtime_r = ["time"] # deprecated features, these don't do anything anymore, can be removed on major version bump pthread = ["threading"] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(std_component, values("fs"))', + 'cfg(threading_component, values("pthread"))', + 'cfg(time_component, values("custom", "libc"))', +] } diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 512eb3d7d..61b3068bd 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -150,4 +150,13 @@ harness = false [[bench]] name = "cipher" -harness = false \ No newline at end of file +harness = false + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(nightly)', + 'cfg(sys_threading_component, values("custom"))', + 'cfg(sys_time_component, values("custom"))', + 'cfg(sys_std_component, values("entropy", "net"))', + 'cfg(time_component, values("custom", "libc"))', +] } From 95fd7234c9e1d9bb6f22db837879c8c85862d68a Mon Sep 17 00:00:00 2001 From: mridul Date: Thu, 4 Jul 2024 20:45:55 +0530 Subject: [PATCH 07/12] dependencies upgrade and fmt-debug fix --- Cargo.lock | 440 +++++++++++++++++----------------------- mbedtls/Cargo.toml | 27 ++- mbedtls/src/x509/mod.rs | 1 + 3 files changed, 202 insertions(+), 266 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 017c5735b..edd4916f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,21 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "android-tzdata" +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 = "anes" version = "0.1.6" @@ -31,33 +46,17 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4655ae1a7b0cdf149156f780c5bf3f1352bc53cbd9e0a361a7ef7b22947e965" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] -[[package]] -name = "autocfg" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875" - [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - [[package]] name = "bindgen" version = "0.65.1" @@ -69,23 +68,23 @@ dependencies = [ "clang-sys", "lazy_static", "lazycell", - "log 0.4.8", + "log", "peeking_take_while", "prettyplease", - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "regex", "rustc-hash", "shlex", - "syn 2.0.32", + "syn 2.0.68", "which", ] [[package]] name = "bit-vec" -version = "0.5.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f59bbe95d4e52a6398ec21238d31577f2b28a9d86807f06ca59d191d8440d0bb" +checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" @@ -95,9 +94,9 @@ checksum = "8a606a02debe2813760609f57a64a2ffd27d9fdf5b2f133eaca0b248dd92cdd2" [[package]] name = "bitflags" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "block-padding" @@ -173,14 +172,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.9" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8493056968583b0193c1bb04d6f7684586f3726992d6c573261941a895dbd68" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ - "libc", - "num-integer", + "android-tzdata", + "iana-time-zone", + "js-sys", "num-traits", - "time", + "wasm-bindgen", + "windows-targets 0.52.0", ] [[package]] @@ -265,6 +266,12 @@ dependencies = [ "cc", ] +[[package]] +name = "core-foundation-sys" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" + [[package]] name = "criterion" version = "0.5.1" @@ -369,6 +376,12 @@ dependencies = [ "libc", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "fuchsia-cprng" version = "0.1.1" @@ -429,8 +442,8 @@ version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eb14ed937631bd8b8b8977f2c198443447a8355b6e3ca599f38c975e5a963b6" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] @@ -471,7 +484,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", - "version_check 0.9.2", + "version_check", ] [[package]] @@ -520,40 +533,83 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] + [[package]] name = "httparse" -version = "1.3.4" +version = "1.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" + +[[package]] +name = "httpdate" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.10.16" +version = "0.14.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273" +checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" dependencies = [ - "base64", + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "http", + "http-body", "httparse", - "language-tags", - "log 0.3.9", - "mime", - "num_cpus", - "time", - "traitobject", - "typeable", - "unicase", - "url", + "httpdate", + "itoa", + "pin-project-lite", + "tokio", + "tower-service", + "tracing", + "want", ] [[package]] -name = "idna" -version = "0.1.5" +name = "iana-time-zone" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[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]] @@ -601,12 +657,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "language-tags" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" - [[package]] name = "lazy_static" version = "1.4.0" @@ -653,15 +703,6 @@ version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" -[[package]] -name = "log" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" -dependencies = [ - "log 0.4.8", -] - [[package]] name = "log" version = "0.4.8" @@ -683,7 +724,7 @@ version = "0.12.3" dependencies = [ "async-stream", "bit-vec", - "bitflags 1.2.0", + "bitflags 2.6.0", "byteorder", "cbc", "cc", @@ -733,7 +774,7 @@ dependencies = [ "lazy_static", "libc", "libz-sys", - "quote 1.0.33", + "quote", "syn 1.0.64", ] @@ -743,15 +784,6 @@ version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" -[[package]] -name = "mime" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" -dependencies = [ - "log 0.3.9", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -765,7 +797,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" dependencies = [ "libc", - "log 0.4.8", + "log", "miow", "ntapi", "winapi", @@ -801,22 +833,21 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.2.4" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "343b3df15c945a59e72aae31e89a7cfc9e11850e96d4fde6fed5e3c7c8d9c887" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ - "autocfg 0.1.6", + "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-integer" -version = "0.1.41" +version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ - "autocfg 0.1.6", "num-traits", ] @@ -826,7 +857,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ - "autocfg 1.1.0", + "autocfg", ] [[package]] @@ -857,12 +888,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" -[[package]] -name = "percent-encoding" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" - [[package]] name = "pin-project-lite" version = "0.2.9" @@ -915,44 +940,26 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ - "proc-macro2 1.0.66", - "syn 2.0.32", -] - -[[package]] -name = "proc-macro2" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" -dependencies = [ - "unicode-xid 0.1.0", + "proc-macro2", + "syn 2.0.68", ] [[package]] name = "proc-macro2" -version = "1.0.66" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" -dependencies = [ - "proc-macro2 0.4.30", -] - -[[package]] -name = "quote" -version = "1.0.33" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ - "proc-macro2 1.0.66", + "proc-macro2", ] [[package]] @@ -1021,12 +1028,6 @@ dependencies = [ "rand_core 0.3.1", ] -[[package]] -name = "redox_syscall" -version = "0.1.56" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" - [[package]] name = "regex" version = "1.8.4" @@ -1072,7 +1073,7 @@ version = "0.38.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" dependencies = [ - "bitflags 2.4.0", + "bitflags 2.6.0", "errno", "libc", "linux-raw-sys", @@ -1085,12 +1086,6 @@ version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - [[package]] name = "same-file" version = "1.0.6" @@ -1108,9 +1103,9 @@ checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" [[package]] name = "serde" -version = "1.0.101" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9796c9b7ba2ffe7a9ce53c2287dfc48080f4b2b362fcc245a259b3a7201119dd" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] @@ -1137,13 +1132,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.70" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3525a779832b08693031b8ecfb0de81cd71cfd3812088fafe9a7496789572124" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "syn 0.14.9", + "proc-macro2", + "quote", + "syn 2.0.68", ] [[package]] @@ -1169,7 +1164,7 @@ version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" dependencies = [ - "autocfg 1.1.0", + "autocfg", ] [[package]] @@ -1178,50 +1173,28 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" -[[package]] -name = "syn" -version = "0.14.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261ae9ecaa397c42b960649561949d69311f08eeaea86a65696e6e46517cf741" -dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "unicode-xid 0.1.0", -] - [[package]] name = "syn" version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fd9d1e9976102a03c542daa2eff1b43f9d72306342f3f8b3ed5fb8908195d6f" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", - "unicode-xid 0.2.1", + "proc-macro2", + "quote", + "unicode-xid", ] [[package]] name = "syn" -version = "2.0.32" +version = "2.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239814284fd6f1a4ffe4ca893952cdd93c224b6a1571c9a9eadd670295c0c9e2" +checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "unicode-ident", ] -[[package]] -name = "time" -version = "0.1.42" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" -dependencies = [ - "libc", - "redox_syscall", - "winapi", -] - [[package]] name = "tinytemplate" version = "1.2.1" @@ -1232,21 +1205,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "tinyvec" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf8dbc19eb42fba10e8feaaec282fb50e2c14b2726d6301dbfeed0f73306a6f" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - [[package]] name = "tokio" version = "1.16.1" @@ -1269,11 +1227,17 @@ version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] +[[package]] +name = "tower-service" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" + [[package]] name = "tracing" version = "0.1.36" @@ -1292,8 +1256,8 @@ version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", + "proc-macro2", + "quote", "syn 1.0.64", ] @@ -1307,16 +1271,10 @@ dependencies = [ ] [[package]] -name = "traitobject" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" - -[[package]] -name = "typeable" -version = "0.1.2" +name = "try-lock" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" @@ -1324,74 +1282,24 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" -[[package]] -name = "unicase" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" -dependencies = [ - "version_check 0.1.5", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -dependencies = [ - "matches", -] - [[package]] name = "unicode-ident" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" -[[package]] -name = "unicode-normalization" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" -dependencies = [ - "tinyvec", -] - -[[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" -[[package]] -name = "url" -version = "1.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" -dependencies = [ - "idna", - "matches", - "percent-encoding", -] - [[package]] name = "vcpkg" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95" -[[package]] -name = "version_check" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" - [[package]] name = "version_check" version = "0.9.2" @@ -1408,6 +1316,15 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + [[package]] name = "wasm-bindgen" version = "0.2.90" @@ -1425,11 +1342,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" dependencies = [ "bumpalo", - "log 0.4.8", + "log", "once_cell", - "proc-macro2 1.0.66", - "quote 1.0.33", - "syn 2.0.32", + "proc-macro2", + "quote", + "syn 2.0.68", "wasm-bindgen-shared", ] @@ -1439,7 +1356,7 @@ version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999" dependencies = [ - "quote 1.0.33", + "quote", "wasm-bindgen-macro-support", ] @@ -1449,9 +1366,9 @@ version = "0.2.90" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ - "proc-macro2 1.0.66", - "quote 1.0.33", - "syn 2.0.32", + "proc-macro2", + "quote", + "syn 2.0.68", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -1515,6 +1432,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.0", +] + [[package]] name = "windows-sys" version = "0.48.0" @@ -1649,9 +1575,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "yasna" -version = "0.2.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79af3189e6b0484c9fd54208f8eeb8818cadee00ec81438b67a64c8e6f2f3694" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ "bit-vec", "num-bigint", diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 61b3068bd..345ae5a2c 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -23,23 +23,23 @@ keywords = ["MbedTLS", "mbed", "TLS", "SSL", "cryptography"] features = ["x509", "ssl"] [dependencies] -bitflags = "1" -serde = { version = "1.0.7", default-features = false, features = ["alloc"] } -serde_derive = "1.0.7" +bitflags = "2.6" +serde = { version = "1.0.203", default-features = false, features = ["alloc"] } +serde_derive = "1.0.203" byteorder = { version = "1.0.0", default-features = false } -yasna = { version = "0.2", optional = true, features = [ +yasna = { version = "0.5", optional = true, features = [ "num-bigint", "bit-vec", ] } -num-bigint = { version = "0.2", optional = true } -bit-vec = { version = "0.5", optional = true } +num-bigint = { version = "0.4", optional = true } +bit-vec = { version = "0.6", optional = true } cbc = { version = "0.1.2", optional = true } rc2 = { version = "0.8.1", optional = true } cfg-if = "1.0.0" tokio = { version = "1.16.1", optional = true } -chrono = { version = "0.4", optional = true } +chrono = { version = "0.4.38", optional = true } -mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2.25.0", default-features = false, features = [ +mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2", default-features = false, features = [ "trusted_cert_callback", "threading", ] } @@ -55,7 +55,7 @@ rand = "0.4.0" serde_cbor = "0.6" hex = "0.3" matches = "0.1.8" -hyper = { version = "0.10.16", default-features = false } +hyper = { version = "0.14", default-features = false } async-stream = "0.3.0" futures = "0.3" tracing = "0.1" @@ -107,6 +107,15 @@ legacy_protocols = ["mbedtls-sys-auto/legacy_protocols", "ssl"] async = ["std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"] async-rt = ["async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(nightly)', + 'cfg(sys_threading_component, values("custom"))', + 'cfg(sys_time_component, values("custom"))', + 'cfg(sys_std_component, values("entropy"))', + 'cfg(time_component, values("custom", "libc"))', +] } + [[example]] name = "client" required-features = ["std", "ssl"] diff --git a/mbedtls/src/x509/mod.rs b/mbedtls/src/x509/mod.rs index 699bbbd86..dde17a703 100644 --- a/mbedtls/src/x509/mod.rs +++ b/mbedtls/src/x509/mod.rs @@ -45,6 +45,7 @@ bitflags! { } bitflags! { + #[derive(Copy, Clone, Debug)] pub struct VerifyError: u32 { const CERT_BAD_KEY = X509_BADCERT_BAD_KEY as u32; const CERT_BAD_MD = X509_BADCERT_BAD_MD as u32; From b1eee8acf77e9bc8c8057c5e69e1a89b664f82c3 Mon Sep 17 00:00:00 2001 From: mridul Date: Tue, 27 Aug 2024 15:07:54 +0530 Subject: [PATCH 08/12] libc update --- mbedtls-sys/Cargo.toml | 12 ++++++------ mbedtls/Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mbedtls-sys/Cargo.toml b/mbedtls-sys/Cargo.toml index 852afddda..94ea52110 100644 --- a/mbedtls-sys/Cargo.toml +++ b/mbedtls-sys/Cargo.toml @@ -26,19 +26,19 @@ cfg-if = "1.0.0" libz-sys = { version = "1.0.0", optional = true } # deprecated dependency, this don't do anything anymore, but still needed to # provide the `libc` feature, can be removed on major version bump -libc = { version = "0.2.0", optional = true } +libc = { version = "0.2.155", optional = true } [target.'cfg(unix)'.dependencies] -libc = { version = "0.2.0" } +libc = { version = "0.2.155" } [target.'cfg(windows)'.dependencies] -libc = { version = "0.2.0" } +libc = { version = "0.2.155" } [build-dependencies] -bindgen = { version = "0.65.1" } -cmake = "0.1.17" +bindgen = { version = "0.68.1" } +cmake = "0.1.50" cc = "1.0.45" -lazy_static = "1.4" +lazy_static = "1.5" syn = { version = "1.0.64", features = ["full", "visit"] } quote = "1.0.9" diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 345ae5a2c..1805cbf44 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -50,7 +50,7 @@ mbedtls-platform-support = { version = "0.1", path = "../mbedtls-platform-suppor rs-libc = "0.2.0" [dev-dependencies] -libc = "0.2.0" +libc = "0.2.155" rand = "0.4.0" serde_cbor = "0.6" hex = "0.3" From 62dd0c715eb47ea683a6130ec7404763bd8bc465 Mon Sep 17 00:00:00 2001 From: mridul Date: Tue, 27 Aug 2024 15:10:48 +0530 Subject: [PATCH 09/12] mbedtls-sys update --- mbedtls-platform-support/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbedtls-platform-support/Cargo.toml b/mbedtls-platform-support/Cargo.toml index fe5a962ba..ca1fa2f5f 100644 --- a/mbedtls-platform-support/Cargo.toml +++ b/mbedtls-platform-support/Cargo.toml @@ -27,7 +27,7 @@ chrono = { version = "0.4", optional = true } chrono = "0.4" [dependencies.mbedtls-sys-auto] -version = "2.25.0" +version = "2" default-features = false features = ["threading", "custom_printf"] path = "../mbedtls-sys" From 4245e299795a72e29404be97607c131dc386d069 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Wed, 28 Aug 2024 16:35:24 -0700 Subject: [PATCH 10/12] revert version change of mbedtls-sys-auto --- Cargo.lock | 24 +++++++++--------------- mbedtls-platform-support/Cargo.toml | 2 +- mbedtls/Cargo.toml | 2 +- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index edd4916f8..6f53c1df0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,11 +59,11 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bindgen" -version = "0.65.1" +version = "0.68.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" +checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078" dependencies = [ - "bitflags 1.2.0", + "bitflags", "cexpr", "clang-sys", "lazy_static", @@ -86,12 +86,6 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" -[[package]] -name = "bitflags" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a606a02debe2813760609f57a64a2ffd27d9fdf5b2f133eaca0b248dd92cdd2" - [[package]] name = "bitflags" version = "2.6.0" @@ -659,9 +653,9 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "lazycell" @@ -671,9 +665,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.149" +version = "0.2.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" +checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "libloading" @@ -724,7 +718,7 @@ version = "0.12.3" dependencies = [ "async-stream", "bit-vec", - "bitflags 2.6.0", + "bitflags", "byteorder", "cbc", "cc", @@ -1073,7 +1067,7 @@ version = "0.38.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" dependencies = [ - "bitflags 2.6.0", + "bitflags", "errno", "libc", "linux-raw-sys", diff --git a/mbedtls-platform-support/Cargo.toml b/mbedtls-platform-support/Cargo.toml index ca1fa2f5f..067d66e31 100644 --- a/mbedtls-platform-support/Cargo.toml +++ b/mbedtls-platform-support/Cargo.toml @@ -27,7 +27,7 @@ chrono = { version = "0.4", optional = true } chrono = "0.4" [dependencies.mbedtls-sys-auto] -version = "2" +version = "2.25.0" default-features = false features = ["threading", "custom_printf"] path = "../mbedtls-sys" diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 1805cbf44..901f7608f 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -39,7 +39,7 @@ cfg-if = "1.0.0" tokio = { version = "1.16.1", optional = true } chrono = { version = "0.4.38", optional = true } -mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2", default-features = false, features = [ +mbedtls-sys-auto = { path = "../mbedtls-sys", version = "2.25.0", default-features = false, features = [ "trusted_cert_callback", "threading", ] } From 55a699fa5e29a4671f893bde79270b615f0d2860 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Wed, 28 Aug 2024 16:51:30 -0700 Subject: [PATCH 11/12] fix compilation and tests --- Cargo.lock | 263 ++++++++++++++++++++++++++-------------- mbedtls/Cargo.toml | 11 +- mbedtls/src/x509/mod.rs | 2 +- 3 files changed, 177 insertions(+), 99 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6f53c1df0..b2b6e38cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -57,6 +57,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "base64" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" +dependencies = [ + "byteorder", + "safemem", +] + [[package]] name = "bindgen" version = "0.68.1" @@ -68,7 +78,7 @@ dependencies = [ "clang-sys", "lazy_static", "lazycell", - "log", + "log 0.4.8", "peeking_take_while", "prettyplease", "proc-macro2", @@ -76,7 +86,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.68", + "syn 2.0.76", "which", ] @@ -262,9 +272,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "criterion" @@ -370,12 +380,6 @@ dependencies = [ "libc", ] -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - [[package]] name = "fuchsia-cprng" version = "0.1.1" @@ -478,7 +482,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", - "version_check", + "version_check 0.9.2", ] [[package]] @@ -527,60 +531,29 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "http" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - -[[package]] -name = "http-body" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" -dependencies = [ - "bytes", - "http", - "pin-project-lite", -] - [[package]] name = "httparse" -version = "1.9.4" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" - -[[package]] -name = "httpdate" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" [[package]] name = "hyper" -version = "0.14.29" +version = "0.10.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f361cde2f109281a220d4307746cdfd5ee3f410da58a70377762396775634b33" +checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273" dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "http", - "http-body", + "base64", "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "tokio", - "tower-service", - "tracing", - "want", + "language-tags", + "log 0.3.9", + "mime", + "num_cpus", + "time", + "traitobject", + "typeable", + "unicase", + "url", ] [[package]] @@ -606,6 +579,17 @@ dependencies = [ "cc", ] +[[package]] +name = "idna" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "inout" version = "0.1.3" @@ -651,6 +635,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "language-tags" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" + [[package]] name = "lazy_static" version = "1.5.0" @@ -697,6 +687,15 @@ version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" +[[package]] +name = "log" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" +dependencies = [ + "log 0.4.8", +] + [[package]] name = "log" version = "0.4.8" @@ -778,6 +777,15 @@ version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" +[[package]] +name = "mime" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" +dependencies = [ + "log 0.3.9", +] + [[package]] name = "minimal-lexical" version = "0.2.1" @@ -791,7 +799,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" dependencies = [ "libc", - "log", + "log 0.4.8", "miow", "ntapi", "winapi", @@ -882,6 +890,12 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" +[[package]] +name = "percent-encoding" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" + [[package]] name = "pin-project-lite" version = "0.2.9" @@ -935,7 +949,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ "proc-macro2", - "syn 2.0.68", + "syn 2.0.76", ] [[package]] @@ -949,9 +963,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -1022,6 +1036,12 @@ dependencies = [ "rand_core 0.3.1", ] +[[package]] +name = "redox_syscall" +version = "0.1.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" + [[package]] name = "regex" version = "1.8.4" @@ -1080,6 +1100,12 @@ version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +[[package]] +name = "safemem" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" + [[package]] name = "same-file" version = "1.0.6" @@ -1097,9 +1123,9 @@ checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0" [[package]] name = "serde" -version = "1.0.203" +version = "1.0.209" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" +checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" dependencies = [ "serde_derive", ] @@ -1126,13 +1152,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.203" +version = "1.0.209" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" +checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.76", ] [[package]] @@ -1180,15 +1206,26 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.68" +version = "2.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" +checksum = "578e081a14e0cefc3279b0472138c513f37b41a08d5a3cca9b6e4e8ceb6cd525" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "time" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" +dependencies = [ + "libc", + "redox_syscall", + "winapi", +] + [[package]] name = "tinytemplate" version = "1.2.1" @@ -1199,6 +1236,21 @@ dependencies = [ "serde_json", ] +[[package]] +name = "tinyvec" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf8dbc19eb42fba10e8feaaec282fb50e2c14b2726d6301dbfeed0f73306a6f" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" + [[package]] name = "tokio" version = "1.16.1" @@ -1226,12 +1278,6 @@ dependencies = [ "syn 1.0.64", ] -[[package]] -name = "tower-service" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" - [[package]] name = "tracing" version = "0.1.36" @@ -1265,10 +1311,16 @@ dependencies = [ ] [[package]] -name = "try-lock" -version = "0.2.5" +name = "traitobject" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079" + +[[package]] +name = "typeable" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887" [[package]] name = "typenum" @@ -1276,24 +1328,68 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" +[[package]] +name = "unicase" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" +dependencies = [ + "version_check 0.1.5", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" +dependencies = [ + "matches", +] + [[package]] name = "unicode-ident" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" +[[package]] +name = "unicode-normalization" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" +dependencies = [ + "tinyvec", +] + [[package]] name = "unicode-xid" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +[[package]] +name = "url" +version = "1.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" +dependencies = [ + "idna", + "matches", + "percent-encoding", +] + [[package]] name = "vcpkg" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95" +[[package]] +name = "version_check" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" + [[package]] name = "version_check" version = "0.9.2" @@ -1310,15 +1406,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "want" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" -dependencies = [ - "try-lock", -] - [[package]] name = "wasm-bindgen" version = "0.2.90" @@ -1336,11 +1423,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd" dependencies = [ "bumpalo", - "log", + "log 0.4.8", "once_cell", "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.76", "wasm-bindgen-shared", ] @@ -1362,7 +1449,7 @@ checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.68", + "syn 2.0.76", "wasm-bindgen-backend", "wasm-bindgen-shared", ] diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 901f7608f..60124c7b3 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -55,7 +55,7 @@ rand = "0.4.0" serde_cbor = "0.6" hex = "0.3" matches = "0.1.8" -hyper = { version = "0.14", default-features = false } +hyper = { version = "0.10.16", default-features = false } async-stream = "0.3.0" futures = "0.3" tracing = "0.1" @@ -107,15 +107,6 @@ legacy_protocols = ["mbedtls-sys-auto/legacy_protocols", "ssl"] async = ["std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"] async-rt = ["async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread"] -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(nightly)', - 'cfg(sys_threading_component, values("custom"))', - 'cfg(sys_time_component, values("custom"))', - 'cfg(sys_std_component, values("entropy"))', - 'cfg(time_component, values("custom", "libc"))', -] } - [[example]] name = "client" required-features = ["std", "ssl"] diff --git a/mbedtls/src/x509/mod.rs b/mbedtls/src/x509/mod.rs index dde17a703..248f092c6 100644 --- a/mbedtls/src/x509/mod.rs +++ b/mbedtls/src/x509/mod.rs @@ -45,7 +45,7 @@ bitflags! { } bitflags! { - #[derive(Copy, Clone, Debug)] + #[derive(Copy, Clone, Debug, PartialEq)] pub struct VerifyError: u32 { const CERT_BAD_KEY = X509_BADCERT_BAD_KEY as u32; const CERT_BAD_MD = X509_BADCERT_BAD_MD as u32; From fb45577ab42c266e3e0cf4c40b69d56a62318f5a Mon Sep 17 00:00:00 2001 From: mridul Date: Thu, 29 Aug 2024 19:15:20 +0530 Subject: [PATCH 12/12] syncup build --- Cargo.lock | 55 +++------------------------------------------- mbedtls/Cargo.toml | 9 -------- 2 files changed, 3 insertions(+), 61 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3f14b2d9e..aba53a13b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -57,16 +57,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -dependencies = [ - "byteorder", - "safemem", -] - [[package]] name = "bindgen" version = "0.68.1" @@ -78,7 +68,7 @@ dependencies = [ "clang-sys", "lazy_static", "lazycell", - "log 0.4.8", + "log", "peeking_take_while", "prettyplease", "proc-macro2", @@ -93,13 +83,6 @@ dependencies = [ [[package]] name = "bit-vec" version = "0.6.3" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" - -[[package]] -name = "bitflags" -version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" @@ -623,29 +606,6 @@ dependencies = [ "cc", ] -[[package]] -name = "iana-time-zone" -version = "0.1.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows-core", -] - -[[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 = "inout" version = "0.1.3" @@ -758,7 +718,7 @@ version = "0.12.3" dependencies = [ "async-stream", "bit-vec", - "bitflags 2.6.0", + "bitflags", "byteorder", "cbc", "cc", @@ -1107,7 +1067,7 @@ version = "0.38.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" dependencies = [ - "bitflags 2.6.0", + "bitflags", "errno", "libc", "linux-raw-sys", @@ -1322,15 +1282,6 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" -[[package]] -name = "unicode-normalization" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" -dependencies = [ - "tinyvec", -] - [[package]] name = "unicode-xid" version = "0.2.1" diff --git a/mbedtls/Cargo.toml b/mbedtls/Cargo.toml index 1805cbf44..4e440ebb2 100644 --- a/mbedtls/Cargo.toml +++ b/mbedtls/Cargo.toml @@ -107,15 +107,6 @@ legacy_protocols = ["mbedtls-sys-auto/legacy_protocols", "ssl"] async = ["std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"] async-rt = ["async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread"] -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(nightly)', - 'cfg(sys_threading_component, values("custom"))', - 'cfg(sys_time_component, values("custom"))', - 'cfg(sys_std_component, values("entropy"))', - 'cfg(time_component, values("custom", "libc"))', -] } - [[example]] name = "client" required-features = ["std", "ssl"]