You can compost rats and dead animals however really think if a rotting corpse is something you want to have to sift through when turning the pile. Even a small animal corpse will take longer to compost and will attract flies so expect maggots.