@@ -56,7 +56,7 @@ struct Config {
5656 pub flat : bool ,
5757 pub no_allow : bool ,
5858 pub no_comment : bool ,
59- pub no_core : bool ,
59+ pub no_deps : bool ,
6060 pub no_toml : bool ,
6161 pub package : bool ,
6262 pub rustfmt : String ,
8484 let mut flat = false ;
8585 let mut no_allow = false ;
8686 let mut no_comment = false ;
87- let mut no_core = false ;
87+ let mut no_deps = false ;
8888 let mut no_toml = false ;
8989 let mut package = false ;
9090 let mut implement = false ;
@@ -109,7 +109,7 @@ where
109109 "--flat" => flat = true ,
110110 "--no-allow" => no_allow = true ,
111111 "--no-comment" => no_comment = true ,
112- "--no-core " => no_core = true ,
112+ "--no-deps " => no_deps = true ,
113113 "--no-toml" => no_toml = true ,
114114 "--package" => package = true ,
115115 "--sys" => sys = true ,
@@ -143,10 +143,6 @@ where
143143 }
144144 }
145145
146- if !sys && no_core {
147- panic ! ( "`--no-core` requires `--sys`" ) ;
148- }
149-
150146 if package && flat {
151147 panic ! ( "cannot combine `--package` and `--flat`" ) ;
152148 }
@@ -159,6 +155,25 @@ where
159155 panic ! ( "exactly one `--out` is required" ) ;
160156 } ;
161157
158+ if !sys && !no_deps {
159+ references. insert (
160+ 0 ,
161+ ReferenceStage :: parse ( "windows_collections,flat,Windows.Foundation.Collections" ) ,
162+ ) ;
163+ references. insert (
164+ 0 ,
165+ ReferenceStage :: parse ( "windows_numerics,flat,Windows.Foundation.Numerics" ) ,
166+ ) ;
167+ references. insert (
168+ 0 ,
169+ ReferenceStage :: parse ( "windows_future,flat,Windows.Foundation.Async*" ) ,
170+ ) ;
171+ references. insert (
172+ 0 ,
173+ ReferenceStage :: parse ( "windows_future,flat,Windows.Foundation.IAsync*" ) ,
174+ ) ;
175+ }
176+
162177 // This isn't strictly necessary but avoids a common newbie pitfall where all metadata
163178 // would be generated when building a component for a specific API.
164179 if include. is_empty ( ) {
@@ -178,7 +193,7 @@ where
178193 derive,
179194 no_allow,
180195 no_comment,
181- no_core ,
196+ no_deps ,
182197 no_toml,
183198 package,
184199 rustfmt,
0 commit comments