It is mentioned in the Shruti that herbs, vegetables, deer, birds and the wild animals are the ordained food for all creatures.
ओषध्यो वीस्थश्चैव पशवो मृगपक्षिणः। अनादिभूता भूतानामित्यपि श्रूयते श्रुतिः॥