From aaf7cf2eca91dc9490c60a298c83915f99d3436f Mon Sep 17 00:00:00 2001
From: licunlong <licunlong1@huawei.com>
Date: Fri, 21 Jul 2023 17:40:57 +0800
Subject: [PATCH] fix: specify the version of tempfile

prost-build depends on tempfile but doesn't specify its version, if tempfile upgrades
to higher version i.e. 3.7.0, it may requires we use rustc 1.63 or newer. Now we can't
upgrate rustc to a newer version, we choose to avoid this problem by pinning the
version of tempfile to 3.6.0.
---
 Cargo.toml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Cargo.toml b/Cargo.toml
index e86003d..17cbd79 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,6 +44,7 @@ nix = "0.24"
 regex = { version = "1.6.0", default-features = false, features = ["std"] }
 serde = "1.0.130"
 siphasher = { version = "0.3", features = ["serde"] }
+tempfile = "=3.6.0"
 walkdir = "2"
 fnmatch-regex = "0.2.0"
 snafu = "0.7"
-- 
2.33.0

