smol-rs / async-net Goto Github PK
View Code? Open in Web Editor NEWAsync networking primitives for TCP/UDP/Unix communication
License: Apache License 2.0
Async networking primitives for TCP/UDP/Unix communication
License: Apache License 2.0
We should copy the API from the standard library (still an unstable feature at the time of writing this):
Types like Async<TcpListener>
provide an into_inner()
method to return the TcpListener
, but async_net::TcpListener
(AKA smol::net::TcpListener
) does not expose that.
Mild testing on my own part indicated that the MSRV for this crate is 1.40.0 on Ubuntu 20.04 LTS. It would be nice if there were a badge on the README indicating this.
I'd like to have a TcpSocket
implementation like in Tokio (I don't really want to depend on the Tokio runtime just for this feature). I know that there are workarounds, but an async-first, easy to use implementation would be really appreciated.
I just grep
'd through the source code and it looks like the fastrand
dependency isn't being used anywhere. Its usage was probably removed in this commit. Should we take it out of Cargo.toml
?
I would like to understand if there a particular reason why the API for async_net::TcpStream does not mirror the API provided by std::TcpStream or Async by not implementing the AsyncRead and AsyncRead for shared references. I suppose I could still do this by using the Into<Arc<Async<TcpStream>>>
implementation and using the implementations on that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.