main/rust: upgrade to 1.78.0
I will squash the commits when Rust 1.78.0 is officially released next week.
As we have no loongarch64
CI to test out the modifications to the patches i have made, @huajingyun01 could you please review the changes to make sure i have not removed anything that is actually needed? Thanks.