File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ pub struct Metadata {
5252 /// An SPDX expression indicating the license covering the distribution.
5353 #[ cfg_attr( feature = "serde" , serde( default ) ) ]
5454 pub license_expression : Option < String > ,
55+ /// The path to a file containing the text of the license covering the distribution.
56+ #[ cfg_attr( feature = "serde" , serde( default ) ) ]
57+ pub license_file : Option < String > ,
5558 /// Each entry is a string giving a single classification value for the distribution.
5659 #[ cfg_attr( feature = "serde" , serde( default ) ) ]
5760 pub classifiers : Vec < String > ,
@@ -156,6 +159,7 @@ impl Metadata {
156159 let author_email = get_first_value ( "Author-email" ) ;
157160 let license = get_first_value ( "License" ) ;
158161 let license_expression = get_first_value ( "License-Expression" ) ;
162+ let license_file = get_first_value ( "License-File" ) ;
159163 let classifiers = get_all_values ( "Classifier" ) ;
160164 let requires_dist = get_all_values ( "Requires-Dist" ) ;
161165 let provides_dist = get_all_values ( "Provides-Dist" ) ;
@@ -183,6 +187,7 @@ impl Metadata {
183187 author_email,
184188 license,
185189 license_expression,
190+ license_file,
186191 classifiers,
187192 requires_dist,
188193 provides_dist,
You can’t perform that action at this time.
0 commit comments