diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 8f8347cf5d4a..b8baa7df5718 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -2,16 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "Inflector" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" -dependencies = [ - "lazy_static", - "regex", -] - [[package]] name = "addr2line" version = "0.21.0" @@ -103,9 +93,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "android-tzdata" @@ -173,15 +163,15 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.79" +version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "apache-avro" -version = "0.18.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a81f4e6304e455a9d52cf8ab667cb2fcf792f2cee2a31c28800901a335ecd5" +checksum = "36fa98bc79671c7981272d91a8753a928ff6a1cd8e4f20a44c45bd5d313840bf" dependencies = [ "bigdecimal", "bon", @@ -190,14 +180,14 @@ dependencies = [ "miniz_oxide 0.8.9", "num-bigint", "quad-rand", - "rand 0.9.1", + "rand 0.9.2", "regex-lite", "serde", "serde_bytes", "serde_json", "strum 0.27.2", "strum_macros 0.27.2", - "thiserror 2.0.16", + "thiserror 2.0.17", "uuid", "zstd", ] @@ -238,11 +228,10 @@ dependencies = [ [[package]] name = "ast_node" -version = "0.9.9" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9184f2b369b3e8625712493c89b785881f27eedc6cde480a81883cef78868b2" +checksum = "2eb025ef00a6da925cf40870b9c8d008526b6004ece399cb0974209720f0b194" dependencies = [ - "proc-macro2", "quote", "swc_macros_common", "syn 2.0.89", @@ -921,7 +910,7 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d498595448e43de7f4296b7b7a18a8a02c61ec9349128c80a368f7c3b4ab11a8" dependencies = [ - "base64-simd 0.8.0", + "base64-simd", "bytes", "bytes-utils", "futures-core", @@ -960,7 +949,7 @@ dependencies = [ "aws-smithy-async", "aws-smithy-runtime-api", "aws-smithy-types", - "rustc_version 0.4.1", + "rustc_version", "tracing", ] @@ -1144,22 +1133,13 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" -[[package]] -name = "base64-simd" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "781dd20c3aff0bd194fe7d2a977dd92f21c173891f3a03b677359e5fa457e5d5" -dependencies = [ - "simd-abstraction", -] - [[package]] name = "base64-simd" version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195" dependencies = [ - "outref 0.5.1", + "outref", "vsimd", ] @@ -1215,7 +1195,7 @@ dependencies = [ "serde_json", "sqlx", "tempfile", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", "tracing-subscriber", @@ -1226,18 +1206,18 @@ dependencies = [ [[package]] name = "better_scoped_tls" -version = "0.1.2" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297b153aa5e573b5863108a6ddc9d5c968bd0b20e75cc614ee9821d2f45679c7" +checksum = "7cd228125315b132eed175bf47619ac79b945b26e56b848ba203ae4ea8603609" dependencies = [ "scoped-tls", ] [[package]] name = "bigdecimal" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a22f228ab7a1b23027ccc6c350b72868017af7ea8356fbdf19f8d991c690013" +checksum = "560f42649de9fa436b73517378a147ec21f6c997a546581df4b4b31677828934" dependencies = [ "autocfg", "libm", @@ -1245,7 +1225,6 @@ dependencies = [ "num-integer", "num-traits", "serde", - "serde_json", ] [[package]] @@ -1381,9 +1360,9 @@ dependencies = [ [[package]] name = "bon" -version = "3.7.2" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2529c31017402be841eb45892278a6c21a000c0a17643af326c73a73f83f0fb" +checksum = "ebeb9aaf9329dff6ceb65c689ca3db33dbf15f324909c60e4e5eef5701ce31b1" dependencies = [ "bon-macros", "rustversion", @@ -1391,9 +1370,9 @@ dependencies = [ [[package]] name = "bon-macros" -version = "3.7.2" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d82020dadcb845a345591863adb65d74fa8dc5c18a0b6d408470e13b7adc7005" +checksum = "77e9d642a7e3a318e37c2c9427b5a6a48aa1ad55dcd986f3034ab2239045a645" dependencies = [ "darling 0.21.3", "ident_case", @@ -1514,6 +1493,16 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" +[[package]] +name = "bytes-str" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c60b5ce37e0b883c37eb89f79a1e26fbe9c1081945d024eee93e8d91a7e18b3" +dependencies = [ + "bytes", + "serde", +] + [[package]] name = "bytes-utils" version = "0.1.4" @@ -1587,7 +1576,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tower 0.4.13", @@ -1623,7 +1612,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tonic 0.12.3", "tower-http", @@ -1640,7 +1629,7 @@ checksum = "3fce8dd7fcfcbf3a0a87d8f515194b49d6135acab73e18bd380d1d93bb1a15eb" dependencies = [ "clap", "heck 0.4.1", - "indexmap 2.7.1", + "indexmap 2.12.1", "log", "proc-macro2", "quote", @@ -1892,7 +1881,7 @@ version = "0.1.0" dependencies = [ "base64 0.22.1", "flate2", - "thiserror 2.0.16", + "thiserror 2.0.17", "zstd", ] @@ -1913,7 +1902,7 @@ dependencies = [ "serde", "serde_json", "siphasher 1.0.1", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", "url", @@ -1926,7 +1915,7 @@ dependencies = [ "anyhow", "async-trait", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", ] @@ -1945,7 +1934,7 @@ version = "0.1.0" dependencies = [ "maxminddb", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", "tracing", ] @@ -1965,7 +1954,7 @@ dependencies = [ "mockall", "serde-pickle", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", ] @@ -1980,7 +1969,7 @@ dependencies = [ "rdkafka", "serde", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tracing", @@ -2018,7 +2007,7 @@ dependencies = [ "async-trait", "redis", "serde-pickle", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", "zstd", @@ -2033,7 +2022,7 @@ dependencies = [ "aws-sdk-s3", "common-s3", "mockall", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", ] @@ -2166,7 +2155,7 @@ version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a47af21622d091a8f0fb295b88bc886ac74efcc613efc19f5d0b21de5c89e47" dependencies = [ - "rustc_version 0.4.1", + "rustc_version", ] [[package]] @@ -2302,7 +2291,7 @@ dependencies = [ "hex", "serde", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", "uuid", @@ -2379,10 +2368,10 @@ dependencies = [ "serde", "serde_json", "sha2", - "sourcemap 9.2.0", + "sourcemap", "sqlx", "symbolic", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tracing", "tracing-subscriber", @@ -2831,7 +2820,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -2984,7 +2973,7 @@ dependencies = [ "sqlx", "strum 0.26.3", "test-case", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tokio-retry", "tower 0.4.13", @@ -3119,11 +3108,10 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "from_variant" -version = "0.1.9" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32016f1242eb82af5474752d00fd8ebcd9004bd69b462b1c91de833972d08ed4" +checksum = "e5ff35a391aef949120a0340d690269b3d9f63460a6106e99bd07b961f345ea9" dependencies = [ - "proc-macro2", "swc_macros_common", "syn 2.0.89", ] @@ -3331,9 +3319,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "gimli" -version = "0.31.1" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" +checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" dependencies = [ "fallible-iterator 0.3.0", "stable_deref_trait", @@ -3409,7 +3397,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.11", - "indexmap 2.7.1", + "indexmap 2.12.1", "slab", "tokio", "tokio-util", @@ -3428,7 +3416,7 @@ dependencies = [ "futures-sink", "futures-util", "http 1.1.0", - "indexmap 2.7.1", + "indexmap 2.12.1", "slab", "tokio", "tokio-util", @@ -3460,6 +3448,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash 0.8.11", + "allocator-api2", "serde", ] @@ -3474,6 +3463,12 @@ dependencies = [ "foldhash", ] +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + [[package]] name = "hashlink" version = "0.10.0" @@ -3554,7 +3549,7 @@ dependencies = [ "regex", "serde", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", ] [[package]] @@ -3601,7 +3596,7 @@ dependencies = [ "serde", "serde_json", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tracing", @@ -3626,7 +3621,7 @@ dependencies = [ "serde", "serde_json", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tracing", @@ -3654,7 +3649,7 @@ dependencies = [ "reqwest 0.12.15", "serde_json", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tracing", @@ -3664,15 +3659,15 @@ dependencies = [ [[package]] name = "hstr" -version = "0.2.12" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dae404c0c5d4e95d4858876ab02eecd6a196bb8caa42050dfa809938833fc412" +checksum = "0c43c0a9e8fbdb3bb9dc8eee85e1e2ac81605418b4c83b6b7413cbf14d56ca5c" dependencies = [ "hashbrown 0.14.5", "new_debug_unreachable", "once_cell", - "phf", - "rustc-hash 1.1.0", + "rustc-hash 2.1.1", + "serde", "triomphe", ] @@ -4111,13 +4106,14 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.7.1" +version = "2.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" +checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2" dependencies = [ "equivalent", - "hashbrown 0.15.5", + "hashbrown 0.16.1", "serde", + "serde_core", ] [[package]] @@ -4127,7 +4123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ "ahash 0.8.11", - "indexmap 2.7.1", + "indexmap 2.12.1", "is-terminal", "itoa", "log", @@ -4150,7 +4146,7 @@ dependencies = [ "crossbeam-utils", "dashmap 6.1.0", "env_logger", - "indexmap 2.7.1", + "indexmap 2.12.1", "itoa", "log", "num-format", @@ -4235,7 +4231,7 @@ checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9" dependencies = [ "hermit-abi 0.5.2", "libc", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -4299,7 +4295,7 @@ checksum = "24a46169c7a10358cdccfb179910e8a5a392fc291bdb409da9aeece5b19786d8" dependencies = [ "jiff-tzdb-platform", "serde", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -4334,16 +4330,15 @@ checksum = "72167d68f5fce3b8655487b8038691a3c9984ee769590f93f2a631f4ad64e4f5" [[package]] name = "js-source-scopes" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adfdc25288ccb82b33c3aa3f14587fd920b825690f3c4f8c5385b1d8998e9a40" +version = "0.6.0" +source = "git+https://github.com/getsentry/js-source-scopes?rev=abea51a0e74840a8d1ec96a61ff36b488994f68c#abea51a0e74840a8d1ec96a61ff36b488994f68c" dependencies = [ - "indexmap 2.7.1", - "sourcemap 8.0.1", + "indexmap 2.12.1", + "sourcemap", "swc_common", "swc_ecma_parser", "swc_ecma_visit", - "thiserror 1.0.69", + "thiserror 2.0.17", "tracing", ] @@ -4518,7 +4513,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -4661,9 +4656,9 @@ checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" [[package]] name = "log" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" +checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" dependencies = [ "value-bag", ] @@ -4817,7 +4812,7 @@ dependencies = [ "hyper 1.6.0", "hyper-tls", "hyper-util", - "indexmap 2.7.1", + "indexmap 2.12.1", "ipnet", "metrics", "metrics-util", @@ -4934,7 +4929,7 @@ dependencies = [ "loom", "parking_lot", "portable-atomic", - "rustc_version 0.4.1", + "rustc_version", "smallvec", "tagptr", "thiserror 1.0.69", @@ -4992,7 +4987,7 @@ dependencies = [ "libloading", "neon-macros", "once_cell", - "semver 1.0.25", + "semver", "send_wrapper", "smallvec", ] @@ -5309,7 +5304,7 @@ dependencies = [ "futures-sink", "js-sys", "pin-project-lite", - "thiserror 2.0.16", + "thiserror 2.0.17", "tracing", ] @@ -5400,9 +5395,9 @@ dependencies = [ "glob", "opentelemetry 0.29.1", "percent-encoding", - "rand 0.9.1", + "rand 0.9.2", "serde_json", - "thiserror 2.0.16", + "thiserror 2.0.17", ] [[package]] @@ -5414,12 +5409,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "outref" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f222829ae9293e33a9f5e9f440c6760a3d450a64affe1846486b140db81c1f4" - [[package]] name = "outref" version = "0.5.1" @@ -5566,7 +5555,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1db05f56d34358a8b1066f67cbb203ee3e7ed2ba674a6263a1d5ec6db2204323" dependencies = [ "memchr", - "thiserror 2.0.16", + "thiserror 2.0.17", "ucd-trie", ] @@ -5610,7 +5599,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.7.1", + "indexmap 2.12.1", ] [[package]] @@ -5812,7 +5801,7 @@ dependencies = [ "chrono", "derive_builder", "reqwest 0.11.24", - "semver 1.0.25", + "semver", "serde", "serde_json", "uuid", @@ -5823,7 +5812,7 @@ name = "posthog-symbol-data" version = "0.3.0" dependencies = [ "serde", - "thiserror 2.0.16", + "thiserror 2.0.17", ] [[package]] @@ -5833,7 +5822,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe5471c1aad2514de61c8cbfd0c52fb3eb7efa03229737178442c2277d700330" dependencies = [ "serde", - "thiserror 2.0.16", + "thiserror 2.0.17", ] [[package]] @@ -5863,7 +5852,7 @@ dependencies = [ "spin 0.10.0", "symbolic-demangle", "tempfile", - "thiserror 2.0.16", + "thiserror 2.0.17", ] [[package]] @@ -5981,7 +5970,7 @@ dependencies = [ "serde_json", "serve-metrics", "sqlx", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", "tokio", "tracing", @@ -6068,7 +6057,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4aeaa1f2460f1d348eeaeed86aea999ce98c1bded6f089ff8514c9d9dbdc973" dependencies = [ "anyhow", - "indexmap 2.7.1", + "indexmap 2.12.1", "log", "protobuf", "protobuf-support", @@ -6216,9 +6205,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", @@ -6360,7 +6349,7 @@ dependencies = [ "num-bigint", "percent-encoding", "pin-project-lite", - "rand 0.9.1", + "rand 0.9.2", "ryu", "sha1_smol", "socket2 0.6.0", @@ -6423,9 +6412,9 @@ dependencies = [ [[package]] name = "regex-lite" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53a49587ad06b26609c52e423de037e7f57f20d53535d66e08c695f347df952a" +checksum = "8d942b98df5e658f56f20d592c7f868833fe38115e65c33003d8cd224b0155da" [[package]] name = "regex-syntax" @@ -6669,7 +6658,7 @@ dependencies = [ "futures-timer", "futures-util", "rstest_macros", - "rustc_version 0.4.1", + "rustc_version", ] [[package]] @@ -6685,7 +6674,7 @@ dependencies = [ "quote", "regex", "relative-path", - "rustc_version 0.4.1", + "rustc_version", "syn 2.0.89", "unicode-ident", ] @@ -6724,22 +6713,13 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - [[package]] name = "rustc_version" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" dependencies = [ - "semver 1.0.25", + "semver", ] [[package]] @@ -6779,7 +6759,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.11.0", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -7027,38 +7007,29 @@ dependencies = [ "libc", ] -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser", -] - [[package]] name = "semver" version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "send_wrapper" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" +[[package]] +name = "seq-macro" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc" + [[package]] name = "serde" -version = "1.0.220" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceecad4c782e936ac90ecfd6b56532322e3262b14320abf30ce89a92ffdbfe22" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" dependencies = [ "serde_core", "serde_derive", @@ -7089,18 +7060,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.220" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddba47394f3b862d6ff6efdbd26ca4673e3566a307880a0ffb98f274bbe0ec32" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.220" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60e1f3b1761e96def5ec6d04a6e7421c0404fa3cf5c0155f1e2848fae3d8cc08" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", @@ -7120,14 +7091,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.140" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" +checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" dependencies = [ "itoa", "memchr", "ryu", "serde", + "serde_core", ] [[package]] @@ -7253,15 +7225,6 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "simd-abstraction" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cadb29c57caadc51ff8346233b5cec1d240b68ce55cf1afc764818791876987" -dependencies = [ - "outref 0.1.0", -] - [[package]] name = "simd-adler32" version = "0.3.7" @@ -7288,7 +7251,7 @@ checksum = "297f631f50729c8c99b84667867963997ec0b50f32b2a7dbcab828ef0541e8bb" dependencies = [ "num-bigint", "num-traits", - "thiserror 2.0.16", + "thiserror 2.0.17", "time", ] @@ -7371,30 +7334,11 @@ dependencies = [ [[package]] name = "sourcemap" -version = "8.0.1" +version = "9.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "208d40b9e8cad9f93613778ea295ed8f3c2b1824217c6cfc7219d3f6f45b96d4" +checksum = "e22afbcb92ce02d23815b9795523c005cb9d3c214f8b7a66318541c240ea7935" dependencies = [ - "base64-simd 0.7.0", - "bitvec", - "data-encoding", - "debugid", - "if_chain", - "rustc-hash 1.1.0", - "rustc_version 0.2.3", - "serde", - "serde_json", - "unicode-id-start", - "url", -] - -[[package]] -name = "sourcemap" -version = "9.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd430118acc9fdd838557649b9b43fd0a78e3834d84a283b466f8e84720d6101" -dependencies = [ - "base64-simd 0.8.0", + "base64-simd", "bitvec", "data-encoding", "debugid", @@ -7481,7 +7425,7 @@ dependencies = [ "futures-util", "hashbrown 0.15.5", "hashlink", - "indexmap 2.7.1", + "indexmap 2.12.1", "log", "memchr", "native-tls", @@ -7492,7 +7436,7 @@ dependencies = [ "serde_json", "sha2", "smallvec", - "thiserror 2.0.16", + "thiserror 2.0.17", "tokio", "tokio-stream", "tracing", @@ -7578,7 +7522,7 @@ dependencies = [ "smallvec", "sqlx-core", "stringprep", - "thiserror 2.0.16", + "thiserror 2.0.17", "tracing", "uuid", "whoami", @@ -7618,7 +7562,7 @@ dependencies = [ "smallvec", "sqlx-core", "stringprep", - "thiserror 2.0.16", + "thiserror 2.0.17", "tracing", "uuid", "whoami", @@ -7649,6 +7593,16 @@ dependencies = [ "uuid", ] +[[package]] +name = "srcsrv" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85cd3e3828fb4dd5ba0e7091777edb6c3db3cd2d6fc10547b29b40f6949a29be" +dependencies = [ + "memchr", + "thiserror 2.0.17", +] + [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -7665,7 +7619,7 @@ dependencies = [ "cfg-if", "libc", "psm", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -7696,11 +7650,10 @@ dependencies = [ [[package]] name = "string_enum" -version = "0.4.4" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05e383308aebc257e7d7920224fa055c632478d92744eca77f99be8fa1545b90" +checksum = "ae36a4951ca7bd1cfd991c241584a9824a70f6aff1e7d4f693fb3f2465e4030e" dependencies = [ - "proc-macro2", "quote", "swc_macros_common", "syn 2.0.89", @@ -7771,31 +7724,31 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "swc_atoms" -version = "0.6.7" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" +checksum = "d4ccbe2ecad10ad7432100f878a107b1d972a8aee83ca53184d00c23a078bb8a" dependencies = [ "hstr", "once_cell", - "rustc-hash 1.1.0", "serde", ] [[package]] name = "swc_common" -version = "0.33.26" +version = "17.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2f9706038906e66f3919028f9f7a37f3ed552f1b85578e93f4468742e2da438" +checksum = "259b675d633a26d24efe3802a9d88858c918e6e8f062d3222d3aa02d56a2cf4c" dependencies = [ + "anyhow", "ast_node", "better_scoped_tls", - "cfg-if", + "bytes-str", "either", "from_variant", "new_debug_unreachable", "num-bigint", "once_cell", - "rustc-hash 1.1.0", + "rustc-hash 2.1.1", "serde", "siphasher 0.3.11", "swc_atoms", @@ -7808,49 +7761,51 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.113.7" +version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98a534a8360a076a030989f6d121ba6044345594bdf0457c4629f432742026b8" +checksum = "a573a0c72850dec8d4d8085f152d5778af35a2520c3093b242d2d1d50776da7c" dependencies = [ "bitflags 2.9.1", "is-macro", "num-bigint", + "once_cell", "phf", - "scoped-tls", + "rustc-hash 2.1.1", "string_enum", "swc_atoms", "swc_common", + "swc_visit", "unicode-id-start", ] [[package]] name = "swc_ecma_parser" -version = "0.144.3" +version = "27.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0b4193b9c127db1990a5a08111aafe0122bc8b138646807c63f2a6521b7da4" +checksum = "7f1a51af1a92cd4904c073b293e491bbc0918400a45d58227b34c961dd6f52d7" dependencies = [ + "bitflags 2.9.1", "either", - "new_debug_unreachable", "num-bigint", - "num-traits", "phf", + "rustc-hash 2.1.1", + "seq-macro", "serde", - "smallvec", "smartstring", "stacker", "swc_atoms", "swc_common", "swc_ecma_ast", "tracing", - "typed-arena", ] [[package]] name = "swc_ecma_visit" -version = "0.99.1" +version = "18.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a6ce28ad8e591f8d627f1f9cb26b25e5d83052a9bc1b674d95fc28040cfa98" +checksum = "a9611a72a4008d62608547a394e5d72a5245413104db096d95a52368a8cc1d63" dependencies = [ + "new_debug_unreachable", "num-bigint", "swc_atoms", "swc_common", @@ -7861,9 +7816,9 @@ dependencies = [ [[package]] name = "swc_eq_ignore_macros" -version = "0.1.4" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63db0adcff29d220c3d151c5b25c0eabe7e32dd936212b84cdaa1392e3130497" +checksum = "c16ce73424a6316e95e09065ba6a207eba7765496fed113702278b7711d4b632" dependencies = [ "proc-macro2", "quote", @@ -7872,9 +7827,9 @@ dependencies = [ [[package]] name = "swc_macros_common" -version = "0.3.14" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27e18fbfe83811ffae2bb23727e45829a0d19c6870bced7c0f545cc99ad248dd" +checksum = "aae1efbaa74943dc5ad2a2fb16cbd78b77d7e4d63188f3c5b4df2b4dcd2faaae" dependencies = [ "proc-macro2", "quote", @@ -7883,32 +7838,19 @@ dependencies = [ [[package]] name = "swc_visit" -version = "0.5.14" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043d11fe683dcb934583ead49405c0896a5af5face522e4682c16971ef7871b9" +checksum = "62fb71484b486c185e34d2172f0eabe7f4722742aad700f426a494bb2de232a2" dependencies = [ "either", - "swc_visit_macros", -] - -[[package]] -name = "swc_visit_macros" -version = "0.5.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92807d840959f39c60ce8a774a3f83e8193c658068e6d270dbe0a05e40e90b41" -dependencies = [ - "Inflector", - "proc-macro2", - "quote", - "swc_macros_common", - "syn 2.0.89", + "new_debug_unreachable", ] [[package]] name = "symbolic" -version = "12.12.1" +version = "12.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c35fab6a1d4ce7c408ef9fe7305882831f62a88c2375c18dbd61b13aa08de9cc" +checksum = "857285fb5f446824e6bc78dc41267d8e544a3ed802ed58aee3445e71968a57c2" dependencies = [ "symbolic-common", "symbolic-debuginfo", @@ -7917,9 +7859,9 @@ dependencies = [ [[package]] name = "symbolic-common" -version = "12.12.1" +version = "12.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d4d73159efebfb389d819fd479afb2dbd57dcb3e3f4b7fcfa0e675f5a46c1cb" +checksum = "b3d8046c5674ab857104bc4559d505f4809b8060d57806e45d49737c97afeb60" dependencies = [ "debugid", "memmap2", @@ -7929,16 +7871,16 @@ dependencies = [ [[package]] name = "symbolic-debuginfo" -version = "12.12.1" +version = "12.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae995dfbe053daa5eaa1f49fc9af1d9c7469a4e82cd79073048ac1250f08e3f7" +checksum = "e16d3491f94b4f4481b64d59592b5a2d9d17f9843bf264eb743c2de1a811984a" dependencies = [ "debugid", "elementtree", "elsa", "fallible-iterator 0.3.0", "flate2", - "gimli 0.31.1", + "gimli 0.32.3", "goblin", "lazy_static", "nom", @@ -7951,6 +7893,7 @@ dependencies = [ "serde", "serde_json", "smallvec", + "srcsrv", "symbolic-common", "symbolic-ppdb", "thiserror 1.0.69", @@ -7972,12 +7915,12 @@ dependencies = [ [[package]] name = "symbolic-ppdb" -version = "12.12.1" +version = "12.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7dd2fb720ae89293253b60cd701c3a1de556a3b54ec9170ca2098789a994b1" +checksum = "e3e9d30ebe090d47489f02ae126878035fa70022d81229801e32f0f335e0727b" dependencies = [ "flate2", - "indexmap 2.7.1", + "indexmap 2.12.1", "serde", "serde_json", "symbolic-common", @@ -7988,13 +7931,13 @@ dependencies = [ [[package]] name = "symbolic-sourcemapcache" -version = "12.12.1" +version = "12.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "729770c22bf86a5ada84850556860a50a0eb519ecf394cf234fc36d1719ee110" +checksum = "a6281a883a884dca38907bd2f17cf3f062ceacdaf7159c66134cc1b47907ca7c" dependencies = [ "itertools 0.13.0", "js-source-scopes", - "sourcemap 8.0.1", + "sourcemap", "symbolic-common", "thiserror 1.0.69", "tracing", @@ -8124,7 +8067,7 @@ dependencies = [ "getrandom 0.3.1", "once_cell", "rustix 1.1.2", - "windows-sys 0.59.0", + "windows-sys 0.52.0", ] [[package]] @@ -8188,11 +8131,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.16" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" dependencies = [ - "thiserror-impl 2.0.16", + "thiserror-impl 2.0.17", ] [[package]] @@ -8208,9 +8151,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.16" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" dependencies = [ "proc-macro2", "quote", @@ -8473,7 +8416,7 @@ version = "0.22.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ - "indexmap 2.7.1", + "indexmap 2.12.1", "serde", "serde_spanned", "toml_datetime", @@ -8700,9 +8643,9 @@ dependencies = [ [[package]] name = "triomphe" -version = "0.1.11" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "859eb650cfee7434994602c3a68b25d77ad9e68c8a6cd491616ef86661382eb3" +checksum = "dd69c5aa8f924c7519d6372789a74eac5b94fb0f8fcf0d4a97eb0bfc3e785f39" dependencies = [ "serde", "stable_deref_trait", @@ -8714,12 +8657,6 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "typed-arena" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" - [[package]] name = "typenum" version = "1.17.0" @@ -8749,9 +8686,9 @@ checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-id-start" -version = "1.0.4" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02aebfa694eccbbbffdd92922c7de136b9fe764396d2f10e21bce1681477cfc1" +checksum = "81b79ad29b5e19de4260020f8919b443b2ef0277d242ce532ec7b7a2cc8b6007" [[package]] name = "unicode-ident" @@ -8770,9 +8707,9 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.14" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" [[package]] name = "unicode-xid" @@ -8835,9 +8772,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.17.0" +version = "1.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" +checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2" dependencies = [ "getrandom 0.3.1", "js-sys", @@ -9019,8 +8956,8 @@ dependencies = [ "ahash 0.8.11", "bitflags 2.9.1", "hashbrown 0.14.5", - "indexmap 2.7.1", - "semver 1.0.25", + "indexmap 2.12.1", + "semver", "serde", ] @@ -9644,7 +9581,7 @@ dependencies = [ "crossbeam-utils", "displaydoc", "flate2", - "indexmap 2.7.1", + "indexmap 2.12.1", "memchr", "thiserror 1.0.69", "zopfli", @@ -9665,7 +9602,7 @@ dependencies = [ "flate2", "getrandom 0.3.1", "hmac", - "indexmap 2.7.1", + "indexmap 2.12.1", "liblzma", "memchr", "pbkdf2", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 1e86d63a991a..d61c2cc6af7b 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -52,6 +52,11 @@ unit_bindings = "deny" # See https://rust-lang.github.io/rust-clippy/, we might want to add more enum_glob_use = "deny" +# this is needed until getsentry/symbolic update the js-source-scopes to >0.6.0 +# I made a PR for the upstream fix here https://github.com/getsentry/symbolic/pull/945 +[patch.crates-io] +js-source-scopes = { git = "https://github.com/getsentry/js-source-scopes", rev = "abea51a0e74840a8d1ec96a61ff36b488994f68c" } + [workspace.dependencies] anyhow = "1.0" assert-json-diff = "2.0.2" diff --git a/rust/capture-logs/Cargo.toml b/rust/capture-logs/Cargo.toml index 5adf10d76c0f..4f595380d13f 100644 --- a/rust/capture-logs/Cargo.toml +++ b/rust/capture-logs/Cargo.toml @@ -29,7 +29,7 @@ base64 = { workspace = true } rdkafka = { workspace = true } uuid = { workspace = true } chrono = { workspace = true } -apache-avro = { version = "0.18.0", features = ["zstandard"] } +apache-avro = { version = "0.21.0", features = ["zstandard"] } prost = "0.13.5" bytes = { workspace = true } tower-http = { workspace = true } diff --git a/rust/capture-logs/src/kafka.rs b/rust/capture-logs/src/kafka.rs index 131fb34960d3..23dce6745bac 100644 --- a/rust/capture-logs/src/kafka.rs +++ b/rust/capture-logs/src/kafka.rs @@ -233,7 +233,7 @@ impl KafkaSink { }), ), }) { - Err((err, _)) => Err(anyhow!(format!("kafka error: {}", err))), + Err((err, _)) => Err(anyhow!(format!("kafka error: {err}"))), Ok(delivery_future) => Ok(delivery_future), }?; diff --git a/rust/capture/tests/common/utils.rs b/rust/capture/tests/common/utils.rs index a7435e0d728c..13ddde912a1b 100644 --- a/rust/capture/tests/common/utils.rs +++ b/rust/capture/tests/common/utils.rs @@ -286,7 +286,7 @@ impl EphemeralTopic { std::thread::sleep(Duration::from_millis(100)); continue; } - bail!("kafka read error: {}", err); + bail!("kafka read error: {err}"); } None => bail!("kafka read timeout"), } @@ -321,7 +321,7 @@ impl EphemeralTopic { std::thread::sleep(Duration::from_millis(100)); continue; } - bail!("kafka read error: {}", err); + bail!("kafka read error: {err}"); } None => bail!("kafka read timeout"), } @@ -368,7 +368,7 @@ impl EphemeralTopic { std::thread::sleep(Duration::from_millis(100)); continue; } - bail!("kafka read error: {}", err); + bail!("kafka read error: {err}"); } None => bail!("kafka read timeout"), } diff --git a/rust/common/hypercache/tests/integration_tests.rs b/rust/common/hypercache/tests/integration_tests.rs index 5038b0fff6c1..78a5b4567d90 100644 --- a/rust/common/hypercache/tests/integration_tests.rs +++ b/rust/common/hypercache/tests/integration_tests.rs @@ -103,7 +103,7 @@ async fn set_cache_value( .body(json_str.into_bytes().into()) .send() .await - .map_err(|e| anyhow::anyhow!("Failed to set S3 object: {}", e))?; + .map_err(|e| anyhow::anyhow!("Failed to set S3 object: {e}"))?; Ok(()) } diff --git a/rust/cymbal/Cargo.toml b/rust/cymbal/Cargo.toml index 70bd27337e1e..0f763fc4970f 100644 --- a/rust/cymbal/Cargo.toml +++ b/rust/cymbal/Cargo.toml @@ -27,7 +27,7 @@ sqlx = { workspace = true } serde_json = { workspace = true } serde = { workspace = true } sourcemap = "9.0.0" -symbolic = { version = "12.12.1", features = ["sourcemapcache"] } +symbolic = { version = "12.17.0", features = ["sourcemapcache"] } proguard = "5.6.2" reqwest = { workspace = true } sha2 = "0.10.8" diff --git a/rust/feature-flags/src/utils/test_utils.rs b/rust/feature-flags/src/utils/test_utils.rs index 9aae797a002b..9f6741b3401c 100644 --- a/rust/feature-flags/src/utils/test_utils.rs +++ b/rust/feature-flags/src/utils/test_utils.rs @@ -1208,7 +1208,7 @@ impl TestContext { redis .set(cache_key, payload) .await - .map_err(|e| anyhow::anyhow!("Failed to set cache: {}", e))?; + .map_err(|e| anyhow::anyhow!("Failed to set cache: {e}"))?; Ok(()) } diff --git a/rust/kafka-deduplicator/src/config.rs b/rust/kafka-deduplicator/src/config.rs index 7d1dfb8035e5..a2e824a3a045 100644 --- a/rust/kafka-deduplicator/src/config.rs +++ b/rust/kafka-deduplicator/src/config.rs @@ -280,15 +280,11 @@ impl Config { .parse() .with_context(|| format!("Failed to parse scientific notation: {s}"))?; if float_val < 0.0 { - return Err(anyhow::anyhow!( - "Storage capacity cannot be negative: {}", - s - )); + return Err(anyhow::anyhow!("Storage capacity cannot be negative: {s}")); } if float_val > u64::MAX as f64 { return Err(anyhow::anyhow!( - "Storage capacity exceeds maximum value: {}", - s + "Storage capacity exceeds maximum value: {s}" )); } return Ok(float_val as u64); diff --git a/rust/kafka-deduplicator/src/deduplication_processor.rs b/rust/kafka-deduplicator/src/deduplication_processor.rs index 47f82dc74122..6c9a6a48de89 100644 --- a/rust/kafka-deduplicator/src/deduplication_processor.rs +++ b/rust/kafka-deduplicator/src/deduplication_processor.rs @@ -552,10 +552,7 @@ impl DeduplicationProcessor { key, output_topic, e ); Err(anyhow::anyhow!( - "Failed to publish event with key '{}' to topic '{}': {}", - key, - output_topic, - e + "Failed to publish event with key '{key}' to topic '{output_topic}': {e}" )) } } @@ -641,11 +638,7 @@ impl MessageProcessor for DeduplicationProcessor { topic, partition, offset, e ); return Err(anyhow::anyhow!( - "Failed to parse RawEvent from data field at {}:{} offset {}: {}", - topic, - partition, - offset, - e + "Failed to parse RawEvent from data field at {topic}:{partition} offset {offset}: {e}" )); } }; diff --git a/rust/kafka-deduplicator/src/kafka/tracker.rs b/rust/kafka-deduplicator/src/kafka/tracker.rs index a54daa5b650d..a2ba9ac1e0d4 100644 --- a/rust/kafka-deduplicator/src/kafka/tracker.rs +++ b/rust/kafka-deduplicator/src/kafka/tracker.rs @@ -375,7 +375,7 @@ impl PartitionTrackingInfo { } // No-op transitions (already in target state) (current, target) if current == target => { - return Err(anyhow::anyhow!("Already in state {:?}", current)); + return Err(anyhow::anyhow!("Already in state {current:?}")); } // Invalid transitions _ => { diff --git a/rust/kafka-deduplicator/src/processor_pool.rs b/rust/kafka-deduplicator/src/processor_pool.rs index 79ec8c0392d5..0a926b05a757 100644 --- a/rust/kafka-deduplicator/src/processor_pool.rs +++ b/rust/kafka-deduplicator/src/processor_pool.rs @@ -289,7 +289,7 @@ mod tests { if let Some(fail_offset) = self.fail_on_offset { if offset == fail_offset { self.failed_count.fetch_add(1, Ordering::SeqCst); - return Err(anyhow::anyhow!("Simulated failure at offset {}", offset)); + return Err(anyhow::anyhow!("Simulated failure at offset {offset}")); } } diff --git a/rust/kafka-deduplicator/src/rocksdb/dedup_metadata.rs b/rust/kafka-deduplicator/src/rocksdb/dedup_metadata.rs index e44791c8212c..f23dc1283d58 100644 --- a/rust/kafka-deduplicator/src/rocksdb/dedup_metadata.rs +++ b/rust/kafka-deduplicator/src/rocksdb/dedup_metadata.rs @@ -42,20 +42,18 @@ impl TryFrom<&SerializableRawEvent> for RawEvent { let uuid = serializable .uuid .as_ref() - .map(|s| s.parse().map_err(|e| anyhow!("Invalid UUID: {}", e))) + .map(|s| s.parse().map_err(|e| anyhow!("Invalid UUID: {e}"))) .transpose()?; let distinct_id = serializable .distinct_id_json .as_ref() - .map(|s| { - serde_json::from_str(s).map_err(|e| anyhow!("Invalid distinct_id JSON: {}", e)) - }) + .map(|s| serde_json::from_str(s).map_err(|e| anyhow!("Invalid distinct_id JSON: {e}"))) .transpose()?; let properties: HashMap = serde_json::from_str(&serializable.properties_json) - .map_err(|e| anyhow!("Invalid properties JSON: {}", e))?; + .map_err(|e| anyhow!("Invalid properties JSON: {e}"))?; Ok(RawEvent { uuid, @@ -119,7 +117,7 @@ impl VersionedMetadata { bincode::serde::decode_from_slice(payload, bincode::config::standard())?; Ok(VersionedMetadata::V1(v1)) } - _ => Err(anyhow::anyhow!("unknown version: {}", version)), + _ => Err(anyhow::anyhow!("unknown version: {version}")), } } } diff --git a/rust/kafka-deduplicator/src/rocksdb/store.rs b/rust/kafka-deduplicator/src/rocksdb/store.rs index 5b444b3beac4..88eb07186816 100644 --- a/rust/kafka-deduplicator/src/rocksdb/store.rs +++ b/rust/kafka-deduplicator/src/rocksdb/store.rs @@ -349,7 +349,7 @@ impl RocksDbStore { Ok(_) => Ok(()), Err(e) => { self.metrics.counter(ROCKSDB_ERRORS_COUNTER).increment(1); - Err(anyhow::anyhow!("Failed to flush: {}", e)) + Err(anyhow::anyhow!("Failed to flush: {e}")) } } } @@ -368,7 +368,7 @@ impl RocksDbStore { pub fn flush_wal(&self, sync: bool) -> Result<()> { self.db .flush_wal(sync) - .map_err(|e| anyhow::anyhow!("Failed to flush WAL (sync={}): {}", sync, e)) + .map_err(|e| anyhow::anyhow!("Failed to flush WAL (sync={sync}): {e}")) } /// Get the latest sequence number from the database diff --git a/rust/kafka-deduplicator/tests/batch_consumer_integration_tests.rs b/rust/kafka-deduplicator/tests/batch_consumer_integration_tests.rs index d85eb5a8185b..c12dae44fc8f 100644 --- a/rust/kafka-deduplicator/tests/batch_consumer_integration_tests.rs +++ b/rust/kafka-deduplicator/tests/batch_consumer_integration_tests.rs @@ -77,7 +77,7 @@ async fn send_test_messages( producer .send(record, Timeout::After(Duration::from_secs(5))) .await - .map_err(|(e, _)| anyhow::anyhow!("Failed to send message: {}", e))?; + .map_err(|(e, _)| anyhow::anyhow!("Failed to send message: {e}"))?; } // Give kafka some time to process the messages