From 432595fccb1b04c278816497d74e68d4e860980b Mon Sep 17 00:00:00 2001 From: "oxide-renovate[bot]" <146848827+oxide-renovate[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 04:08:28 +0000 Subject: [PATCH] Update Rust crate usdt to 0.5 --- Cargo.lock | 217 +++++++++++++++++++++++++++++++------- Cargo.toml | 2 +- workspace-hack/Cargo.toml | 10 +- 3 files changed, 187 insertions(+), 42 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6ee028bbc5..76fd819c1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ dependencies = [ "getrandom 0.2.10", "once_cell", "version_check", - "zerocopy 0.7.31", + "zerocopy 0.7.32", ] [[package]] @@ -1698,7 +1698,7 @@ source = "git+https://github.com/oxidecomputer/diesel-dtrace?branch=main#c1252df dependencies = [ "diesel", "serde", - "usdt", + "usdt 0.3.5", "uuid", "version_check", ] @@ -1877,6 +1877,20 @@ dependencies = [ "zerocopy 0.3.0", ] +[[package]] +name = "dof" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558e5396321b677a59d2c43b3cc3bc44683109c63ac49275f3bbbf41c0ecd002" +dependencies = [ + "goblin", + "pretty-hex 0.4.1", + "serde", + "serde_json", + "thiserror", + "zerocopy 0.7.32", +] + [[package]] name = "downcast" version = "0.11.0" @@ -1949,7 +1963,7 @@ dependencies = [ "tokio", "tokio-rustls 0.25.0", "toml 0.8.8", - "usdt", + "usdt 0.3.5", "uuid", "version_check", "waitgroup", @@ -1978,6 +1992,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "dtrace-parser" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71734e3eb68cd4df338d04dffdcc024f89eb0b238150cc95b826fbfad756452b" +dependencies = [ + "pest", + "pest_derive", + "thiserror", +] + [[package]] name = "dyn-clone" version = "1.0.13" @@ -2566,7 +2591,7 @@ dependencies = [ "thiserror", "tlvc 0.3.1 (git+https://github.com/oxidecomputer/tlvc.git?branch=main)", "tokio", - "usdt", + "usdt 0.3.5", "uuid", "version_check", "zip", @@ -2667,6 +2692,17 @@ dependencies = [ "regex", ] +[[package]] +name = "goblin" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb07a4ffed2093b118a525b1d8f5204ae274faed5604537caf7135d0f18d9887" +dependencies = [ + "log", + "plain", + "scroll", +] + [[package]] name = "group" version = "0.13.0" @@ -3964,6 +4000,16 @@ version = "2.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f232d6ef707e1956a43342693d2a31e72989554d58299d7a88738cc95b0d35c" +[[package]] +name = "memmap" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "memoffset" version = "0.7.1" @@ -4276,7 +4322,7 @@ dependencies = [ "term", "thiserror", "tokio", - "usdt", + "usdt 0.5.0", "uuid", ] @@ -5137,7 +5183,7 @@ dependencies = [ "tokio-stream", "tokio-util", "toml 0.8.8", - "usdt", + "usdt 0.5.0", "uuid", "zeroize", "zone", @@ -5173,7 +5219,7 @@ dependencies = [ "thiserror", "tokio", "tokio-postgres", - "usdt", + "usdt 0.5.0", "walkdir", ] @@ -5207,6 +5253,7 @@ dependencies = [ "der", "diesel", "digest", + "dof 0.3.0", "either", "elliptic-curve", "errno", @@ -5287,10 +5334,11 @@ dependencies = [ "trust-dns-proto", "unicode-bidi", "unicode-normalization", - "usdt", + "usdt 0.3.5", + "usdt-impl 0.5.0", "uuid", "yasna", - "zerocopy 0.7.31", + "zerocopy 0.7.32", "zeroize", "zip", ] @@ -5520,7 +5568,7 @@ dependencies = [ "poptrie", "serde", "smoltcp 0.11.0", - "zerocopy 0.7.31", + "zerocopy 0.7.32", ] [[package]] @@ -5639,7 +5687,7 @@ dependencies = [ "tempfile", "thiserror", "tokio", - "usdt", + "usdt 0.5.0", "uuid", ] @@ -5941,19 +5989,20 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.2" +version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1acb4a4365a13f749a93f1a094a7805e5cfa0955373a9de860d962eaa3a5fe5a" +checksum = "1f200d8d83c44a45b21764d1916299752ca035d15ecd46faca3e9a2a2bf6ad06" dependencies = [ + "memchr", "thiserror", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.7.2" +version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666d00490d4ac815001da55838c500eafb0320019bbaa44444137c48b443a853" +checksum = "bcd6ab1236bbdb3a49027e920e693192ebfe8913f6d60e294de57463a493cfde" dependencies = [ "pest", "pest_generator", @@ -5961,9 +6010,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.2" +version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ca01446f50dbda87c1786af8770d535423fa8a53aec03b8f4e3d7eb10e0929" +checksum = "2a31940305ffc96863a735bef7c7994a00b325a7138fdbc5bda0f1a0476d3275" dependencies = [ "pest", "pest_meta", @@ -5974,9 +6023,9 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.7.2" +version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56af0a30af74d0445c0bf6d9d051c979b516a1a5af790d251daee76005420a48" +checksum = "a7ff62f5259e53b78d1af898941cdcdccfae7385cf7d793a6e55de5d05bb4b7d" dependencies = [ "once_cell", "pest", @@ -6081,6 +6130,12 @@ version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + [[package]] name = "platforms" version = "3.0.2" @@ -7456,6 +7511,26 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "scroll" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.46", +] + [[package]] name = "sct" version = "0.7.0" @@ -8004,7 +8079,7 @@ dependencies = [ "serde", "serde_json", "slog", - "usdt", + "usdt 0.3.5", "version_check", ] @@ -8728,18 +8803,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.49" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1177e8c6d7ede7afde3585fd2513e611227efd6481bd78d2e82ba1ce16557ed4" +checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.49" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10712f02019e9288794769fba95cd6847df9874d49d871d062172f9dd41bc4cc" +checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", @@ -9644,11 +9719,27 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b4c48f9e522b977bbe938a0d7c4d36633d267ba0155aaa253fb57d0531be0fb" dependencies = [ - "dtrace-parser", + "dtrace-parser 0.1.14", "serde", - "usdt-attr-macro", - "usdt-impl", - "usdt-macro", + "usdt-attr-macro 0.3.5", + "usdt-impl 0.3.5", + "usdt-macro 0.3.5", +] + +[[package]] +name = "usdt" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bf5c47fb471a0bff3d7b17a250817bba8c6cc99b0492abaefe5b3bb99045f02" +dependencies = [ + "dof 0.3.0", + "dtrace-parser 0.2.0", + "goblin", + "memmap", + "serde", + "usdt-attr-macro 0.5.0", + "usdt-impl 0.5.0", + "usdt-macro 0.5.0", ] [[package]] @@ -9657,12 +9748,26 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80e6ae4f982ae74dcbaa8eb17baf36ca0d464a3abc8a7172b3bd74c73e9505d6" dependencies = [ - "dtrace-parser", + "dtrace-parser 0.1.14", "proc-macro2", "quote", "serde_tokenstream 0.1.7", "syn 1.0.109", - "usdt-impl", + "usdt-impl 0.3.5", +] + +[[package]] +name = "usdt-attr-macro" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "025161fff40db24774e7757f75df74ecc47e93d7e11e0f6cdfc31b40eacfe136" +dependencies = [ + "dtrace-parser 0.2.0", + "proc-macro2", + "quote", + "serde_tokenstream 0.2.0", + "syn 2.0.46", + "usdt-impl 0.5.0", ] [[package]] @@ -9672,8 +9777,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f53b4ca0b33aae466dc47b30b98adc4f88454928837af8010b6ed02d18474cb1" dependencies = [ "byteorder", - "dof", - "dtrace-parser", + "dof 0.1.5", + "dtrace-parser 0.1.14", "libc", "proc-macro2", "quote", @@ -9685,18 +9790,52 @@ dependencies = [ "version_check", ] +[[package]] +name = "usdt-impl" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f925814e5942ebb87af2d9fcf4c3f8665e37903f741eb11f0fa2396c6ef5f7b1" +dependencies = [ + "byteorder", + "dof 0.3.0", + "dtrace-parser 0.2.0", + "libc", + "proc-macro2", + "quote", + "serde", + "serde_json", + "syn 2.0.46", + "thiserror", + "thread-id", + "version_check", +] + [[package]] name = "usdt-macro" version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cb093f9653dc91632621c754f9ed4ee25d14e46e0239b6ccaf74a6c0c2788bd" dependencies = [ - "dtrace-parser", + "dtrace-parser 0.1.14", "proc-macro2", "quote", "serde_tokenstream 0.1.7", "syn 1.0.109", - "usdt-impl", + "usdt-impl 0.3.5", +] + +[[package]] +name = "usdt-macro" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ddd86f8f3abac0b7c87f59fe82446fc96a3854a413f176dd2797ed686b7af4c" +dependencies = [ + "dtrace-parser 0.2.0", + "proc-macro2", + "quote", + "serde_tokenstream 0.2.0", + "syn 2.0.46", + "usdt-impl 0.5.0", ] [[package]] @@ -10397,12 +10536,12 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.31" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" +checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" dependencies = [ "byteorder", - "zerocopy-derive 0.7.31", + "zerocopy-derive 0.7.32", ] [[package]] @@ -10429,9 +10568,9 @@ dependencies = [ [[package]] name = "zerocopy-derive" -version = "0.7.31" +version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" +checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index ed54ae8c6a..a96ae1d67d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -400,7 +400,7 @@ tui-tree-widget = "0.16.0" unicode-width = "0.1.11" update-common = { path = "update-common" } update-engine = { path = "update-engine" } -usdt = "0.3" +usdt = "0.5" uuid = { version = "1.7.0", features = ["serde", "v4"] } walkdir = "2.4" wicket = { path = "wicket" } diff --git a/workspace-hack/Cargo.toml b/workspace-hack/Cargo.toml index 25a72838a0..e7c8cbde42 100644 --- a/workspace-hack/Cargo.toml +++ b/workspace-hack/Cargo.toml @@ -114,9 +114,10 @@ trust-dns-proto = { version = "0.22.0" } unicode-bidi = { version = "0.3.13" } unicode-normalization = { version = "0.1.22" } usdt = { version = "0.3.5" } +usdt-impl = { version = "0.5.0", default-features = false, features = ["asm", "des"] } uuid = { version = "1.7.0", features = ["serde", "v4"] } yasna = { version = "0.5.2", features = ["bit-vec", "num-bigint", "std", "time"] } -zerocopy = { version = "0.7.31", features = ["derive", "simd"] } +zerocopy = { version = "0.7.32", features = ["derive", "simd"] } zeroize = { version = "1.7.0", features = ["std", "zeroize_derive"] } zip = { version = "0.6.6", default-features = false, features = ["bzip2", "deflate"] } @@ -222,20 +223,23 @@ trust-dns-proto = { version = "0.22.0" } unicode-bidi = { version = "0.3.13" } unicode-normalization = { version = "0.1.22" } usdt = { version = "0.3.5" } +usdt-impl = { version = "0.5.0", default-features = false, features = ["asm", "des"] } uuid = { version = "1.7.0", features = ["serde", "v4"] } yasna = { version = "0.5.2", features = ["bit-vec", "num-bigint", "std", "time"] } -zerocopy = { version = "0.7.31", features = ["derive", "simd"] } +zerocopy = { version = "0.7.32", features = ["derive", "simd"] } zeroize = { version = "1.7.0", features = ["std", "zeroize_derive"] } zip = { version = "0.6.6", default-features = false, features = ["bzip2", "deflate"] } [target.x86_64-unknown-linux-gnu.dependencies] bitflags-f595c2ba2a3f28df = { package = "bitflags", version = "2.4.0", default-features = false, features = ["std"] } +dof = { version = "0.3.0", default-features = false, features = ["des"] } mio = { version = "0.8.9", features = ["net", "os-ext"] } once_cell = { version = "1.19.0", features = ["unstable"] } rustix = { version = "0.38.30", features = ["fs", "termios"] } [target.x86_64-unknown-linux-gnu.build-dependencies] bitflags-f595c2ba2a3f28df = { package = "bitflags", version = "2.4.0", default-features = false, features = ["std"] } +dof = { version = "0.3.0", default-features = false, features = ["des"] } mio = { version = "0.8.9", features = ["net", "os-ext"] } once_cell = { version = "1.19.0", features = ["unstable"] } rustix = { version = "0.38.30", features = ["fs", "termios"] } @@ -270,6 +274,7 @@ rustix = { version = "0.38.30", features = ["fs", "termios"] } [target.x86_64-unknown-illumos.dependencies] bitflags-f595c2ba2a3f28df = { package = "bitflags", version = "2.4.0", default-features = false, features = ["std"] } +dof = { version = "0.3.0", default-features = false, features = ["des"] } errno = { version = "0.3.8", default-features = false, features = ["std"] } mio = { version = "0.8.9", features = ["net", "os-ext"] } once_cell = { version = "1.19.0", features = ["unstable"] } @@ -279,6 +284,7 @@ toml_edit-cdcf2f9584511fe6 = { package = "toml_edit", version = "0.19.15", featu [target.x86_64-unknown-illumos.build-dependencies] bitflags-f595c2ba2a3f28df = { package = "bitflags", version = "2.4.0", default-features = false, features = ["std"] } +dof = { version = "0.3.0", default-features = false, features = ["des"] } errno = { version = "0.3.8", default-features = false, features = ["std"] } mio = { version = "0.8.9", features = ["net", "os-ext"] } once_cell = { version = "1.19.0", features = ["unstable"] }