Keep ScalarValue but mark it as deprecated

This commit is contained in:
Christian Legnitto 2018-12-19 10:24:01 -08:00 committed by theduke
parent 88c17db8c3
commit 9b021b2fe7

View file

@ -68,6 +68,12 @@ pub fn derive_scalar_value(input: TokenStream) -> TokenStream {
gen.into()
}
#[deprecated(note = "ScalarValue has been renamed to GraphQLScalarValue")]
#[proc_macro_derive(ScalarValue)]
pub fn derive_scalar_value_deprecated(input: TokenStream) -> TokenStream {
derive_scalar_value(input)
}
#[proc_macro_derive(GraphQLScalarValueInternal)]
#[doc(hidden)]
pub fn derive_scalar_value_internal(input: TokenStream) -> TokenStream {