I ran nostr-rs-relay until last year when I switched over to strfry which seemed to be a bit more performant. I didn't have any problems with compiling back then. Best is probably to create an issue in the nostr-rs-relay repo and describe your issue there.
If you want to check out strfry, here is the link to the repo: https://github.com/hoytech/strfry.