@@ -17,7 +17,7 @@ use crate::{
1717
1818/// Whether an item is deprecated, with context.
1919#[ derive( Debug , PartialEq , Hash , Clone ) ]
20- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
20+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
2121pub enum DeprecationStatus {
2222 /// The field/variant is not deprecated.
2323 Current ,
@@ -55,7 +55,7 @@ pub struct ScalarMeta<'a, S> {
5555 pub ( crate ) parse_fn : for <' b > fn ( ScalarToken < ' b > ) -> Result < S , ParseError < ' b > > ,
5656}
5757
58- #[ cfg( feature = "arbitrary " ) ]
58+ #[ cfg( feature = "arbitrary1 " ) ]
5959impl < ' a , S > arbitrary:: Arbitrary < ' a > for ScalarMeta < ' a , S >
6060where
6161 S : arbitrary:: Arbitrary < ' a > ,
@@ -114,7 +114,7 @@ where
114114
115115/// List type metadata
116116#[ derive( Debug ) ]
117- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
117+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
118118pub struct ListMeta < ' a > {
119119 #[ doc( hidden) ]
120120 pub of_type : Type < ' a > ,
@@ -125,15 +125,15 @@ pub struct ListMeta<'a> {
125125
126126/// Nullable type metadata
127127#[ derive( Debug ) ]
128- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
128+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
129129pub struct NullableMeta < ' a > {
130130 #[ doc( hidden) ]
131131 pub of_type : Type < ' a > ,
132132}
133133
134134/// Object type metadata
135135#[ derive( Debug ) ]
136- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
136+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
137137pub struct ObjectMeta < ' a , S > {
138138 #[ doc( hidden) ]
139139 pub name : Cow < ' a , str > ,
@@ -146,7 +146,7 @@ pub struct ObjectMeta<'a, S> {
146146}
147147
148148/// Enum type metadata
149- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
149+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
150150pub struct EnumMeta < ' a , S > {
151151 #[ doc( hidden) ]
152152 pub name : Cow < ' a , str > ,
@@ -157,7 +157,7 @@ pub struct EnumMeta<'a, S> {
157157 pub ( crate ) try_parse_fn : for <' b > fn ( & ' b InputValue < S > ) -> Result < ( ) , FieldError < S > > ,
158158}
159159
160- #[ cfg( feature = "arbitrary " ) ]
160+ #[ cfg( feature = "arbitrary1 " ) ]
161161impl < ' a , S > arbitrary:: Arbitrary < ' a > for EnumMeta < ' a , S >
162162where
163163 S : arbitrary:: Arbitrary < ' a > ,
@@ -198,7 +198,7 @@ where
198198
199199/// Interface type metadata
200200#[ derive( Debug ) ]
201- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
201+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
202202pub struct InterfaceMeta < ' a , S > {
203203 #[ doc( hidden) ]
204204 pub name : Cow < ' a , str > ,
@@ -210,7 +210,7 @@ pub struct InterfaceMeta<'a, S> {
210210
211211/// Union type metadata
212212#[ derive( Debug ) ]
213- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
213+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
214214pub struct UnionMeta < ' a > {
215215 #[ doc( hidden) ]
216216 pub name : Cow < ' a , str > ,
@@ -221,7 +221,7 @@ pub struct UnionMeta<'a> {
221221}
222222
223223/// Input object metadata
224- //#[cfg_attr(feature = "arbitrary ", derive(arbitrary::Arbitrary))]
224+ //#[cfg_attr(feature = "arbitrary1 ", derive(arbitrary::Arbitrary))]
225225pub struct InputObjectMeta < ' a , S > {
226226 #[ doc( hidden) ]
227227 pub name : Cow < ' a , str > ,
@@ -232,7 +232,7 @@ pub struct InputObjectMeta<'a, S> {
232232 pub ( crate ) try_parse_fn : for <' b > fn ( & ' b InputValue < S > ) -> Result < ( ) , FieldError < S > > ,
233233}
234234
235- #[ cfg( feature = "arbitrary " ) ]
235+ #[ cfg( feature = "arbitrary1 " ) ]
236236impl < ' a , S > arbitrary:: Arbitrary < ' a > for InputObjectMeta < ' a , S >
237237where
238238 S : arbitrary:: Arbitrary < ' a > ,
@@ -276,7 +276,7 @@ where
276276/// After a type's `meta` method has been called but before it has returned, a placeholder type
277277/// is inserted into a registry to indicate existence.
278278#[ derive( Debug ) ]
279- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
279+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
280280pub struct PlaceholderMeta < ' a > {
281281 #[ doc( hidden) ]
282282 pub of_type : Type < ' a > ,
@@ -305,7 +305,7 @@ pub enum MetaType<'a, S = DefaultScalarValue> {
305305 Placeholder ( PlaceholderMeta < ' a > ) ,
306306}
307307
308- #[ cfg( feature = "arbitrary " ) ]
308+ #[ cfg( feature = "arbitrary1 " ) ]
309309impl < ' a , S > arbitrary:: Arbitrary < ' a > for MetaType < ' a , S >
310310where
311311 S : arbitrary:: Arbitrary < ' a > ,
@@ -331,7 +331,7 @@ where
331331
332332/// Metadata for a field
333333#[ derive( Debug , Clone ) ]
334- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
334+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
335335pub struct Field < ' a , S > {
336336 #[ doc( hidden) ]
337337 pub name : smartstring:: alias:: String ,
@@ -355,7 +355,7 @@ impl<'a, S> Field<'a, S> {
355355
356356/// Metadata for an argument to a field
357357#[ derive( Debug , Clone ) ]
358- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
358+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
359359pub struct Argument < ' a , S > {
360360 #[ doc( hidden) ]
361361 pub name : String ,
@@ -377,7 +377,7 @@ impl<'a, S> Argument<'a, S> {
377377
378378/// Metadata for a single value in an enum
379379#[ derive( Debug , Clone ) ]
380- #[ cfg_attr( feature = "arbitrary " , derive( arbitrary:: Arbitrary ) ) ]
380+ #[ cfg_attr( feature = "arbitrary1 " , derive( arbitrary:: Arbitrary ) ) ]
381381pub struct EnumValue {
382382 /// The name of the enum value
383383 ///
0 commit comments