@@ -51,6 +51,8 @@ pub struct Export {
51
51
/// Whether or not this function should be flagged as the wasm start
52
52
/// function.
53
53
pub start : bool ,
54
+ /// Whether the API is unstable. This is only used internally.
55
+ pub unstable_api : bool ,
54
56
}
55
57
56
58
/// The 3 types variations of `self`.
@@ -71,6 +73,7 @@ pub struct Import {
71
73
pub module : ImportModule ,
72
74
pub js_namespace : Option < Ident > ,
73
75
pub kind : ImportKind ,
76
+ pub unstable_api : bool ,
74
77
}
75
78
76
79
#[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
@@ -126,6 +129,7 @@ pub struct ImportFunction {
126
129
pub kind : ImportFunctionKind ,
127
130
pub shim : Ident ,
128
131
pub doc_comment : Option < String > ,
132
+ pub unstable_api : bool ,
129
133
}
130
134
131
135
#[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
@@ -182,6 +186,7 @@ pub struct ImportType {
182
186
pub js_name : String ,
183
187
pub attrs : Vec < syn:: Attribute > ,
184
188
pub typescript_name : Option < String > ,
189
+ pub unstable_api : bool ,
185
190
pub doc_comment : Option < String > ,
186
191
pub instanceof_shim : String ,
187
192
pub is_type_of : Option < syn:: Expr > ,
@@ -202,6 +207,8 @@ pub struct ImportEnum {
202
207
pub variant_values : Vec < String > ,
203
208
/// Attributes to apply to the Rust enum
204
209
pub rust_attrs : Vec < syn:: Attribute > ,
210
+ /// Whether the enum is part of an unstable WebIDL
211
+ pub unstable_api : bool ,
205
212
}
206
213
207
214
#[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
@@ -237,6 +244,7 @@ pub struct StructField {
237
244
pub getter : Ident ,
238
245
pub setter : Ident ,
239
246
pub comments : Vec < String > ,
247
+ pub unstable_api : bool ,
240
248
}
241
249
242
250
#[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
@@ -246,6 +254,7 @@ pub struct Enum {
246
254
pub variants : Vec < Variant > ,
247
255
pub comments : Vec < String > ,
248
256
pub hole : u32 ,
257
+ pub unstable_api : bool ,
249
258
}
250
259
251
260
#[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
@@ -278,6 +287,7 @@ pub struct Const {
278
287
pub class : Option < Ident > ,
279
288
pub ty : syn:: Type ,
280
289
pub value : ConstValue ,
290
+ pub unstable_api : bool ,
281
291
}
282
292
283
293
#[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq ) ) ]
@@ -299,6 +309,7 @@ pub struct Dictionary {
299
309
pub ctor : bool ,
300
310
pub doc_comment : Option < String > ,
301
311
pub ctor_doc_comment : Option < String > ,
312
+ pub unstable_api : bool ,
302
313
}
303
314
304
315
#[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
0 commit comments