Carbon nitride simultaneously boosted a PtRu electrocatalyst's stability and electrocatalytic activity toward concentrated methanol.