diff --git a/Cargo.toml b/Cargo.toml index 9c3801265cc09b5ee9216ea9d148e4ce62661815..0111c5509eb738484982e085a3da446386f226d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,29 +8,14 @@ authors = [ ] edition = "2021" -[dependencies] -# convenience macros -maplit = "1.0.2" -derive_more = "0.99.2" - -# runtime -bincode = "1.3.1" -serde = { version = "1.0.114", features = ["derive"] } -getrandom = "0.1.14" # tiny crate. used to guess controller-id - -# network -mio = { version = "0.7.0", package = "mio", features = ["udp", "tcp", "os-poll"] } -socket2 = { version = "0.3.12", optional = true } +[features] +default=["internet"] +internet=["libc"] -# protocol -backtrace = "0.3" -lazy_static = "1.4.0" - -# ffi +[dependencies] -# socket ffi -libc = { version = "^0.2", optional = true } -os_socketaddr = { version = "0.1.0", optional = true } +libc = { version = "^0.2", optional = true } # raw sockets +mio = { version = "0.8", features = ["os-poll"] } # cross-platform IO notification queue # randomness rand = "0.8.4"