[package] name = "async-fcgi" version = "0.5.0" authors = ["User65k <15049544+User65k@users.noreply.github.com>"] edition = "2021" license = "AGPL-3.0" description = "FastCGI library" repository = "https://github.com/User65k/async-fcgi" readme = "README.md" keywords = ["fastcgi", "fcgi", "protocol", "cgi", "tokio"] [dependencies] bytes = "1" http = "1.0" log = "0.4" httparse = { version = "1", optional = true } tokio = { version = "1", optional = true } tokio-util = { version ="0.7", optional = true } http-body = { version = "1.0", optional = true } slab = { version = "0.4", optional = true } async-stream-connection = {version="1.0", optional = true} [dev-dependencies] tokio = { version = "1", features = ["rt","macros"] } pretty_env_logger = { version = "0.5", default-features = false } hyper = {version = "1.2", features = ["http1", "server"]} # Web Server Example hyper-util = {version = "0.1.3", features = ["http1", "server", "tokio"]} [features] # only FCGI types by default default = [] web_server = ["slab","http-body","httparse","tokio/net","tokio/io-util","tokio/sync", "codec","tokio/macros", "async-stream-connection"] con_pool = ["web_server"] app_start = ["con_pool", "tokio/process"] #application = ["httparse","tokio/net"] codec = ["tokio/io-util"] [[example]] name = "webserver" path = "examples/webserver.rs" required-features = ["con_pool","tokio/rt"] [[example]] name = "start_fcgi_server_from_client" path = "examples/start_fcgi_server_from_client.rs" required-features = ["app_start","tokio/rt"] [package.metadata.docs.rs] all-features = true # enable unstable features in the documentation rustdoc-args = ["--cfg", "docsrs"]