diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index cef33444e6343b..412c320e3e9b91 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -228,7 +228,7 @@ macro_rules! saturating_add_assign { pub extern crate bs58; extern crate log as logger; -#[cfg_attr(not(target_os = "solana"), macro_use)] +#[cfg_attr(feature = "full", macro_use)] extern crate serde_derive; #[cfg_attr(feature = "frozen-abi", macro_use)]