Mozilla funds a few things. Some stuff is funded by other companies. Mozilla pays the most folks to work full time, but the amount is tiny compared to the overall set of teams, let alone contributors.
Thanks Steve for the answer! HN is an amazing place where a random comment asking a question about Rust can get an answer from a core developer. I hope we will always keep it that way.