diff --git a/Cargo.toml b/Cargo.toml index f6d04de..8331d03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,4 +27,4 @@ syn = { version="0.15", features=["full"] } quote = "0.6" [features] -rustgc = [] +alloy = [] diff --git a/src/lib.rs b/src/lib.rs index 4a71aa3..c9d2c13 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,9 +159,9 @@ pub fn narrowable(args: TokenStream, input: TokenStream) -> TokenStream { TokenStream::from(expanded) } -#[cfg(feature = "rustgc")] +#[cfg(feature = "alloy")] #[proc_macro_attribute] -pub fn narrowable_rustgc(args: TokenStream, input: TokenStream) -> TokenStream { +pub fn narrowable_alloy(args: TokenStream, input: TokenStream) -> TokenStream { let args = parse_macro_input!(args as AttributeArgs); let input = parse_macro_input!(input as ItemTrait); if args.len() != 1 {