Update tungstenite version to 0.30.0 (#3935)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by xd009642 · committed by GitHub · parent 6184962 · Browse files · 8 files·+167 added−54 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+167 added−54 removed
- other:+167 added−54 removed
Provenance
- Commit
dcfd5e3- Tree
75981cb- Author
xd009642 <danielmckenna93@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
6184962
8 files changed+167 added−54 removed
modified:.github/workflows/CI.yml+1 added-1 removed
1 name: CI2 3 env:4 CARGO_TERM_COLOR: always5- MSRV: '1.80'5+ MSRV: '1.85'6 7 on:8 push:9 branches:210 unmodified linesmodified:axum/src/extract/ws.rs+1 added-1 removed
524 unmodified lines525 #[cfg(feature = "http2")]526 if parts527 .extensions528 .get::<hyper::ext::Protocol>()529- .map_or(true, |p| p.as_str() != "websocket")529+ .is_none_or(|p| p.as_str() != "websocket")530 {531 return Err(InvalidProtocolPseudoheader.into());532 }533 783 unmodified linesmodified:axum/Cargo.toml+3 added-3 removed
134 unmodified lines135 reqwest = { version = "0.12", optional = true, default-features = false, features = ["json", "stream", "multipart"] }136 serde_html_form = { version = "0.4.0", optional = true, default-features = false, features = ["std"] }137 serde_json = { version = "1.0.29", features = ["raw_value"], optional = true }138 serde_path_to_error = { version = "0.1.8", optional = true }139-sha1 = { version = "0.10", optional = true }140-tokio-tungstenite = { version = "0.29.0", optional = true }139+sha1 = { version = "0.11", optional = true }140+tokio-tungstenite = { version = "0.30.0", default-features = false, optional = true }141 tracing = { version = "0.1", default-features = false, optional = true }142 143 # doc dependencies144 serde = { version = "1.0.211", optional = true }45 unmodified lines190 serde_json = { version = "1.0.29", features = ["raw_value"] }191 time = { version = "0.3", features = ["serde-human-readable"] }192 tokio = { package = "tokio", version = "1.44.2", features = ["macros", "rt", "rt-multi-thread", "net", "test-util"] }193 tokio-stream = "0.1"194-tokio-tungstenite = "0.29.0"194+tokio-tungstenite = "0.30.0"195 tracing = "0.1"196 tracing-subscriber = { version = "0.3.20", features = ["json"] }197 uuid = { version = "1.0", features = ["serde", "v4"] }198 52 unmodified linesmodified:axum-macros/src/debug_handler.rs+1 added-1 removed
869 unmodified lines870 type_path871 .path872 .segments873 .last()874- .map_or(true, |path_segment| path_segment.ident != "Next")874+ .is_none_or(|path_segment| path_segment.ident != "Next")875 } else {876 true877 }878 }13 unmodified linesmodified:examples/Cargo.lock+29 added-5 removed
294 unmodified lines295 "serde_core",296 "serde_html_form",297 "serde_json",298 "serde_path_to_error",299- "sha1 0.10.6",299+ "sha1 0.11.0",300 "sync_wrapper",301 "tokio",302- "tokio-tungstenite",302+ "tokio-tungstenite 0.30.0",303 "tower",304 "tower-layer",305 "tower-service",306 "tracing",1477 unmodified lines1784 "axum",1785 "futures-channel",1786 "futures-util",1787 "tokio",1788- "tokio-tungstenite",1788+ "tokio-tungstenite 0.29.0",1789 ]1790 1791 [[package]]1792 name = "example-tls-graceful-shutdown"114 unmodified lines1907 "axum-extra",1908 "futures-util",1909 "headers",1910 "tokio",1911- "tokio-tungstenite",1911+ "tokio-tungstenite 0.29.0",1912 "tower-http",1913 "tracing",1914 "tracing-subscriber",1915 ]2663 unmodified lines4579 dependencies = [4580 "futures-util",4581 "log",4582 "tokio",4583- "tungstenite",4583+ "tungstenite 0.29.0",4584 ]4585 4586 [[package]]4587+name = "tokio-tungstenite"4588+version = "0.30.0"4589+source = "registry+https://github.com/rust-lang/crates.io-index"4590+checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71"4591+dependencies = [4592+ "futures-util",4593+ "log",4594+ "tokio",4595+ "tungstenite 0.30.0",4596+]4597+4598+[[package]]4599 name = "tokio-util"4600 version = "0.7.18"4601 source = "registry+https://github.com/rust-lang/crates.io-index"4602 checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"182 unmodified lines4785 "thiserror 2.0.18",4786 ]4787 4788 [[package]]4789+name = "tungstenite"4790+version = "0.30.0"4791+source = "registry+https://github.com/rust-lang/crates.io-index"4792+checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22"4793+dependencies = [4794+ "bytes",4795+ "log",4796+ "rand 0.10.2",4797+ "thiserror 2.0.18",4798+]4799+4800+[[package]]4801 name = "typed-builder"4802 version = "0.22.0"4803 source = "registry+https://github.com/rust-lang/crates.io-index"4804 checksum = "398a3a3c918c96de527dc11e6e846cd549d4508030b8a33e1da12789c856b81a"663 unmodified linesmodified:Cargo.lock+123 added-42 removed
1 # This file is automatically @generated by Cargo.2 # It is not intended for manual editing.3-version = 33+version = 44 5 [[package]]6 name = "adler2"7 version = "2.0.1"5 unmodified lines13 version = "0.5.2"14 source = "registry+https://github.com/rust-lang/crates.io-index"15 checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"16 dependencies = [17- "crypto-common",17+ "crypto-common 0.1.7",18 "generic-array",19 ]20 21 [[package]]3 unmodified lines25 checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"26 dependencies = [27 "cfg-if",28 "cipher",29- "cpufeatures",29+ "cpufeatures 0.2.17",30 ]31 32 [[package]]33 name = "aes-gcm"96 unmodified lines130 "serde_core",131 "serde_html_form 0.4.0",132 "serde_json",133 "serde_path_to_error",134- "sha1",134+ "sha1 0.11.0",135 "sync_wrapper",136 "time",137 "tokio",138 "tokio-stream",111 unmodified lines250 "generic-array",251 ]252 253 [[package]]254+name = "block-buffer"255+version = "0.12.1"256+source = "registry+https://github.com/rust-lang/crates.io-index"257+checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"258+dependencies = [259+ "hybrid-array",260+]261+262+[[package]]263 name = "brotli"264 version = "8.0.2"265 source = "registry+https://github.com/rust-lang/crates.io-index"266 checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560"37 unmodified lines304 source = "registry+https://github.com/rust-lang/crates.io-index"305 checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"306 307 [[package]]308+name = "chacha20"309+version = "0.10.2"310+source = "registry+https://github.com/rust-lang/crates.io-index"311+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"312+dependencies = [313+ "cfg-if",314+ "cpufeatures 0.3.1",315+ "rand_core 0.10.1",316+]317+318+[[package]]319 name = "cipher"320 version = "0.4.4"321 source = "registry+https://github.com/rust-lang/crates.io-index"322 checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"323 dependencies = [304- "crypto-common",324+ "crypto-common 0.1.7",325 "inout",326 ]327 328 [[package]]14 unmodified lines343 source = "registry+https://github.com/rust-lang/crates.io-index"344 checksum = "75984efb6ed102a0d42db99afb6c1948f0380d1d91808d5529916e6c08b49d8d"345 346 [[package]]347+name = "const-oid"348+version = "0.10.2"349+source = "registry+https://github.com/rust-lang/crates.io-index"350+checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"351+352+[[package]]353 name = "cookie"354 version = "0.18.1"355 source = "registry+https://github.com/rust-lang/crates.io-index"356 checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"19 unmodified lines376 "libc",377 ]378 379 [[package]]380+name = "cpufeatures"381+version = "0.3.1"382+source = "registry+https://github.com/rust-lang/crates.io-index"383+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"384+dependencies = [385+ "libc",386+]387+388+[[package]]389 name = "crc32fast"390 version = "1.5.0"391 source = "registry+https://github.com/rust-lang/crates.io-index"392 checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"12 unmodified lines405 "typenum",406 ]407 408 [[package]]409+name = "crypto-common"410+version = "0.2.2"411+source = "registry+https://github.com/rust-lang/crates.io-index"412+checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"413+dependencies = [414+ "hybrid-array",415+]416+417+[[package]]418 name = "ctr"419 version = "0.9.2"420 source = "registry+https://github.com/rust-lang/crates.io-index"421 checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"22 unmodified lines444 version = "0.10.7"445 source = "registry+https://github.com/rust-lang/crates.io-index"446 checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"447 dependencies = [404- "block-buffer",405- "crypto-common",448+ "block-buffer 0.10.4",449+ "crypto-common 0.1.7",450 "subtle",451 ]452 453 [[package]]454+name = "digest"455+version = "0.11.3"456+source = "registry+https://github.com/rust-lang/crates.io-index"457+checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"458+dependencies = [459+ "block-buffer 0.12.1",460+ "const-oid",461+ "crypto-common 0.2.2",462+]463+464+[[package]]465 name = "displaydoc"466 version = "0.2.5"467 source = "registry+https://github.com/rust-lang/crates.io-index"468 checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"164 unmodified lines633 checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"634 dependencies = [635 "cfg-if",636 "libc",582- "r-efi",637+ "r-efi 5.3.0",638 "wasip2",639 ]640 641 [[package]]642+name = "getrandom"643+version = "0.4.3"644+source = "registry+https://github.com/rust-lang/crates.io-index"645+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"646+dependencies = [647+ "cfg-if",648+ "libc",649+ "r-efi 6.0.0",650+ "rand_core 0.10.1",651+]652+653+[[package]]654 name = "ghash"655 version = "0.5.1"656 source = "registry+https://github.com/rust-lang/crates.io-index"657 checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1"54 unmodified lines712 "headers-core",713 "http",714 "httpdate",715 "mime",649- "sha1",716+ "sha1 0.10.6",717 ]718 719 [[package]]720 name = "headers-core"18 unmodified lines739 version = "0.12.1"740 source = "registry+https://github.com/rust-lang/crates.io-index"741 checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"742 dependencies = [676- "digest",743+ "digest 0.10.7",744 ]745 746 [[package]]747 name = "http"46 unmodified lines794 source = "registry+https://github.com/rust-lang/crates.io-index"795 checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"796 797 [[package]]798+name = "hybrid-array"799+version = "0.4.10"800+source = "registry+https://github.com/rust-lang/crates.io-index"801+checksum = "3944cf8cf766b40e2a1a333ee5e9b563f854d5fa49d6a8ca2764e97c6eddb214"802+dependencies = [803+ "typenum",804+]805+806+[[package]]807 name = "hyper"808 version = "1.8.1"809 source = "registry+https://github.com/rust-lang/crates.io-index"810 checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11"388 unmodified lines1199 source = "registry+https://github.com/rust-lang/crates.io-index"1200 checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25"1201 dependencies = [1202 "cfg-if",1127- "cpufeatures",1203+ "cpufeatures 0.2.17",1204 "opaque-debug",1205 "universal-hash",1206 ]1207 90 unmodified lines1298 source = "registry+https://github.com/rust-lang/crates.io-index"1299 checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"1300 1301 [[package]]1302+name = "r-efi"1303+version = "6.0.0"1304+source = "registry+https://github.com/rust-lang/crates.io-index"1305+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"1306+1307+[[package]]1308 name = "rand"1309 version = "0.8.5"1310 source = "registry+https://github.com/rust-lang/crates.io-index"1311 checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"1312 dependencies = [1313 "libc",1232- "rand_chacha 0.3.1",1314+ "rand_chacha",1315 "rand_core 0.6.4",1316 ]1317 1318 [[package]]1319 name = "rand"1238-version = "0.9.2"1320+version = "0.10.3"1321 source = "registry+https://github.com/rust-lang/crates.io-index"1240-checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"1322+checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"1323 dependencies = [1242- "rand_chacha 0.9.0",1243- "rand_core 0.9.5",1324+ "chacha20",1325+ "getrandom 0.4.3",1326+ "rand_core 0.10.1",1327 ]1328 1329 [[package]]1330 name = "rand_chacha"5 unmodified lines1336 "rand_core 0.6.4",1337 ]1338 1339 [[package]]1257-name = "rand_chacha"1258-version = "0.9.0"1259-source = "registry+https://github.com/rust-lang/crates.io-index"1260-checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"1261-dependencies = [1262- "ppv-lite86",1263- "rand_core 0.9.5",1264-]1265-1266-[[package]]1340 name = "rand_core"1341 version = "0.6.4"1342 source = "registry+https://github.com/rust-lang/crates.io-index"1343 checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"2 unmodified lines1346 ]1347 1348 [[package]]1349 name = "rand_core"1277-version = "0.9.5"1350+version = "0.10.1"1351 source = "registry+https://github.com/rust-lang/crates.io-index"1279-checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"1280-dependencies = [1281- "getrandom 0.3.4",1282-]1352+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"1353 1354 [[package]]1355 name = "redox_syscall"1356 version = "0.5.18"206 unmodified lines1563 source = "registry+https://github.com/rust-lang/crates.io-index"1564 checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"1565 dependencies = [1566 "cfg-if",1497- "cpufeatures",1498- "digest",1567+ "cpufeatures 0.2.17",1568+ "digest 0.10.7",1569 ]1570 1571 [[package]]1572+name = "sha1"1573+version = "0.11.0"1574+source = "registry+https://github.com/rust-lang/crates.io-index"1575+checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"1576+dependencies = [1577+ "cfg-if",1578+ "cpufeatures 0.3.1",1579+ "digest 0.11.3",1580+]1581+1582+[[package]]1583 name = "sha2"1584 version = "0.10.9"1585 source = "registry+https://github.com/rust-lang/crates.io-index"1586 checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"1587 dependencies = [1588 "cfg-if",1508- "cpufeatures",1509- "digest",1589+ "cpufeatures 0.2.17",1590+ "digest 0.10.7",1591 ]1592 1593 [[package]]1594 name = "sharded-slab"229 unmodified lines1824 ]1825 1826 [[package]]1827 name = "tokio-tungstenite"1747-version = "0.29.0"1828+version = "0.30.0"1829 source = "registry+https://github.com/rust-lang/crates.io-index"1749-checksum = "8f72a05e828585856dacd553fba484c242c46e391fb0e58917c942ee9202915c"1830+checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71"1831 dependencies = [1832 "futures-util",1833 "log",1834 "tokio",208 unmodified lines2043 ]2044 2045 [[package]]2046 name = "tungstenite"1966-version = "0.29.0"2047+version = "0.30.0"2048 source = "registry+https://github.com/rust-lang/crates.io-index"1968-checksum = "6c01152af293afb9c7c2a57e4b559c5620b421f6d133261c60dd2d0cdb38e6b8"2049+checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22"2050 dependencies = [2051 "bytes",2052 "data-encoding",2053 "http",2054 "httparse",2055 "log",1975- "rand 0.9.2",1976- "sha1",2056+ "rand 0.10.3",2057+ "sha1 0.11.0",2058 "thiserror",2059 ]2060 2061 [[package]]29 unmodified lines2091 version = "0.5.1"2092 source = "registry+https://github.com/rust-lang/crates.io-index"2093 checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"2094 dependencies = [2014- "crypto-common",2095+ "crypto-common 0.1.7",2096 "subtle",2097 ]2098 2099 [[package]]365 unmodified linesmodified:Cargo.toml+1 added-1 removed
12345667891053 unmodified lines[workspace]members = ["axum", "axum-*"]resolver = "2"
[workspace.package]rust-version = "1.80"rust-version = "1.85"
[workspace.lints.rust]unsafe_code = "forbid"
53 unmodified linesmodified:deny.toml+8 added
15 unmodified lines161718192021222324252627282930319 unmodified lines15 unmodified lines
[bans]multiple-versions = "deny"highlight = "all"skip = [ # Tungstenite's test client uses the newer crypto stack; headers and cookie # still require the older versions. Keep these exceptions version-specific. { name = "sha1", version = "0.11" }, { name = "digest", version = "0.11" }, { name = "block-buffer", version = "0.12" }, { name = "crypto-common", version = "0.2" },]skip-tree = [ # parking_lot pulls in old versions of windows-sys { name = "windows-sys" }, # pulled in by quickcheck and cookie9 unmodified lines