For my library, I want to replace async_std by smol, since the former has been deprecated in favor of the latter. This is mostly just a simple translation (different module structure, names etc.), but what I don’t know is how to replace async-std's stdin. Anybody got a hint on that?

  • @Decq@lemmy.world
    link
    fedilink
    015 days ago

    I’ve not looked too much into it, but it seems AsyncRead/AsyncBufRead (through IoSafe) is implemented for stdin. So i think you should be able to use it like that.