Rust upgrade: Use new attributes syntax

I've fixed it for components/

I'm not sure if it needs to be fixed anywhere else, the rest of the instances seem to be submodules.