What should you do with a rabbit that's not eating or drinking very skinny and very hard feces?

Yikes! The vet!
You should take your rabbit to the vet immediately. Not eating or drinking is a very bad sign. Rabbits are grazing animals and should basically be eating most of the time they are awake.