Keep ScalarValue but mark it as deprecated
This commit is contained in:
parent
88c17db8c3
commit
9b021b2fe7
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue