What is the mimetype for Rust source code?


Based on https://github.com/rust-lang/kate-config/pull/6 and https://bugs.freedesktop.org/show_bug.cgi?id=90487 I think it should be text/rust. Am I correct?


It would be text/x-rust until registered with IANA.


Just text/rust. The x- prefix has been deprecated. If you want to get technical, there should probably be a provisional registration until such time as there is actually a Rust spec and two interoperable implementations (or possibly just a syntax spec and implementation) to make a final registration with.