A plant (1) for the production of puffed pasta or puffed legumes comprising a cooker/dryer assembly (2), which is supplied with pasta or raw legumes and is designed to carry out a partial cooking of the pasta or of the legumes and a partial drying thereof, a puffing assembly (3), where the pasta or the legumes are puffed, and a collecting tank (5), into which the pasta or the legumes that have been subjected to the puffing process are conveyed. The cooker/dryer assembly (2) comprises a cooking pipe (8), which is designed to house pasta or legumes in a running manner, heating means (17), which are designed to heat the pipe (8), moving means (16), which are designed to rotate the pipe (8) around a longitudinal axis (X) thereof, inclination means (14, 15), which are designed to incline the pipe (8), a plurality of controlled running partitions (11), which are housed inside the pipe (8) and are designed to slow down the running of pasta or legumes inside the pipe (8), and a plurality of mixing blades (12), which are housed inside the pipe (8) and are designed to mix pasta or legumes inside the pipe (8).