Remove dependency on nix
This commit removes the dependency on the `nix` crate in favor of local bindings. Most of the local bindings are slated to be deleted with the eventual removal of the `deprecated` module and implementing Unix sockets and pipes out of tree anyway. The `nix` crate has grown quite large over time and is a bit of a weighty dependency, and future extensions to the mio crate, such as adding eventfd support, would likely require bypassing `nix` regardless to deal with conditional support for the feature. Additionally mio already has raw logic for functions like `epoll_create1` and such.
... | ... | @@ -24,8 +24,7 @@ slab = "0.3.0" |
net2 = "0.2.19" | ||
[target.'cfg(unix)'.dependencies] | ||
nix = "0.7.0" | ||
libc = "0.2.16" | ||
libc = "0.2.19" | ||
[target.'cfg(windows)'.dependencies] | ||
winapi = "0.2.1" | ||
... | ... | @@ -33,7 +32,7 @@ miow = "0.1.4" |
kernel32-sys = "0.2" | ||
[dev-dependencies] | ||
env_logger = "0.3.0" | ||
env_logger = { version = "0.3.0", default-features = false } | ||
tempdir = "0.3.4" | ||
bytes = "0.3.0" | ||
... | ... |
src/sys/unix/dlsym.rs
0 → 100644