From 5f8c3b7e451bfb9b0c6fe61cf121ae926e185fad Mon Sep 17 00:00:00 2001 From: konsti Date: Fri, 10 May 2024 15:46:29 +0200 Subject: [PATCH] Re-add dummy serde feature to pep440-rs and pep508-rs (#3501) This keeps us in sync with the published pep440-rs and pep508-rs crates for prefix. --- crates/pep440-rs/Cargo.toml | 4 ++++ crates/pep508-rs/Cargo.toml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/crates/pep440-rs/Cargo.toml b/crates/pep440-rs/Cargo.toml index d486d309f..076067006 100644 --- a/crates/pep440-rs/Cargo.toml +++ b/crates/pep440-rs/Cargo.toml @@ -27,3 +27,7 @@ unscanny = { workspace = true } [dev-dependencies] indoc = { version = "2.0.4" } + +[features] +# Match the API of the published crate, for compatibility. +serde = [] diff --git a/crates/pep508-rs/Cargo.toml b/crates/pep508-rs/Cargo.toml index 7e31bdb0b..bb41125af 100644 --- a/crates/pep508-rs/Cargo.toml +++ b/crates/pep508-rs/Cargo.toml @@ -52,3 +52,5 @@ tracing = ["dep:tracing", "pep440_rs/tracing"] # be supported. non-pep508-extensions = [] default = [] +# Match the API of the published crate, for compatibility. +serde = []