From c9eb270a8b7fcf4a069a6a9d9c0325b2082164bf Mon Sep 17 00:00:00 2001
From: Andreas Fuchs
Date: Tue, 15 Dec 2020 14:08:31 -0500
Subject: Debump the smol_str version to 0.1.16 to build on rust 1.45.2 (#28)

* Debump the smol_str version to 0.1.16 to build on rust 1.45.2

Rust 1.45.2 is what ships in the 20.09 release, and smol_str 0.1.17 is
incompatible with it.

* Clarify version bounds on the smol_str dependency---
 Cargo.lock | 5 +++--
 Cargo.toml | 5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 80c1d16..8aa66a9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -106,6 +106,7 @@ dependencies = [
  "serde",
  "serde_derive",
  "serde_json",
+ "smol_str",
  "thiserror",
  "tokio",
  "toml",
@@ -652,9 +653,9 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
 
 [[package]]
 name = "smol_str"
-version = "0.1.17"
+version = "0.1.16"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ca0f7ce3a29234210f0f4f0b56f8be2e722488b95cb522077943212da3b32eb"
+checksum = "2f7909a1d8bc166a862124d84fdc11bda0ea4ed3157ccca662296919c2972db1"
 
 [[package]]
 name = "socket2"
diff --git a/Cargo.toml b/Cargo.toml
index e9d1fa3..9744784 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,6 +28,11 @@ toml = "0.5"
 yn = "0.1"
 rnix = "0.8"
 
+# smol_str is required by rnix, but 0.1.17 doesn't build on rustc
+# 1.45.2 (shipped in nixos-20.09); it requires rustc 1.46.0. See
+# <https://github.com/serokell/deploy-rs/issues/27>:
+smol_str = "=0.1.16"
+
 
 [[bin]]
 name = "deploy"
-- 
cgit v1.2.3