The rim is toast. How much longer you ride on it should be proportional to your inconvenience when the wheel leaves you stranded.
You may be able to simply replace the rim and reuse some of the wheel. However, I think most wheelbuilders would recommend a completely new wheel.