With standard C++20, there is std::format. How about using std::format replace the fmt::format. Then remove the dependence of {fmt}.