From 4eb580790dd6c96089b92942a5f481b21df4feaf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 2 Nov 2019 15:17:02 -0700 Subject: [PATCH] Require serde_derive version to be the same as serde version Without this, Cargo could combine new serde_derive with old serde resulting in generated code that refers to types that don't exist yet in the serde version. --- serde/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde/Cargo.toml b/serde/Cargo.toml index d82f1987..ac9a6578 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -18,7 +18,7 @@ travis-ci = { repository = "serde-rs/serde" } appveyor = { repository = "serde-rs/serde" } [dependencies] -serde_derive = { version = "1.0.102", optional = true, path = "../serde_derive" } +serde_derive = { version = "=1.0.102", optional = true, path = "../serde_derive" } [dev-dependencies] serde_derive = { version = "1.0", path = "../serde_derive" }