If the spokes and nipples are good, and it is just rim wear, one may be able to simply swap rims, assuming one finds one with the same dimensions.
Of course, building a wheel is a fiddly job that takes some work.
I wore out a rim years ago commuting in the winter in Portland, but I think the rim had already been partly worn when I bought it used.
I've wondered if the newer aluminum alloys wear slower than the old ones.