diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index 3b61fb67b32a34..8f172ef3b2059a 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -219,7 +219,7 @@ macro_rules! saturating_add_assign { }}; } -#[macro_use] +#[cfg_attr(not(target_os = "solana"), macro_use)] extern crate serde_derive; pub extern crate bs58; extern crate log as logger;