You can opt out of loading the library code for views/mailers/etc. Not sure if there's a way to skip the routing layer though. I'm sure you're aware of that already but just in case, you can skip loading the entire framework.
https://stackoverflow.com/questions/41400202/replacing-activ...
I’d love to see more examples of picking pieces of rails and combining with other libraries.