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 {
52
52
/// An SPDX expression indicating the license covering the distribution.
53
53
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
54
54
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 > ,
55
58
/// Each entry is a string giving a single classification value for the distribution.
56
59
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
57
60
pub classifiers : Vec < String > ,
@@ -156,6 +159,7 @@ impl Metadata {
156
159
let author_email = get_first_value ( "Author-email" ) ;
157
160
let license = get_first_value ( "License" ) ;
158
161
let license_expression = get_first_value ( "License-Expression" ) ;
162
+ let license_file = get_first_value ( "License-File" ) ;
159
163
let classifiers = get_all_values ( "Classifier" ) ;
160
164
let requires_dist = get_all_values ( "Requires-Dist" ) ;
161
165
let provides_dist = get_all_values ( "Provides-Dist" ) ;
@@ -183,6 +187,7 @@ impl Metadata {
183
187
author_email,
184
188
license,
185
189
license_expression,
190
+ license_file,
186
191
classifiers,
187
192
requires_dist,
188
193
provides_dist,
You can’t perform that action at this time.
0 commit comments