@@ -17,7 +17,7 @@ use crate::{
17
17
18
18
/// Whether an item is deprecated, with context.
19
19
#[ derive( Clone , Debug , Eq , Hash , PartialEq ) ]
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 ,
@@ -62,7 +62,7 @@ pub type InputValueParseFn<S> = for<'b> fn(&'b InputValue<S>) -> Result<(), Fiel
62
62
pub type ScalarTokenParseFn < S > = for <' b > fn ( ScalarToken < ' b > ) -> Result < S , ParseError > ;
63
63
64
64
65
- #[ cfg( feature = "arbitrary " ) ]
65
+ #[ cfg( feature = "arbitrary1 " ) ]
66
66
impl < ' a , S > arbitrary:: Arbitrary < ' a > for ScalarMeta < ' a , S >
67
67
where
68
68
S : arbitrary:: Arbitrary < ' a > ,
@@ -121,7 +121,7 @@ where
121
121
122
122
/// List type metadata
123
123
#[ derive( Debug ) ]
124
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
124
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
125
125
pub struct ListMeta < ' a > {
126
126
#[ doc( hidden) ]
127
127
pub of_type : Type < ' a > ,
@@ -132,15 +132,15 @@ pub struct ListMeta<'a> {
132
132
133
133
/// Nullable type metadata
134
134
#[ derive( Debug ) ]
135
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
135
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
136
136
pub struct NullableMeta < ' a > {
137
137
#[ doc( hidden) ]
138
138
pub of_type : Type < ' a > ,
139
139
}
140
140
141
141
/// Object type metadata
142
142
#[ derive( Debug ) ]
143
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
143
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
144
144
pub struct ObjectMeta < ' a , S > {
145
145
#[ doc( hidden) ]
146
146
pub name : Cow < ' a , str > ,
@@ -153,7 +153,7 @@ pub struct ObjectMeta<'a, S> {
153
153
}
154
154
155
155
/// Enum type metadata
156
- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
156
+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
157
157
pub struct EnumMeta < ' a , S > {
158
158
#[ doc( hidden) ]
159
159
pub name : Cow < ' a , str > ,
@@ -164,7 +164,7 @@ pub struct EnumMeta<'a, S> {
164
164
pub ( crate ) try_parse_fn : InputValueParseFn < S > ,
165
165
}
166
166
167
- #[ cfg( feature = "arbitrary " ) ]
167
+ #[ cfg( feature = "arbitrary1 " ) ]
168
168
impl < ' a , S > arbitrary:: Arbitrary < ' a > for EnumMeta < ' a , S >
169
169
where
170
170
S : arbitrary:: Arbitrary < ' a > ,
@@ -205,7 +205,7 @@ where
205
205
206
206
/// Interface type metadata
207
207
#[ derive( Debug ) ]
208
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
208
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
209
209
pub struct InterfaceMeta < ' a , S > {
210
210
#[ doc( hidden) ]
211
211
pub name : Cow < ' a , str > ,
@@ -219,7 +219,7 @@ pub struct InterfaceMeta<'a, S> {
219
219
220
220
/// Union type metadata
221
221
#[ derive( Debug ) ]
222
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
222
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
223
223
pub struct UnionMeta < ' a > {
224
224
#[ doc( hidden) ]
225
225
pub name : Cow < ' a , str > ,
@@ -230,7 +230,7 @@ pub struct UnionMeta<'a> {
230
230
}
231
231
232
232
/// Input object metadata
233
- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
233
+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
234
234
pub struct InputObjectMeta < ' a , S > {
235
235
#[ doc( hidden) ]
236
236
pub name : Cow < ' a , str > ,
@@ -241,7 +241,7 @@ pub struct InputObjectMeta<'a, S> {
241
241
pub ( crate ) try_parse_fn : InputValueParseFn < S > ,
242
242
}
243
243
244
- #[ cfg( feature = "arbitrary " ) ]
244
+ #[ cfg( feature = "arbitrary1 " ) ]
245
245
impl < ' a , S > arbitrary:: Arbitrary < ' a > for InputObjectMeta < ' a , S >
246
246
where
247
247
S : arbitrary:: Arbitrary < ' a > ,
@@ -285,7 +285,7 @@ where
285
285
/// After a type's `meta` method has been called but before it has returned, a placeholder type
286
286
/// is inserted into a registry to indicate existence.
287
287
#[ derive( Debug ) ]
288
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
288
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
289
289
pub struct PlaceholderMeta < ' a > {
290
290
#[ doc( hidden) ]
291
291
pub of_type : Type < ' a > ,
@@ -314,7 +314,7 @@ pub enum MetaType<'a, S = DefaultScalarValue> {
314
314
Placeholder ( PlaceholderMeta < ' a > ) ,
315
315
}
316
316
317
- #[ cfg( feature = "arbitrary " ) ]
317
+ #[ cfg( feature = "arbitrary1 " ) ]
318
318
impl < ' a , S > arbitrary:: Arbitrary < ' a > for MetaType < ' a , S >
319
319
where
320
320
S : arbitrary:: Arbitrary < ' a > ,
@@ -340,7 +340,7 @@ where
340
340
341
341
/// Metadata for a field
342
342
#[ derive( Debug , Clone ) ]
343
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
343
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
344
344
pub struct Field < ' a , S > {
345
345
#[ doc( hidden) ]
346
346
pub name : smartstring:: alias:: String ,
@@ -364,7 +364,7 @@ impl<'a, S> Field<'a, S> {
364
364
365
365
/// Metadata for an argument to a field
366
366
#[ derive( Debug , Clone ) ]
367
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
367
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
368
368
pub struct Argument < ' a , S > {
369
369
#[ doc( hidden) ]
370
370
pub name : String ,
@@ -386,7 +386,7 @@ impl<'a, S> Argument<'a, S> {
386
386
387
387
/// Metadata for a single value in an enum
388
388
#[ derive( Debug , Clone ) ]
389
- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
389
+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
390
390
pub struct EnumValue {
391
391
/// The name of the enum value
392
392
///
0 commit comments