File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ struct SerializedPackage<'a> {
96
96
keywords : & ' a [ String ] ,
97
97
readme : Option < & ' a str > ,
98
98
repository : Option < & ' a str > ,
99
+ homepage : Option < & ' a str > ,
100
+ documentation : Option < & ' a str > ,
99
101
edition : & ' a str ,
100
102
links : Option < & ' a str > ,
101
103
#[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -118,6 +120,8 @@ impl ser::Serialize for Package {
118
120
let keywords = manmeta. keywords . as_ref ( ) ;
119
121
let readme = manmeta. readme . as_deref ( ) ;
120
122
let repository = manmeta. repository . as_deref ( ) ;
123
+ let homepage = manmeta. homepage . as_ref ( ) . map ( String :: as_ref) ;
124
+ let documentation = manmeta. documentation . as_ref ( ) . map ( String :: as_ref) ;
121
125
// Filter out metabuild targets. They are an internal implementation
122
126
// detail that is probably not relevant externally. There's also not a
123
127
// real path to show in `src_path`, and this avoids changing the format.
@@ -146,6 +150,8 @@ impl ser::Serialize for Package {
146
150
keywords,
147
151
readme,
148
152
repository,
153
+ homepage,
154
+ documentation,
149
155
edition : & self . manifest ( ) . edition ( ) . to_string ( ) ,
150
156
links : self . manifest ( ) . links ( ) ,
151
157
metabuild : self . manifest ( ) . metabuild ( ) ,
You can’t perform that action at this time.
0 commit comments