yeast in pastry is used to leaven products, providing rise, texture and flavour. once the gluten network has developed in a dough, it will trap the carbon dioxide released by the yeast, leavening the dough and providing the right rise and texture.