The previous method of allowing it through .cargo/config.toml doesn't seem to work anymore.
ruma-macros provides procedural macros for easily generating types for Ruma crates.