From 92d2b388a1361094fc0f2e978204b672e2d4936a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 13 Oct 2019 20:06:41 -0400 Subject: [PATCH 1/3] cargo: require termcolor 1.0.4 This release made the `Color` type `impl Copy` which is used in this crate. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 65c352f..c3cfc94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ glob = "0.3" lazy_static = "1.3" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -termcolor = "1.0" +termcolor = "1.0.4" toml = "0.5" From 259a6d5b1735e34ebbb4a14185537d36d1b54080 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 13 Oct 2019 20:07:15 -0400 Subject: [PATCH 2/3] cargo: require toml 0.5.2 This fixes `-Z minimal-versions` builds because this version of `toml` requires sufficient versions of its dependencies. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c3cfc94..7f792f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,4 @@ lazy_static = "1.3" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" termcolor = "1.0.4" -toml = "0.5" +toml = "0.5.2" From dc7072180ef1d2aa5641289a82a63423718d26b7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 13 Oct 2019 20:09:56 -0400 Subject: [PATCH 3/3] cargo: bump to a minimal-versions compatible serde The documentation for `serde`'s `derive` feature states that it should really only be used for libraries with an optional `serde` feature themselves. That's not happening here. However, the need to split it is also required by `-Z minimal-versions` builds. Without a direct dependency, `serde_derive` 1.0.0 gets chosen. This is not suitable for this crate because it uses the `alias` feature. 1.0.103 is selected because it is the version that is compatible with `-Z minimal-versions`. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7f792f5..4b8a506 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" [dependencies] glob = "0.3" lazy_static = "1.3" -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1.0.103", features = ["derive"] } serde_json = "1.0" termcolor = "1.0.4" toml = "0.5.2"