Parse #[serde(...)] attributes for derive macros.
Used by derive macros (ts-rs, flowjs-rs, etc.) that need to read serde attributes to produce type definitions matching serde's serialization behavior.
Handles the "always consume the value" pattern to avoid parse buffer issues when serde attributes coexist with other derive attributes.