From 84cc773bc00231b38d72398721e9d53c8bfef6e8 Mon Sep 17 00:00:00 2001 From: Dmytro Kozhevin Date: Thu, 15 Aug 2024 16:19:04 -0400 Subject: [PATCH] Bump Rust version to 1.79 (#384) * Bump Rust version to 1.79 We're doing this bump for env and we need to fix the XDR library warnings anyways. * Revert rust version bump. * !fixup revert to old syntax --- Cargo.toml | 4 ++-- build.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 45a97930..99d4f2c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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..c137ba10 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(); }