Skip to content

Commit 9d03a29

Browse files
committed
rm skip_serializing
1 parent 25f0800 commit 9d03a29

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/metadata.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,85 +18,60 @@ pub struct Metadata {
1818
pub version: String,
1919
/// A Platform specification describing an operating system supported by the distribution
2020
/// which is not listed in the “Operating System” Trove classifiers.
21-
#[cfg_attr(
22-
feature = "serde",
23-
serde(rename = "platform", skip_serializing_if = "Vec::is_empty")
24-
)]
2521
pub platforms: Vec<String>,
2622
/// Binary distributions containing a PKG-INFO file will use the Supported-Platform field
2723
/// in their metadata to specify the OS and CPU for which the binary distribution was compiled.
28-
#[cfg_attr(feature = "serde", serde(skip_serializing))]
2924
pub supported_platforms: Vec<String>,
3025
/// A one-line summary of what the distribution does.
31-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
3226
pub summary: Option<String>,
3327
/// A longer description of the distribution that can run to several paragraphs.
34-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
3528
pub description: Option<String>,
3629
/// A list of additional keywords, separated by commas, to be used to
3730
/// assist searching for the distribution in a larger catalog.
38-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
3931
pub keywords: Option<String>,
4032
/// A string containing the URL for the distribution’s home page.
41-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
4233
pub home_page: Option<String>,
4334
/// A string containing the URL from which this version of the distribution can be downloaded.
44-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
4535
pub download_url: Option<String>,
4636
/// A string containing the author’s name at a minimum; additional contact information may be provided.
47-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
4837
pub author: Option<String>,
4938
/// A string containing the author’s e-mail address. It can contain a name and e-mail address in the legal forms for a RFC-822 `From:` header.
50-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
5139
pub author_email: Option<String>,
5240
/// Text indicating the license covering the distribution where the license is not a selection from the `License` Trove classifiers.
53-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
5441
pub license: Option<String>,
5542
/// Each entry is a string giving a single classification value for the distribution.
56-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
5743
pub classifiers: Vec<String>,
5844
/// Each entry contains a string naming some other distutils project required by this distribution.
59-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
6045
pub requires_dist: Vec<String>,
6146
/// Each entry contains a string naming a Distutils project which is contained within this distribution.
62-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
6347
pub provides_dist: Vec<String>,
6448
/// Each entry contains a string describing a distutils project’s distribution which this distribution renders obsolete,
6549
/// meaning that the two projects should not be installed at the same time.
66-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
6750
pub obsoletes_dist: Vec<String>,
6851
/// A string containing the maintainer’s name at a minimum; additional contact information may be provided.
6952
///
7053
/// Note that this field is intended for use when a project is being maintained by someone other than the original author:
7154
/// it should be omitted if it is identical to `author`.
72-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
7355
pub maintainer: Option<String>,
7456
/// A string containing the maintainer’s e-mail address.
7557
/// It can contain a name and e-mail address in the legal forms for a RFC-822 `From:` header.
7658
///
7759
/// Note that this field is intended for use when a project is being maintained by someone other than the original author:
7860
/// it should be omitted if it is identical to `author_email`.
79-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
8061
pub maintainer_email: Option<String>,
8162
/// This field specifies the Python version(s) that the distribution is guaranteed to be compatible with.
82-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
8363
pub requires_python: Option<String>,
8464
/// Each entry contains a string describing some dependency in the system that the distribution is to be used.
85-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
8665
pub requires_external: Vec<String>,
8766
/// A string containing a browsable URL for the project and a label for it, separated by a comma.
88-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Vec::is_empty"))]
8967
pub project_urls: Vec<String>,
9068
/// A string containing the name of an optional feature. Must be a valid Python identifier.
9169
/// May be used to make a dependency conditional on whether the optional feature has been requested.
92-
#[cfg_attr(feature = "serde", serde(skip_serializing))]
9370
pub provides_extras: Vec<String>,
9471
/// A string stating the markup syntax (if any) used in the distribution’s description,
9572
/// so that tools can intelligently render the description.
96-
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))]
9773
pub description_content_type: Option<String>,
9874
/// A string containing the name of another core metadata field.
99-
#[cfg_attr(feature = "serde", serde(skip_serializing))]
10075
pub dynamic: Vec<String>,
10176
}
10277

0 commit comments

Comments
 (0)