OMG what are these I thought it was just rice scattered on my garbage can this morning… but then I looked closer and they were moving.
These are maggots, which are the larval stage of flies (most commonly the housefly or blowfly). They are definitely not rice. The reason you are seeing them on your garbage can is that adult flies have detected organic waste inside, laid their eggs, and those eggs have hatched into larvae. They are now actively feeding…