Skip to content

Commit

Permalink
Merge pull request 2588 from soqb:use-impossible-cfg-to-lockstep-serd…
Browse files Browse the repository at this point in the history
…e-derive
  • Loading branch information
dtolnay committed Aug 23, 2023
2 parents e797c90 + 2ea7e13 commit c0f7042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ features = ["derive"]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]

# Even though this `cfg` can never be enabled, it still forces cargo to keep `serde_derive` in lockstep with `serde`.
[target.'cfg(any())'.dependencies]
serde_derive = { version = "=1.0.185", path = "../serde_derive" }


### FEATURES #################################################################

Expand Down

0 comments on commit c0f7042

Please sign in to comment.