How do you estimate the code size of a C library? [on hold]

When trying to select an open source library based on code size constraints, is there a simple way to estimate what the compiled size of a C library would be?

Integrating the library into the project would work to determine it but I’m hoping there is some sort of solution that exists to estimate it separate from any projects.

I’m looking to estimate the size of “MQTTPacket” from the following library: https://github.com/eclipse/paho.mqtt.embedded-c