tiny_web/sys/workers/
mod.rs

1/// Connection by protocol FastCGI
2#[cfg(feature = "fastcgi")]
3pub mod fastcgi;
4
5// /// Connection by protocol GRPC
6// pub mod grpc;
7
8/// Connection by protocol HTTP
9#[cfg(any(feature = "http", feature = "https"))]
10pub mod http;
11
12/// Connection by protocol SCGI
13#[cfg(feature = "scgi")]
14pub mod scgi;
15
16/// Connection by protocol UWSGI
17#[cfg(feature = "uwsgi")]
18pub mod uwsgi;
19
20// /// Connection by protocol WebSocket
21// pub mod websocket;
22
23#[cfg(any(
24    not(any(
25        feature = "fastcgi",
26        feature = "http",
27        feature = "https",
28        feature = "scgi",
29        feature = "uwsgi"
30    )),
31    all(
32        feature = "fastcgi",
33        any(feature = "http", feature = "https", feature = "scgi", feature = "uwsgi")
34    ),
35    all(
36        feature = "http",
37        any(feature = "fastcgi", feature = "https", feature = "scgi", feature = "uwsgi")
38    ),
39    all(
40        feature = "https",
41        any(feature = "fastcgi", feature = "http", feature = "scgi", feature = "uwsgi")
42    ),
43    all(
44        feature = "scgi",
45        any(feature = "fastcgi", feature = "http", feature = "https", feature = "uwsgi")
46    ),
47    all(
48        feature = "uwsgi",
49        any(feature = "fastcgi", feature = "http", feature = "https", feature = "scgi")
50    ),
51))]
52compile_error!("Only one features from 'fastcgi', 'scgi', 'uwsgi', 'http', 'https' must be enabled for this crate.");