Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sockets in Rust [closed]

Are there any socket or net libraries for Rust? The net page in the standard library documentation seems to only include address-related functions.

like image 256
Matt Joiner Avatar asked Mar 11 '26 08:03

Matt Joiner


2 Answers

The std::net exists for working with sockets.

like image 171
ion Avatar answered Mar 12 '26 21:03

ion


There is also a bsd socket library in cargo, which you can install with:

$ cargo install socket

I haven't tried it out yet though. Or if you want to use zeromq, you could use my bindings. You'll need to be using rust's HEAD version though, as it's using code that was added after the rust 0.1 release. Feel free to ping me on irc.mozilla.org's #rust channel if you need any help. I'm erickt there.

like image 29
Erick Tryzelaar Avatar answered Mar 12 '26 20:03

Erick Tryzelaar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!