dirbaio[m]: > <@dirbaio:matrix.org> > how is the recommended way to be compatible with async and non async implementations ? > > unfortunately no good way to do this today. Essentially you have to maintain the two versions of the code. Maybe you can isolate the "core" parsing to some IO-less functions and then have both async and blocking wrappers that actually do the IO, but that's not always posssible. > > (There's some crates that attempt to solve this, for example `maybe_async`. I wouldn't recommend using them, they're horrible to use, but feel free to take a look...) Like two separate parsers ?