@@ -17,7 +17,7 @@ use crate::{
17
17
18
18
/// Whether an item is deprecated, with context.
19
19
#[ derive( Debug , PartialEq , Hash , Clone ) ]
20
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
20
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
21
21
pub enum DeprecationStatus {
22
22
/// The field/variant is not deprecated.
23
23
Current ,
@@ -55,7 +55,7 @@ pub struct ScalarMeta<'a, S> {
55
55
pub ( crate ) parse_fn : for <' b > fn ( ScalarToken < ' b > ) -> Result < S , ParseError < ' b > > ,
56
56
}
57
57
58
- #[ cfg( feature = "arbitrary " ) ]
58
+ #[ cfg( feature = "arbitrary1 " ) ]
59
59
impl < ' a , S > arbitrary:: Arbitrary < ' a > for ScalarMeta < ' a , S >
60
60
where
61
61
S : arbitrary:: Arbitrary < ' a > ,
@@ -114,7 +114,7 @@ where
114
114
115
115
/// List type metadata
116
116
#[ derive( Debug ) ]
117
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
117
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
118
118
pub struct ListMeta < ' a > {
119
119
#[ doc( hidden) ]
120
120
pub of_type : Type < ' a > ,
@@ -125,15 +125,15 @@ pub struct ListMeta<'a> {
125
125
126
126
/// Nullable type metadata
127
127
#[ derive( Debug ) ]
128
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
128
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
129
129
pub struct NullableMeta < ' a > {
130
130
#[ doc( hidden) ]
131
131
pub of_type : Type < ' a > ,
132
132
}
133
133
134
134
/// Object type metadata
135
135
#[ derive( Debug ) ]
136
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
136
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
137
137
pub struct ObjectMeta < ' a , S > {
138
138
#[ doc( hidden) ]
139
139
pub name : Cow < ' a , str > ,
@@ -146,7 +146,7 @@ pub struct ObjectMeta<'a, S> {
146
146
}
147
147
148
148
/// Enum type metadata
149
- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
149
+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
150
150
pub struct EnumMeta < ' a , S > {
151
151
#[ doc( hidden) ]
152
152
pub name : Cow < ' a , str > ,
@@ -157,7 +157,7 @@ pub struct EnumMeta<'a, S> {
157
157
pub ( crate ) try_parse_fn : for <' b > fn ( & ' b InputValue < S > ) -> Result < ( ) , FieldError < S > > ,
158
158
}
159
159
160
- #[ cfg( feature = "arbitrary " ) ]
160
+ #[ cfg( feature = "arbitrary1 " ) ]
161
161
impl < ' a , S > arbitrary:: Arbitrary < ' a > for EnumMeta < ' a , S >
162
162
where
163
163
S : arbitrary:: Arbitrary < ' a > ,
@@ -198,7 +198,7 @@ where
198
198
199
199
/// Interface type metadata
200
200
#[ derive( Debug ) ]
201
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
201
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
202
202
pub struct InterfaceMeta < ' a , S > {
203
203
#[ doc( hidden) ]
204
204
pub name : Cow < ' a , str > ,
@@ -210,7 +210,7 @@ pub struct InterfaceMeta<'a, S> {
210
210
211
211
/// Union type metadata
212
212
#[ derive( Debug ) ]
213
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
213
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
214
214
pub struct UnionMeta < ' a > {
215
215
#[ doc( hidden) ]
216
216
pub name : Cow < ' a , str > ,
@@ -221,7 +221,7 @@ pub struct UnionMeta<'a> {
221
221
}
222
222
223
223
/// Input object metadata
224
- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
224
+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
225
225
pub struct InputObjectMeta < ' a , S > {
226
226
#[ doc( hidden) ]
227
227
pub name : Cow < ' a , str > ,
@@ -232,7 +232,7 @@ pub struct InputObjectMeta<'a, S> {
232
232
pub ( crate ) try_parse_fn : for <' b > fn ( & ' b InputValue < S > ) -> Result < ( ) , FieldError < S > > ,
233
233
}
234
234
235
- #[ cfg( feature = "arbitrary " ) ]
235
+ #[ cfg( feature = "arbitrary1 " ) ]
236
236
impl < ' a , S > arbitrary:: Arbitrary < ' a > for InputObjectMeta < ' a , S >
237
237
where
238
238
S : arbitrary:: Arbitrary < ' a > ,
@@ -276,7 +276,7 @@ where
276
276
/// After a type's `meta` method has been called but before it has returned, a placeholder type
277
277
/// is inserted into a registry to indicate existence.
278
278
#[ derive( Debug ) ]
279
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
279
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
280
280
pub struct PlaceholderMeta < ' a > {
281
281
#[ doc( hidden) ]
282
282
pub of_type : Type < ' a > ,
@@ -305,7 +305,7 @@ pub enum MetaType<'a, S = DefaultScalarValue> {
305
305
Placeholder ( PlaceholderMeta < ' a > ) ,
306
306
}
307
307
308
- #[ cfg( feature = "arbitrary " ) ]
308
+ #[ cfg( feature = "arbitrary1 " ) ]
309
309
impl < ' a , S > arbitrary:: Arbitrary < ' a > for MetaType < ' a , S >
310
310
where
311
311
S : arbitrary:: Arbitrary < ' a > ,
@@ -331,7 +331,7 @@ where
331
331
332
332
/// Metadata for a field
333
333
#[ derive( Debug , Clone ) ]
334
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
334
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
335
335
pub struct Field < ' a , S > {
336
336
#[ doc( hidden) ]
337
337
pub name : smartstring:: alias:: String ,
@@ -355,7 +355,7 @@ impl<'a, S> Field<'a, S> {
355
355
356
356
/// Metadata for an argument to a field
357
357
#[ derive( Debug , Clone ) ]
358
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
358
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
359
359
pub struct Argument < ' a , S > {
360
360
#[ doc( hidden) ]
361
361
pub name : String ,
@@ -377,7 +377,7 @@ impl<'a, S> Argument<'a, S> {
377
377
378
378
/// Metadata for a single value in an enum
379
379
#[ derive( Debug , Clone ) ]
380
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
380
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
381
381
pub struct EnumValue {
382
382
/// The name of the enum value
383
383
///
0 commit comments