Rust upgrade: Use new attributes syntax in components