

It’s actually pretty similar to rust, only that rust can import multiple modules (namespaces) in one line, which is just syntax sugar, and the syntax is slightly different.
Your example would be
use my_projext::domain::entities;
use my_project::api::contracts::routes::http as routes;





I think the default solution for this is to use a dynamic dns. There are services for that or you can get yourself a domain and configure that as dnydns in your router. That is what I am doing atleast