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.
This commit is contained in:
David Tolnay 2019-11-02 15:17:02 -07:00
parent a2c83d754b
commit 4eb580790d
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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" }