Skip to content

Commit

Permalink
views/krate_publish: Remove obsolete description, license, and `l…
Browse files Browse the repository at this point in the history
…icense_file` fields

These fields are no longer read by our server, so we can skip the deserialization step.
  • Loading branch information
Turbo87 committed Sep 27, 2023
1 parent 01fb029 commit 767b9c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/tests/builders/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ impl PublishBuilder {
vers: u::EncodableCrateVersion(self.version.clone()),
features: self.features.clone(),
deps: self.deps.clone(),
description: self.desc.clone(),
homepage: None,
documentation: self.doc_url.clone(),
readme: self.readme,
Expand All @@ -161,8 +160,6 @@ impl PublishBuilder {
.map(u::EncodableCategory)
.collect(),
),
license: self.license.clone(),
license_file: self.license_file.clone(),
repository: None,
links: None,
};
Expand Down
3 changes: 0 additions & 3 deletions src/views/krate_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct PublishMetadata {
pub vers: EncodableCrateVersion,
pub deps: Vec<EncodableCrateDependency>,
pub features: BTreeMap<EncodableFeatureName, Vec<EncodableFeature>>,
pub description: Option<String>,
pub homepage: Option<String>,
pub documentation: Option<String>,
pub readme: Option<String>,
Expand All @@ -27,8 +26,6 @@ pub struct PublishMetadata {
pub keywords: EncodableKeywordList,
#[serde(default)]
pub categories: EncodableCategoryList,
pub license: Option<String>,
pub license_file: Option<String>,
pub repository: Option<String>,
#[serde(default)]
pub links: Option<String>,
Expand Down

0 comments on commit 767b9c4

Please sign in to comment.