From 0c48bd76a75a88f85f749487047cc9076b74bf82 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Wed, 14 Aug 2024 14:49:22 -0400 Subject: [PATCH 1/3] Bump Rust version to 1.79 We're doing this bump for env and we need to fix the XDR library warnings anyways. --- Cargo.toml | 6 +++--- build.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 45a97930..3cf452f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ authors = ["Stellar Development Foundation "] license = "Apache-2.0" version = "21.2.0" edition = "2021" -rust-version = "1.74.0" +rust-version = "1.79.0" [[bin]] name = "stellar-xdr" @@ -15,7 +15,7 @@ path = "src/bin/stellar-xdr/main.rs" required-features = ["cli"] doctest = false -[build_dependencies] +[build-dependencies] crate-git-revision = "0.0.6" [dependencies] @@ -31,7 +31,7 @@ serde_json = { version = "1.0.89", optional = true } thiserror = { version = "1.0.37", optional = true } schemars = { version = "0.8.16", optional = true } -[dev_dependencies] +[dev-dependencies] serde_json = "1.0.89" [features] diff --git a/build.rs b/build.rs index e0fece79..75e009fc 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,4 @@ pub fn main() { + println!("cargo::rustc-check-cfg=cfg(docs)"); crate_git_revision::init(); } From 2ab80025ded0e14709b9639d4459a3960cf00346 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Thu, 15 Aug 2024 10:35:05 -0400 Subject: [PATCH 2/3] Revert rust version bump. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3cf452f9..99d4f2c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ authors = ["Stellar Development Foundation "] license = "Apache-2.0" version = "21.2.0" edition = "2021" -rust-version = "1.79.0" +rust-version = "1.74.0" [[bin]] name = "stellar-xdr" From bcb8745f1e5be90528525e952c81d7b6f95c13ce Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Thu, 15 Aug 2024 10:37:29 -0400 Subject: [PATCH 3/3] !fixup revert to old syntax --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 75e009fc..c137ba10 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ pub fn main() { - println!("cargo::rustc-check-cfg=cfg(docs)"); + println!("cargo:rustc-check-cfg=cfg(docs)"); crate_git_revision::init(); }