pub(super) fn write_registry_id( entry: &impl RegistryEntry, writer: &mut impl Write, name: &str, ) -> Result<()>