Honestly since DEF and EGR and all that goes into a 2007+ diesel, not sure. I would be in the same boat, except my 2001 has zero rust and still is a solid truck, but I might consider a gas pickup, if forced to replace I don't know.
In 2023 I was in similar boat with my car, a VW Jetta TDI, it...