deprecrated / mio-uds Goto Github PK
View Code? Open in Web Editor NEWUnix Domain Sockets for mio
License: Apache License 2.0
Unix Domain Sockets for mio
License: Apache License 2.0
I'm at a loss on this, I've been looking into what could be causing this, both your crate and libc use c_int as the bind
socket parameter.
Although libc has noticted this (link).
Sorry that I couldn't give you more info than this.
I'm using the latest version that Termux has for aarch64-linux-android (aka the cargo/rustc packages by pointless).
Error:
error[E0308]: mismatched types
--> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-uds-0.6.4/src/datagram.rs:33:48
|
33 | try!(cvt(libc::bind(fd.fd(), addr, len)));
| ^^^ expected i32, found u32
error[E0308]: mismatched types
--> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-uds-0.6.4/src/listener.rs:37:48
|
37 | try!(cvt(libc::bind(fd.fd(), addr, len)));
| ^^^ expected i32, found u32
error: aborting due to 2 previous errors
error: Could not compile `mio-uds`.
This sentence in the readme appears to be out-of-date:
This library depends on the unreleased 0.6.0 version of mio, so you'll need to also depend on the master branch of mio for now to use it.
I would expect the readme to instead link to https://crates.io/crates/mio-uds.
I'm trying to create a socket that both owner and group can connect to, but isn't world accessible. It seems it's currently not possible to specify a mode for the socket (default is 0755 on my system). I think that would be a useful feature. :)
There doesn't appear to be a way to go from a UnixStream
created with UnixStream::pair()
(which doesn't use a Path
and only has a RawFd
) to a UnixListener
. Perhaps we can add a UnixListener::bind_raw()
or similar (to here and std?).
Related to tokio-rs/tokio#461
mio-uds
continues to be used (I think correctly) as part of the crate graph for tokio-net but is currently lacking active maintainership (see #23 (comment)). I am actively actively making use of the crate (via tokio) and would be willing to take over as a maintainer for this code.
I think an argument could be made for moving the repo to the tokio-rs org which would give team members in that org the commit bit as well.
We're trying to use this crate in gecko, but review was failed because this vendoring the published crate contains target/ folder. Is it possible to republish on crates.io with out target/?
There should be a mode of UnixStream
/UnixListener
on Linux where it uses SOCK_SEQPACKET
instead of SOCK_STREAM
.
This is to track implementation status for Windows. This will become feasible.
https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/
The contribution agreement in the README refers to "Serde". Shouldn't that be "mio-uds"?
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.