A pug is a small dog with a serious airway
The pug's flat face is the defining feature of the breed and the defining constraint on how you crate them. Pugs have some of the most compressed skulls of any dog, and unlike larger brachycephalic breeds they also have narrow tracheas. Combined, that means a pug in a warm, poorly ventilated crate can go from snoring loudly to actual respiratory emergency faster than you'd expect from a 14–18 lb dog.
Never use a soft-sided fabric crate or a solid plastic kennel for anything but short transport, and even then only with the AC running. At home, use an open wire crate — 22" is right for most adults — placed somewhere with good passive airflow. Do not stack a pug's crate next to a heat register in winter; overheating is a bigger risk for this breed year-round than being cold.
Pugs also have bulging eyes that are surprisingly vulnerable to injury. Keep the crate away from anything sharp poking through the bars — no toy handles, no cage-mounted water bowls with metal edges at eye height.