Skip to content
Myr

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

8 files+167 added−54 removed

modified:.github/workflows/CI.yml+1 added-1 removed
1name: CI23env:4 CARGO_TERM_COLOR: always5 MSRV: '1.80'5 MSRV: '1.85'67on:8 push:9 branches:
210 unmodified lines
modified:axum/src/extract/ws.rs+1 added-1 removed
524 unmodified lines
525 #[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 lines
modified:axum/Cargo.toml+3 added-3 removed
134 unmodified lines
135reqwest = { version = "0.12", optional = true, default-features = false, features = ["json", "stream", "multipart"] }136serde_html_form = { version = "0.4.0", optional = true, default-features = false, features = ["std"] }137serde_json = { version = "1.0.29", features = ["raw_value"], optional = true }138serde_path_to_error = { version = "0.1.8", optional = true }139sha1 = { version = "0.10", optional = true }140tokio-tungstenite = { version = "0.29.0", optional = true }139sha1 = { version = "0.11", optional = true }140tokio-tungstenite = { version = "0.30.0", default-features = false, optional = true }141tracing = { version = "0.1", default-features = false, optional = true }142143# doc dependencies144serde = { version = "1.0.211", optional = true }
45 unmodified lines
190serde_json = { version = "1.0.29", features = ["raw_value"] }191time = { version = "0.3", features = ["serde-human-readable"] }192tokio = { package = "tokio", version = "1.44.2", features = ["macros", "rt", "rt-multi-thread", "net", "test-util"] }193tokio-stream = "0.1"194tokio-tungstenite = "0.29.0"194tokio-tungstenite = "0.30.0"195tracing = "0.1"196tracing-subscriber = { version = "0.3.20", features = ["json"] }197uuid = { version = "1.0", features = ["serde", "v4"] }198
52 unmodified lines
modified:axum-macros/src/debug_handler.rs+1 added-1 removed
869 unmodified lines
870 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 lines
modified:examples/Cargo.lock+29 added-5 removed
294 unmodified lines
295 "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 lines
1784 "axum",1785 "futures-channel",1786 "futures-util",1787 "tokio",1788 "tokio-tungstenite",1788 "tokio-tungstenite 0.29.0",1789]17901791[[package]]1792name = "example-tls-graceful-shutdown"
114 unmodified lines
1907 "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 lines
4579dependencies = [4580 "futures-util",4581 "log",4582 "tokio",4583 "tungstenite",4583 "tungstenite 0.29.0",4584]45854586[[package]]4587name = "tokio-tungstenite"4588version = "0.30.0"4589source = "registry+https://github.com/rust-lang/crates.io-index"4590checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71"4591dependencies = [4592 "futures-util",4593 "log",4594 "tokio",4595 "tungstenite 0.30.0",4596]45974598[[package]]4599name = "tokio-util"4600version = "0.7.18"4601source = "registry+https://github.com/rust-lang/crates.io-index"4602checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
182 unmodified lines
4785 "thiserror 2.0.18",4786]47874788[[package]]4789name = "tungstenite"4790version = "0.30.0"4791source = "registry+https://github.com/rust-lang/crates.io-index"4792checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22"4793dependencies = [4794 "bytes",4795 "log",4796 "rand 0.10.2",4797 "thiserror 2.0.18",4798]47994800[[package]]4801name = "typed-builder"4802version = "0.22.0"4803source = "registry+https://github.com/rust-lang/crates.io-index"4804checksum = "398a3a3c918c96de527dc11e6e846cd549d4508030b8a33e1da12789c856b81a"
663 unmodified lines
modified:Cargo.lock+123 added-42 removed
1# This file is automatically @generated by Cargo.2# It is not intended for manual editing.3version = 33version = 445[[package]]6name = "adler2"7version = "2.0.1"
5 unmodified lines
13version = "0.5.2"14source = "registry+https://github.com/rust-lang/crates.io-index"15checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"16dependencies = [17 "crypto-common",17 "crypto-common 0.1.7",18 "generic-array",19]2021[[package]]
3 unmodified lines
25checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"26dependencies = [27 "cfg-if",28 "cipher",29 "cpufeatures",29 "cpufeatures 0.2.17",30]3132[[package]]33name = "aes-gcm"
96 unmodified lines
130 "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 lines
250 "generic-array",251]252253[[package]]254name = "block-buffer"255version = "0.12.1"256source = "registry+https://github.com/rust-lang/crates.io-index"257checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"258dependencies = [259 "hybrid-array",260]261262[[package]]263name = "brotli"264version = "8.0.2"265source = "registry+https://github.com/rust-lang/crates.io-index"266checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560"
37 unmodified lines
304source = "registry+https://github.com/rust-lang/crates.io-index"305checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"306307[[package]]308name = "chacha20"309version = "0.10.2"310source = "registry+https://github.com/rust-lang/crates.io-index"311checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"312dependencies = [313 "cfg-if",314 "cpufeatures 0.3.1",315 "rand_core 0.10.1",316]317318[[package]]319name = "cipher"320version = "0.4.4"321source = "registry+https://github.com/rust-lang/crates.io-index"322checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"323dependencies = [304 "crypto-common",324 "crypto-common 0.1.7",325 "inout",326]327328[[package]]
14 unmodified lines
343source = "registry+https://github.com/rust-lang/crates.io-index"344checksum = "75984efb6ed102a0d42db99afb6c1948f0380d1d91808d5529916e6c08b49d8d"345346[[package]]347name = "const-oid"348version = "0.10.2"349source = "registry+https://github.com/rust-lang/crates.io-index"350checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"351352[[package]]353name = "cookie"354version = "0.18.1"355source = "registry+https://github.com/rust-lang/crates.io-index"356checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
19 unmodified lines
376 "libc",377]378379[[package]]380name = "cpufeatures"381version = "0.3.1"382source = "registry+https://github.com/rust-lang/crates.io-index"383checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"384dependencies = [385 "libc",386]387388[[package]]389name = "crc32fast"390version = "1.5.0"391source = "registry+https://github.com/rust-lang/crates.io-index"392checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
12 unmodified lines
405 "typenum",406]407408[[package]]409name = "crypto-common"410version = "0.2.2"411source = "registry+https://github.com/rust-lang/crates.io-index"412checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"413dependencies = [414 "hybrid-array",415]416417[[package]]418name = "ctr"419version = "0.9.2"420source = "registry+https://github.com/rust-lang/crates.io-index"421checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"
22 unmodified lines
444version = "0.10.7"445source = "registry+https://github.com/rust-lang/crates.io-index"446checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"447dependencies = [404 "block-buffer",405 "crypto-common",448 "block-buffer 0.10.4",449 "crypto-common 0.1.7",450 "subtle",451]452453[[package]]454name = "digest"455version = "0.11.3"456source = "registry+https://github.com/rust-lang/crates.io-index"457checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"458dependencies = [459 "block-buffer 0.12.1",460 "const-oid",461 "crypto-common 0.2.2",462]463464[[package]]465name = "displaydoc"466version = "0.2.5"467source = "registry+https://github.com/rust-lang/crates.io-index"468checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
164 unmodified lines
633checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"634dependencies = [635 "cfg-if",636 "libc",582 "r-efi",637 "r-efi 5.3.0",638 "wasip2",639]640641[[package]]642name = "getrandom"643version = "0.4.3"644source = "registry+https://github.com/rust-lang/crates.io-index"645checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"646dependencies = [647 "cfg-if",648 "libc",649 "r-efi 6.0.0",650 "rand_core 0.10.1",651]652653[[package]]654name = "ghash"655version = "0.5.1"656source = "registry+https://github.com/rust-lang/crates.io-index"657checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1"
54 unmodified lines
712 "headers-core",713 "http",714 "httpdate",715 "mime",649 "sha1",716 "sha1 0.10.6",717]718719[[package]]720name = "headers-core"
18 unmodified lines
739version = "0.12.1"740source = "registry+https://github.com/rust-lang/crates.io-index"741checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"742dependencies = [676 "digest",743 "digest 0.10.7",744]745746[[package]]747name = "http"
46 unmodified lines
794source = "registry+https://github.com/rust-lang/crates.io-index"795checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"796797[[package]]798name = "hybrid-array"799version = "0.4.10"800source = "registry+https://github.com/rust-lang/crates.io-index"801checksum = "3944cf8cf766b40e2a1a333ee5e9b563f854d5fa49d6a8ca2764e97c6eddb214"802dependencies = [803 "typenum",804]805806[[package]]807name = "hyper"808version = "1.8.1"809source = "registry+https://github.com/rust-lang/crates.io-index"810checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11"
388 unmodified lines
1199source = "registry+https://github.com/rust-lang/crates.io-index"1200checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25"1201dependencies = [1202 "cfg-if",1127 "cpufeatures",1203 "cpufeatures 0.2.17",1204 "opaque-debug",1205 "universal-hash",1206]1207
90 unmodified lines
1298source = "registry+https://github.com/rust-lang/crates.io-index"1299checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"13001301[[package]]1302name = "r-efi"1303version = "6.0.0"1304source = "registry+https://github.com/rust-lang/crates.io-index"1305checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"13061307[[package]]1308name = "rand"1309version = "0.8.5"1310source = "registry+https://github.com/rust-lang/crates.io-index"1311checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"1312dependencies = [1313 "libc",1232 "rand_chacha 0.3.1",1314 "rand_chacha",1315 "rand_core 0.6.4",1316]13171318[[package]]1319name = "rand"1238version = "0.9.2"1320version = "0.10.3"1321source = "registry+https://github.com/rust-lang/crates.io-index"1240checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"1322checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"1323dependencies = [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]13281329[[package]]1330name = "rand_chacha"
5 unmodified lines
1336 "rand_core 0.6.4",1337]13381339[[package]]1257name = "rand_chacha"1258version = "0.9.0"1259source = "registry+https://github.com/rust-lang/crates.io-index"1260checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"1261dependencies = [1262 "ppv-lite86",1263 "rand_core 0.9.5",1264]12651266[[package]]1340name = "rand_core"1341version = "0.6.4"1342source = "registry+https://github.com/rust-lang/crates.io-index"1343checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
2 unmodified lines
1346]13471348[[package]]1349name = "rand_core"1277version = "0.9.5"1350version = "0.10.1"1351source = "registry+https://github.com/rust-lang/crates.io-index"1279checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"1280dependencies = [1281 "getrandom 0.3.4",1282]1352checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"13531354[[package]]1355name = "redox_syscall"1356version = "0.5.18"
206 unmodified lines
1563source = "registry+https://github.com/rust-lang/crates.io-index"1564checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"1565dependencies = [1566 "cfg-if",1497 "cpufeatures",1498 "digest",1567 "cpufeatures 0.2.17",1568 "digest 0.10.7",1569]15701571[[package]]1572name = "sha1"1573version = "0.11.0"1574source = "registry+https://github.com/rust-lang/crates.io-index"1575checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"1576dependencies = [1577 "cfg-if",1578 "cpufeatures 0.3.1",1579 "digest 0.11.3",1580]15811582[[package]]1583name = "sha2"1584version = "0.10.9"1585source = "registry+https://github.com/rust-lang/crates.io-index"1586checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"1587dependencies = [1588 "cfg-if",1508 "cpufeatures",1509 "digest",1589 "cpufeatures 0.2.17",1590 "digest 0.10.7",1591]15921593[[package]]1594name = "sharded-slab"
229 unmodified lines
1824]18251826[[package]]1827name = "tokio-tungstenite"1747version = "0.29.0"1828version = "0.30.0"1829source = "registry+https://github.com/rust-lang/crates.io-index"1749checksum = "8f72a05e828585856dacd553fba484c242c46e391fb0e58917c942ee9202915c"1830checksum = "17a073bfed563fa236697a068031408a93cd9522e08abf9933ead3e73411bd71"1831dependencies = [1832 "futures-util",1833 "log",1834 "tokio",
208 unmodified lines
2043]20442045[[package]]2046name = "tungstenite"1966version = "0.29.0"2047version = "0.30.0"2048source = "registry+https://github.com/rust-lang/crates.io-index"1968checksum = "6c01152af293afb9c7c2a57e4b559c5620b421f6d133261c60dd2d0cdb38e6b8"2049checksum = "e48ac77174b19c110a50ab2128b24215ac9cb40e0e12e093fb602d175c569d22"2050dependencies = [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]20602061[[package]]
29 unmodified lines
2091version = "0.5.1"2092source = "registry+https://github.com/rust-lang/crates.io-index"2093checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"2094dependencies = [2014 "crypto-common",2095 "crypto-common 0.1.7",2096 "subtle",2097]20982099[[package]]
365 unmodified lines
modified:Cargo.toml+1 added-1 removed
modified:deny.toml+8 added