trillium-server-common 0.7.4

server utilities for trillium.rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    // A single `reuseport` cfg gate: the `reuseport` feature, on a Unix platform where
    // SO_REUSEPORT actually load-balances connections across a listener group. Apple platforms,
    // Solaris, illumos, and Cygwin accept the socket options but deliver every connection to one
    // listener, so a thread-per-core listener group offers nothing there.
    cfg_aliases::cfg_aliases! {
        reuseport: {
            all(
                feature = "reuseport",
                unix,
                not(target_os = "solaris"),
                not(target_os = "illumos"),
                not(target_os = "cygwin"),
                not(target_vendor = "apple")
            )
        },
    }
}