songqin
Joined 7 years ago
Joined 7 years ago
Surely this is only the case if you have picked asynchronous libraries to use?
It is unclear to me what you mean by keeping the community "in check". There are a lot of people who rely on and enjoy the async story, and they will continue to produce code that improves that story. Simultaneously, there are people who do not need that, and they are not hindered by this. People will build what they want and need. You've just picked some libraries from some of the biggest async contributors in the community and requested that they be kept in check so that you don't have to switch to a synchronous alternative, of which there are plenty.
Firstly, `reqwest` exposes both an async and a synchronous API, allowing the developer to choose which one to use. They are largely interchangeable code-wise. [1]
Secondarily, and more broadly, async is possible to opt out of. You must understand that most web and network related libraries will be async by default for performance, because people who write in Rust and people who write web servers typically care greatly about performance. This is the intersection of those two groups. That being said, there are options outside of that ecosystem. [2]
If you truly want to use an asynchronous library without migrating your application to run entirely on an async runtime like tokio, you can run it inside of a synchronous function without much trouble. I've put together a playground link for you. [3]
1. https://docs.rs/reqwest/0.11.2/reqwest/blocking/index.html
2. Iron: https://github.com/iron/iron Rouille: https://github.com/tomaka/rouille
3. https://play.rust-lang.org/?version=stable&mode=debug&editio...
I hope this crate helps some companies stuck with antiquated EDI pipelines eliminate some old tech cruft.
We're digitizing pokemon cards and creating unprecedented financialization of card assets. We're a small bootstrapped team. Interested in those able to wield Claude Code effectively, and take a test-driven approach. Bonus points if you have any interest in tokenization of RWAs. Our stack is written in Rust, with a vanilla JS and templated HTML frontend.