From 16a5606f5a692307c96cc5a56a7cd7dbb86e09f1 Mon Sep 17 00:00:00 2001 From: Erdem Meydanli Date: Tue, 9 Apr 2024 12:31:00 +0000 Subject: [PATCH] cargo: Upgrade num-derive to v0.4.0 The num-derive crate version 0.2 is no longer compatible with the current nightly Rust toolchain. Upgrading to version 0.4.0 to ensure compatibility and allow successful builds. Signed-off-by: Erdem Meydanli --- Cargo.lock | 17 ++++++++++++++--- Cargo.toml | 2 +- samples/command_executer/Cargo.toml | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e36991745..f7652e823 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -75,7 +75,7 @@ dependencies = [ "clap", "crc", "hex", - "num-derive", + "num-derive 0.3.3", "num-traits", "openssl", "serde", @@ -260,7 +260,7 @@ dependencies = [ "log", "nix 0.26.2", "num", - "num-derive", + "num-derive 0.4.2", "num-traits", "serde", "serde_json", @@ -1052,7 +1052,7 @@ dependencies = [ "libc", "log", "nix 0.26.2", - "num-derive", + "num-derive 0.4.2", "num-traits", "openssl", "page_size", @@ -1158,6 +1158,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.37", +] + [[package]] name = "num-integer" version = "0.1.45" diff --git a/Cargo.toml b/Cargo.toml index 44a5b38df..f90859cca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ bindgen = { version=">=0.54" } [dev-dependencies] log = "0.4" -num-derive = "0.3" +num-derive = "0.4" num-traits = "0.2" tempfile = "3.5" diff --git a/samples/command_executer/Cargo.toml b/samples/command_executer/Cargo.toml index 86617baf8..226102e4b 100644 --- a/samples/command_executer/Cargo.toml +++ b/samples/command_executer/Cargo.toml @@ -15,5 +15,5 @@ serde = { version = ">=1.0", features = ["derive"] } serde_json = "1.0" byteorder = "1.3" num = "0.2" -num-derive = "0.3" +num-derive = "0.4" num-traits = "0.2"