File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,7 @@ pub fn to_manifest(contents: &str,
109
109
let manifest: TomlManifest = serde_ignored:: deserialize ( root, |path| {
110
110
let mut key = String :: new ( ) ;
111
111
stringify ( & mut key, & path) ;
112
- if !key. starts_with ( "package.metadata" ) {
113
- unused. insert ( key) ;
114
- }
112
+ unused. insert ( key) ;
115
113
} ) ?;
116
114
117
115
let manifest = Rc :: new ( manifest) ;
@@ -459,6 +457,7 @@ pub struct TomlProject {
459
457
#[ serde( rename = "license-file" ) ]
460
458
license_file : Option < String > ,
461
459
repository : Option < String > ,
460
+ metadata : Option < toml:: Value > ,
462
461
}
463
462
464
463
#[ derive( Deserialize , Serialize ) ]
Original file line number Diff line number Diff line change @@ -604,6 +604,9 @@ fn generated_manifest() {
604
604
license = "MIT"
605
605
description = "foo"
606
606
607
+ [project.metadata]
608
+ foo = 'bar'
609
+
607
610
[workspace]
608
611
609
612
[dependencies]
@@ -652,6 +655,9 @@ authors = []
652
655
exclude = ["*.txt"]
653
656
description = "foo"
654
657
license = "MIT"
658
+
659
+ [package.metadata]
660
+ foo = "bar"
655
661
[dependencies.bar]
656
662
version = "0.1"
657
663
"# ) ) ;
You can’t perform that action at this time.
0 commit comments