diff --git a/Cargo.lock b/Cargo.lock index 15aa427ac6..252c15531d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -336,7 +336,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -505,7 +505,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -656,7 +656,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -799,7 +799,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn 2.0.87", + "syn 2.0.117", "tempfile", "toml", ] @@ -851,6 +851,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.1", +] + [[package]] name = "chrono" version = "0.4.38" @@ -935,7 +946,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1108,6 +1119,15 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + [[package]] name = "crc32fast" version = "1.4.2" @@ -1273,7 +1293,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1287,7 +1307,7 @@ dependencies = [ "indexmap 2.12.1", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1305,7 +1325,7 @@ dependencies = [ "indexmap 2.12.1", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1329,7 +1349,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1340,7 +1360,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1422,7 +1442,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1541,7 +1561,7 @@ dependencies = [ "nix 0.29.0", "prctl", "priority-queue", - "rand 0.8.5", + "rand 0.10.1", "rmp-serde", "sendfd", "serde", @@ -1593,7 +1613,7 @@ name = "datadog-sidecar-macros" version = "0.0.1" dependencies = [ "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1623,7 +1643,7 @@ checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1644,7 +1664,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1681,7 +1701,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1730,7 +1750,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -1995,7 +2015,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -2065,10 +2085,26 @@ checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" dependencies = [ "cfg-if", "libc", - "r-efi", + "r-efi 5.2.0", "wasi 0.14.2+wasi-0.2.4", ] +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", + "wasip2", + "wasip3", + "wasm-bindgen", +] + [[package]] name = "gimli" version = "0.31.1" @@ -2181,9 +2217,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.1" +version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ "allocator-api2", "equivalent", @@ -2616,9 +2652,15 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + [[package]] name = "ident_case" version = "1.0.1" @@ -2806,6 +2848,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + [[package]] name = "libc" version = "0.2.178" @@ -2871,7 +2919,7 @@ dependencies = [ "multer", "nix 0.29.0", "pin-project", - "rand 0.8.5", + "rand 0.10.1", "regex", "regex-lite", "reqwest", @@ -2927,7 +2975,7 @@ dependencies = [ "os_info", "page_size", "portable-atomic", - "rand 0.8.5", + "rand 0.10.1", "schemars", "serde", "serde_json", @@ -2971,6 +3019,7 @@ dependencies = [ "criterion", "either", "getrandom 0.2.15", + "getrandom 0.4.2", "http", "http-body-util", "httpmock", @@ -2985,7 +3034,7 @@ dependencies = [ "libdd-trace-protobuf", "libdd-trace-stats", "libdd-trace-utils", - "rand 0.8.5", + "rand 0.10.1", "regex", "rmp-serde", "serde", @@ -3072,7 +3121,7 @@ dependencies = [ "libdd-trace-protobuf", "memfd", "prost", - "rand 0.8.5", + "rand 0.10.1", "rmp", "rmp-serde", "serde", @@ -3162,7 +3211,7 @@ dependencies = [ "parking_lot", "proptest", "prost", - "rand 0.8.5", + "rand 0.10.1", "reqwest", "rustc-hash", "rustls", @@ -3261,7 +3310,7 @@ dependencies = [ "base64 0.22.1", "bytes", "futures", - "hashbrown 0.15.1", + "hashbrown 0.15.5", "http", "http-body-util", "httpmock", @@ -3317,7 +3366,7 @@ dependencies = [ "criterion", "duplicate", "libdd-trace-protobuf", - "rand 0.8.5", + "rand 0.10.1", ] [[package]] @@ -3358,7 +3407,7 @@ dependencies = [ "anyhow", "async-trait", "criterion", - "hashbrown 0.15.1", + "hashbrown 0.15.5", "http", "httpmock", "libdd-capabilities", @@ -3369,7 +3418,7 @@ dependencies = [ "libdd-trace-obfuscation", "libdd-trace-protobuf", "libdd-trace-utils", - "rand 0.8.5", + "rand 0.10.1", "rmp-serde", "serde", "tokio", @@ -3405,7 +3454,7 @@ dependencies = [ "libdd-trace-protobuf", "libdd-trace-utils", "prost", - "rand 0.8.5", + "rand 0.10.1", "rmp", "rmp-serde", "rmpv", @@ -3781,7 +3830,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4077,7 +4126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" dependencies = [ "fixedbitset", - "hashbrown 0.15.1", + "hashbrown 0.15.5", "indexmap 2.12.1", ] @@ -4104,7 +4153,7 @@ checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4242,7 +4291,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" dependencies = [ "proc-macro2", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4291,9 +4340,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.89" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ "unicode-ident", ] @@ -4342,7 +4391,7 @@ dependencies = [ "prost", "prost-types", "regex", - "syn 2.0.87", + "syn 2.0.117", "tempfile", ] @@ -4356,7 +4405,7 @@ dependencies = [ "itertools", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4467,7 +4516,7 @@ dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4480,7 +4529,7 @@ dependencies = [ "proc-macro2", "pyo3-build-config", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4513,6 +4562,12 @@ version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "rand" version = "0.8.5" @@ -4535,6 +4590,17 @@ dependencies = [ "zerocopy 0.8.24", ] +[[package]] +name = "rand" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" +dependencies = [ + "chacha20", + "getrandom 0.4.2", + "rand_core 0.10.1", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -4573,6 +4639,12 @@ dependencies = [ "getrandom 0.3.2", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + [[package]] name = "rand_xorshift" version = "0.3.0" @@ -4637,7 +4709,7 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -4979,7 +5051,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5011,7 +5083,7 @@ checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5107,7 +5179,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5118,7 +5190,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5189,7 +5261,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5227,7 +5299,7 @@ checksum = "5d69265a08751de7844521fd15003ae0a888e035773ba05695c5c759a6f89eef" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5237,7 +5309,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.14", "digest", ] @@ -5248,7 +5320,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.14", "digest", ] @@ -5418,7 +5490,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5550,9 +5622,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.87" +version = "2.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" dependencies = [ "proc-macro2", "quote", @@ -5576,7 +5648,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5722,7 +5794,7 @@ checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5733,7 +5805,7 @@ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -5839,7 +5911,7 @@ checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -6065,7 +6137,7 @@ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -6339,6 +6411,24 @@ dependencies = [ "wit-bindgen-rt", ] +[[package]] +name = "wasip2" +version = "1.0.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + [[package]] name = "wasm-bindgen" version = "0.2.100" @@ -6361,7 +6451,7 @@ dependencies = [ "log", "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", "wasm-bindgen-shared", ] @@ -6395,7 +6485,7 @@ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -6409,6 +6499,40 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.12.1", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap 2.12.1", + "semver", +] + [[package]] name = "web-sys" version = "0.3.72" @@ -6554,7 +6678,7 @@ checksum = "83577b051e2f49a058c308f17f273b570a6a758386fc291b5f6a934dd84e48c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -6565,7 +6689,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -6941,6 +7065,32 @@ dependencies = [ "windows 0.48.0", ] +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + [[package]] name = "wit-bindgen-rt" version = "0.39.0" @@ -6950,6 +7100,74 @@ dependencies = [ "bitflags", ] +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.12.1", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap 2.12.1", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.12.1", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + [[package]] name = "write16" version = "1.0.0" @@ -6999,7 +7217,7 @@ checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", "synstructure", ] @@ -7030,7 +7248,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -7041,7 +7259,7 @@ checksum = "a996a8f63c5c4448cd959ac1bab0aaa3306ccfd060472f85943ee0750f0169be" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] @@ -7061,7 +7279,7 @@ checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", "synstructure", ] @@ -7090,7 +7308,7 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.87", + "syn 2.0.117", ] [[package]] diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index 3ec30833d4..b32b5584ed 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -70,6 +70,7 @@ cc,https://github.com/rust-lang/cc-rs,MIT OR Apache-2.0,Alex Crichton cexpr,https://github.com/jethrogb/rust-cexpr,Apache-2.0 OR MIT,Jethro Beekman cfg-if,https://github.com/alexcrichton/cfg-if,MIT OR Apache-2.0,Alex Crichton +chacha20,https://github.com/RustCrypto/stream-ciphers,MIT OR Apache-2.0,RustCrypto Developers chrono,https://github.com/chronotope/chrono,MIT OR Apache-2.0,The chrono Authors ciborium,https://github.com/enarx/ciborium,Apache-2.0,Nathaniel McCallum ciborium-io,https://github.com/enarx/ciborium,Apache-2.0,Nathaniel McCallum @@ -199,6 +200,7 @@ icu_properties,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Projec icu_properties_data,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Project Developers icu_provider,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Project Developers icu_provider_macros,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Project Developers +id-arena,https://github.com/fitzgen/id-arena,MIT OR Apache-2.0,"Nick Fitzgerald , Aleksey Kladov " ident_case,https://github.com/TedDriggs/ident_case,MIT OR Apache-2.0,Ted Driggs idna,https://github.com/servo/rust-url,MIT OR Apache-2.0,The rust-url developers idna_adapter,https://github.com/hsivonen/idna_adapter,Apache-2.0 OR MIT,The rust-url developers @@ -219,6 +221,7 @@ js-sys,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys,MIT OR kernel32-sys,https://github.com/retep998/winapi-rs,MIT,Peter Atashian kv-log-macro,https://github.com/yoshuawuyts/kv-log-macro,MIT OR Apache-2.0,Yoshua Wuyts lazy_static,https://github.com/rust-lang-nursery/lazy-static.rs,MIT OR Apache-2.0,Marvin Löbel +leb128fmt,https://github.com/bluk/leb128fmt,MIT OR Apache-2.0,Bryant Luk libc,https://github.com/rust-lang/libc,MIT OR Apache-2.0,The Rust Project Developers libdd-libunwind-sys,https://github.com/DataDog/libdatadog/tree/main/libdd-libunwind-sys,Apache-2.0,The libdd-libunwind-sys Authors libloading,https://github.com/nagisa/rust_libloading,ISC,Simonas Kazlauskas @@ -327,6 +330,7 @@ r-efi,https://github.com/r-efi/r-efi,MIT OR Apache-2.0 OR LGPL-2.1-or-later,The rand,https://github.com/rust-random/rand,MIT OR Apache-2.0,"The Rand Project Developers, The Rust Project Developers" rand_chacha,https://github.com/rust-random/rand,MIT OR Apache-2.0,"The Rand Project Developers, The Rust Project Developers, The CryptoCorrosion Contributors" rand_core,https://github.com/rust-random/rand,MIT OR Apache-2.0,"The Rand Project Developers, The Rust Project Developers" +rand_core,https://github.com/rust-random/rand_core,MIT OR Apache-2.0,The Rand Project Developers rand_xorshift,https://github.com/rust-random/rngs,MIT OR Apache-2.0,"The Rand Project Developers, The Rust Project Developers" rand_xoshiro,https://github.com/rust-random/rngs,MIT OR Apache-2.0,The Rand Project Developers rayon,https://github.com/rayon-rs/rayon,MIT OR Apache-2.0,"Niko Matsakis , Josh Stone " @@ -487,12 +491,17 @@ walkdir,https://github.com/BurntSushi/walkdir,Unlicense OR MIT,Andrew Gallant wasi,https://github.com/bytecodealliance/wasi,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The Cranelift Project Developers wasi,https://github.com/bytecodealliance/wasi-rs,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The Cranelift Project Developers +wasip2,https://github.com/bytecodealliance/wasi-rs,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The wasip2 Authors +wasip3,https://github.com/bytecodealliance/wasi-rs,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The wasip3 Authors wasm-bindgen,https://github.com/rustwasm/wasm-bindgen,MIT OR Apache-2.0,The wasm-bindgen Developers wasm-bindgen-backend,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend,MIT OR Apache-2.0,The wasm-bindgen Developers wasm-bindgen-futures,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures,MIT OR Apache-2.0,The wasm-bindgen Developers wasm-bindgen-macro,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro,MIT OR Apache-2.0,The wasm-bindgen Developers wasm-bindgen-macro-support,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support,MIT OR Apache-2.0,The wasm-bindgen Developers wasm-bindgen-shared,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared,MIT OR Apache-2.0,The wasm-bindgen Developers +wasm-encoder,https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Nick Fitzgerald +wasm-metadata,https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The wasm-metadata Authors +wasmparser,https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Yury Delendik web-sys,https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys,MIT OR Apache-2.0,The wasm-bindgen Developers webpki-root-certs,https://github.com/rustls/webpki-roots,CDLA-Permissive-2.0,The webpki-root-certs Authors webpki-roots,https://github.com/rustls/webpki-roots,CDLA-Permissive-2.0,The webpki-roots Authors @@ -524,7 +533,13 @@ windows_x86_64_msvc,https://github.com/microsoft/windows-rs,MIT OR Apache-2.0,Mi winnow,https://github.com/winnow-rs/winnow,MIT,The winnow Authors winreg,https://github.com/gentoo90/winreg-rs,MIT,Igor Shaula winver,https://github.com/rhysd/winver,MIT,rhysd +wit-bindgen,https://github.com/bytecodealliance/wit-bindgen,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Alex Crichton +wit-bindgen-core,https://github.com/bytecodealliance/wit-bindgen,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Alex Crichton wit-bindgen-rt,https://github.com/bytecodealliance/wit-bindgen,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,The wit-bindgen-rt Authors +wit-bindgen-rust,https://github.com/bytecodealliance/wit-bindgen,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Alex Crichton +wit-bindgen-rust-macro,https://github.com/bytecodealliance/wit-bindgen,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Alex Crichton +wit-component,https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Peter Huene +wit-parser,https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser,Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT,Alex Crichton write16,https://github.com/hsivonen/write16,Apache-2.0 OR MIT,The write16 Authors writeable,https://github.com/unicode-org/icu4x,Unicode-3.0,The ICU4X Project Developers xattr,https://github.com/Stebalien/xattr,MIT OR Apache-2.0,Steven Allen diff --git a/bin_tests/tests/crashtracker_bin_test.rs b/bin_tests/tests/crashtracker_bin_test.rs index 8de0190131..678ffa6138 100644 --- a/bin_tests/tests/crashtracker_bin_test.rs +++ b/bin_tests/tests/crashtracker_bin_test.rs @@ -20,9 +20,10 @@ use bin_tests::{ validation::PayloadValidator, ArtifactsBuild, BuildProfile, }; +#[cfg(target_os = "linux")] +use libdd_crashtracker::default_max_threads; use libdd_crashtracker::{ - default_max_threads, CrashtrackerConfiguration, Metadata, SiCodes, SigInfo, SignalNames, - StacktraceCollection, + CrashtrackerConfiguration, Metadata, SiCodes, SigInfo, SignalNames, StacktraceCollection, }; use serde_json::Value; diff --git a/datadog-sidecar/Cargo.toml b/datadog-sidecar/Cargo.toml index 5c4ffffbf0..f28f40e7a5 100644 --- a/datadog-sidecar/Cargo.toml +++ b/datadog-sidecar/Cargo.toml @@ -39,7 +39,7 @@ http-body-util = "0.1" datadog-ipc = { path = "../datadog-ipc", features = ["tiny-bytes"] } datadog-ipc-macros = { path = "../datadog-ipc-macros" } -rand = "0.8.3" +rand = "0.10.1" rmp-serde = "1.1.1" libdd-trace-protobuf = { path = "../libdd-trace-protobuf" } serde = { version = "1.0", features = ["derive", "rc"] } diff --git a/datadog-sidecar/src/service/queue_id.rs b/datadog-sidecar/src/service/queue_id.rs index 33f815acce..8120308f4a 100644 --- a/datadog-sidecar/src/service/queue_id.rs +++ b/datadog-sidecar/src/service/queue_id.rs @@ -1,7 +1,7 @@ // Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/ // SPDX-License-Identifier: Apache-2.0 -use rand::Rng; +use rand::RngExt as _; use serde::{Deserialize, Serialize}; /// `QueueId` is a struct that represents a unique identifier for a queue. @@ -27,7 +27,7 @@ impl QueueId { /// ``` pub fn new_unique() -> Self { Self { - inner: rand::thread_rng().gen_range(1u64..u64::MAX), + inner: rand::rng().random_range(1u64..u64::MAX), } } } diff --git a/datadog-sidecar/src/setup/windows.rs b/datadog-sidecar/src/setup/windows.rs index e25c760583..1f84cc6d51 100644 --- a/datadog-sidecar/src/setup/windows.rs +++ b/datadog-sidecar/src/setup/windows.rs @@ -75,9 +75,9 @@ mod tests { #[test] fn test_shared_dir_can_connect_to_socket() -> anyhow::Result<()> { - use rand::distributions::Alphanumeric; - use rand::{thread_rng, Rng}; - let random_prefix: Vec = thread_rng().sample_iter(&Alphanumeric).take(8).collect(); + use rand::distr::Alphanumeric; + use rand::RngExt; + let random_prefix: Vec = rand::rng().sample_iter(&Alphanumeric).take(8).collect(); let liaison = super::NamedPipeLiaison::new(String::from_utf8_lossy(&random_prefix)); basic_liaison_connection_test(&liaison)?; Ok(()) diff --git a/libdd-common/Cargo.toml b/libdd-common/Cargo.toml index 627dec81d5..8c0156537e 100644 --- a/libdd-common/Cargo.toml +++ b/libdd-common/Cargo.toml @@ -27,7 +27,7 @@ mime = { version = "0.3.16", optional = true } multer = { version = "3.1", optional = true } bytes = { version = "1.11.1" } pin-project = "1" -rand = { version = "0.8", optional = true } +rand = { version = "0.10.1", optional = true } regex = "1.5" regex-lite = { version = "0.1", optional = true } # Use hickory-dns instead of the default system DNS resolver to avoid fork safety issues. @@ -85,7 +85,7 @@ maplit = "1.0" mime = "0.3.16" multer = "3.1" bytes = "1.11.1" -rand = "0.8" +rand = "0.10.1" tempfile = "3.8" tokio = { version = "1.23", features = ["rt", "macros", "time"] } diff --git a/libdd-crashtracker/Cargo.toml b/libdd-crashtracker/Cargo.toml index f54e6a950e..8ab88f5cce 100644 --- a/libdd-crashtracker/Cargo.toml +++ b/libdd-crashtracker/Cargo.toml @@ -59,7 +59,7 @@ num-traits = "0.2.19" os_info = "3.14.0" page_size = "0.6.0" portable-atomic = { version = "1.6.0", features = ["serde"] } -rand = "0.8.5" +rand = "0.10.1" schemars = "0.8.21" serde = {version = "1.0", features = ["derive"]} serde_json = {version = "1.0"} diff --git a/libdd-crashtracker/src/collector/atomic_set.rs b/libdd-crashtracker/src/collector/atomic_set.rs index f57ab5821a..5dd5b3be3e 100644 --- a/libdd-crashtracker/src/collector/atomic_set.rs +++ b/libdd-crashtracker/src/collector/atomic_set.rs @@ -8,7 +8,7 @@ //! If this is useful for other cases, we can consider moving it to ddcommon. use portable_atomic::AtomicUsize; -use rand::Rng; +use rand::RngExt as _; use std::fmt::Debug; use std::io::Write; use std::num::NonZeroU128; @@ -141,7 +141,7 @@ where // Long scans become exponentially unlikely, giving amortized constant time insertion. // Try 10 random locations, this should succeed 0.999 of the time. for _ in 0..10 { - let idx: usize = rand::thread_rng().gen_range(0..self.set.len()); + let idx: usize = rand::rng().random_range(0..self.set.len()); if let Some(v) = self.set[idx].try_insert(value) { value = v; } else { @@ -152,7 +152,7 @@ where // In the case where it doesn't succeed, do a linear probe to guarantee it lands somewhere. // Since we enforce that the array is only half full, this is guarantee to succeed. // We leave this to second to avoid the chains that can build up with linear probing. - let shift: usize = rand::thread_rng().gen_range(0..self.set.len()); + let shift: usize = rand::rng().random_range(0..self.set.len()); for i in 0..self.set.len() { let idx = (i + shift) % self.set.len(); diff --git a/libdd-crashtracker/src/receiver/receive_report.rs b/libdd-crashtracker/src/receiver/receive_report.rs index bdfd859401..b7fcb38085 100644 --- a/libdd-crashtracker/src/receiver/receive_report.rs +++ b/libdd-crashtracker/src/receiver/receive_report.rs @@ -4,7 +4,7 @@ use crate::{ crash_info::{ CrashInfo, CrashInfoBuilder, ErrorKind, SigInfo, Span, StackFrame, TelemetryCrashUploader, - Threads, Ucontext, + Ucontext, }, runtime_callback::RuntimeStack, shared::constants::*, @@ -560,7 +560,7 @@ fn collect_and_add_thread_contexts( crashing_tid: Option, budget: Duration, ) -> anyhow::Result<()> { - use crate::crash_info::ThreadData; + use crate::crash_info::{ThreadData, Threads}; use crate::receiver::ptrace_collector::stream_thread_contexts; let crashing_tid = crashing_tid.unwrap_or(0) as i32; diff --git a/libdd-data-pipeline/Cargo.toml b/libdd-data-pipeline/Cargo.toml index 707b3dbebb..835b5492a6 100644 --- a/libdd-data-pipeline/Cargo.toml +++ b/libdd-data-pipeline/Cargo.toml @@ -50,6 +50,7 @@ libdd-capabilities-impl = { version = "1.0.0", path = "../libdd-capabilities-imp [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2", features = ["js"] } +getrandom_v04 = { package = "getrandom", version = "0.4", features = ["wasm_js"] } uuid = { version = "1", features = ["js"] } [lib] @@ -71,7 +72,7 @@ libdd-trace-utils = { path = "../libdd-trace-utils", features = [ "test-utils", ] } httpmock = "0.8.0-alpha.1" -rand = "0.8.5" +rand = "0.10.1" tempfile = "3.3.0" tokio = { version = "1.23", features = [ "rt", diff --git a/libdd-library-config/Cargo.toml b/libdd-library-config/Cargo.toml index 0d379c7645..c1b5a987aa 100644 --- a/libdd-library-config/Cargo.toml +++ b/libdd-library-config/Cargo.toml @@ -23,7 +23,7 @@ serde_yaml = "0.9.34" prost = "0.14.1" anyhow = "1.0" -rand = "0.8.3" +rand = "0.10.1" rmp = "0.8.14" rmp-serde = "1.3.0" diff --git a/libdd-library-config/src/tracer_metadata.rs b/libdd-library-config/src/tracer_metadata.rs index 03d0ae9b4c..a3431cb5d8 100644 --- a/libdd-library-config/src/tracer_metadata.rs +++ b/libdd-library-config/src/tracer_metadata.rs @@ -175,8 +175,8 @@ pub enum AnonymousFileHandle { #[cfg(target_os = "linux")] mod linux { use anyhow::Context; - use rand::distributions::Alphanumeric; - use rand::Rng; + use rand::distr::Alphanumeric; + use rand::RngExt; use std::io::Write; /// Create a memfd file storing the tracer metadata. This function also attempts to publish the @@ -186,7 +186,7 @@ mod linux { ) -> anyhow::Result { let _ = crate::otel_process_ctx::linux::publish(&data.to_otel_process_ctx()); - let uid: String = rand::thread_rng() + let uid: String = rand::rng() .sample_iter(&Alphanumeric) .take(8) .map(char::from) diff --git a/libdd-profiling/Cargo.toml b/libdd-profiling/Cargo.toml index cc213f4413..ff337da193 100644 --- a/libdd-profiling/Cargo.toml +++ b/libdd-profiling/Cargo.toml @@ -47,7 +47,7 @@ libdd-profiling-protobuf = { version = "2.0.0", path = "../libdd-profiling-proto mime = "0.3.16" parking_lot = { version = "0.12", default-features = false } prost = "0.14.1" -rand = "0.8" +rand = "0.10.1" # Use rustls to align with the rest of the workspace (libdd-common, libdd-telemetry, etc.) # Non-FIPS builds use ring as the crypto provider; FIPS builds use aws-lc-rs. # Use hickory-dns instead of the default system DNS resolver to avoid fork safety issues. diff --git a/libdd-trace-normalization/Cargo.toml b/libdd-trace-normalization/Cargo.toml index 1e8fbf2218..f85ea69c9b 100644 --- a/libdd-trace-normalization/Cargo.toml +++ b/libdd-trace-normalization/Cargo.toml @@ -21,7 +21,7 @@ arbitrary = { version = "1.3", features = ["derive"], optional = true } fuzzing = ["arbitrary"] [dev-dependencies] -rand = "0.8.5" +rand = "0.10.1" duplicate = "0.4.1" criterion = "0.5" diff --git a/libdd-trace-normalization/src/normalizer.rs b/libdd-trace-normalization/src/normalizer.rs index 7450dad908..360a403caf 100644 --- a/libdd-trace-normalization/src/normalizer.rs +++ b/libdd-trace-normalization/src/normalizer.rs @@ -113,12 +113,12 @@ mod tests { use crate::normalize_utils::{DEFAULT_SPAN_NAME, MAX_TYPE_LEN}; use crate::normalizer; use libdd_trace_protobuf::pb; - use rand::Rng; + use rand::RngExt; use std::collections::HashMap; use std::time::SystemTime; fn new_test_span() -> pb::Span { - let mut rng = rand::thread_rng(); + let mut rng = rand::rng(); pb::Span { duration: 10000000, @@ -126,7 +126,7 @@ mod tests { resource: "GET /some/raclette".to_string(), service: "django".to_string(), name: "django.controller".to_string(), - span_id: rng.gen(), + span_id: rng.random(), start: 1448466874000000000, trace_id: 424242, meta: HashMap::from([ diff --git a/libdd-trace-stats/Cargo.toml b/libdd-trace-stats/Cargo.toml index d9546555b4..d06be5e832 100644 --- a/libdd-trace-stats/Cargo.toml +++ b/libdd-trace-stats/Cargo.toml @@ -42,7 +42,7 @@ path = "benches/main.rs" criterion = "0.5.1" httpmock = "0.8.0-alpha.1" libdd-trace-utils = { path = "../libdd-trace-utils", features = ["test-utils"] } -rand = "0.8.5" +rand = "0.10.1" tokio = { version = "1.23", features = ["rt-multi-thread", "macros", "test-util", "time"], default-features = false } [features] diff --git a/libdd-trace-stats/src/span_concentrator/tests.rs b/libdd-trace-stats/src/span_concentrator/tests.rs index 25bbae29c0..078c66ca99 100644 --- a/libdd-trace-stats/src/span_concentrator/tests.rs +++ b/libdd-trace-stats/src/span_concentrator/tests.rs @@ -5,7 +5,7 @@ use crate::span_concentrator::aggregation::OwnedAggregationKey; use super::*; use libdd_trace_utils::span::{trace_utils::compute_top_level_span, v04::SpanSlice}; -use rand::{thread_rng, Rng}; +use rand::RngExt; const BUCKET_SIZE: u64 = Duration::from_secs(2).as_nanos() as u64; @@ -20,7 +20,7 @@ fn get_span_kinds() -> Vec { /// Return a random timestamp within the corresponding bucket (now - offset) fn get_timestamp_in_bucket(aligned_now: u64, bucket_size: u64, offset: u64) -> u64 { - aligned_now - bucket_size * offset + thread_rng().gen_range(0..BUCKET_SIZE) + aligned_now - bucket_size * offset + rand::rng().random_range(0..BUCKET_SIZE) } /// Create a test span with given attributes diff --git a/libdd-trace-utils/Cargo.toml b/libdd-trace-utils/Cargo.toml index 1c8d91be6a..1cf6e77b72 100644 --- a/libdd-trace-utils/Cargo.toml +++ b/libdd-trace-utils/Cargo.toml @@ -31,7 +31,7 @@ tracing = { version = "0.1", default-features = false } serde_json = "1.0" futures = { version = "0.3", default-features = false } tokio = { version = "1", features = ["macros"] } -rand = "0.8.5" +rand = "0.10.1" bytes = "1.11.1" rmpv = { version = "1.3.0", default-features = false } rmp = { version = "0.8.14", default-features = false }