[package]
name = "viz"
version = "0.2.3"
edition = "2021"
readme = "README.md"
license = "MIT OR Apache-2.0"
authors = ["Fangdun Tsai <cfddream@gmail.com>"]
homepage = "https://viz.rs"
documentation = "https://docs.rs/viz"
repository = "https://github.com/viz-rs/viz"
keywords = ["viz", "http", "web", "framework", "async"]
categories = [
"asynchronous",
"network-programming",
"web-programming::http-server",
]
description = "Fast, flexible, minimalist web framework for Rust"
[features]
default = [
"http1",
"data",
"limits",
"query",
"form",
"json",
"params",
"multipart",
"cookie",
"session",
]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
data = ["viz-core/data"]
limits = ["viz-core/limits"]
query = ["viz-core/query"]
form = ["viz-core/form"]
json = ["viz-core/json"]
params = ["viz-core/params"]
multipart = ["viz-core/form-data"]
websocket = ["viz-core/websocket"]
sse = ["viz-core/sse"]
cookie = ["viz-core/cookie"]
cookie-private = ["viz-core/cookie-private"]
cookie-signed = ["viz-core/cookie-signed"]
session = ["cookie", "viz-core/session"]
csrf = ["cookie", "viz-core/csrf"]
cors = ["viz-core/cors"]
unix-socket = []
macros = ["viz-macros"]
handlers = ["viz-handlers"]
rustls = ["rustls-pemfile", "tokio-rustls", "futures-util"]
native-tls = ["tokio-native-tls", "futures-util"]
[dependencies]
viz-core = { path = "../viz-core", version = "0.2.3" }
viz-router = { path = "../viz-router", version = "0.2.3" }
viz-handlers = { path = "../viz-handlers", version = "0.1.3", optional = true }
viz-macros = { path = "../viz-macros", version = "0.1.0", optional = true }
hyper = { version = "0.14", features = ["tcp", "server", "stream"] }
tokio = { version = "1.20", features = ["net"] }
futures-util = { version = "0.3.21", optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
tokio-rustls = { version = "0.23.4", optional = true }
tokio-native-tls = { version = "0.3.0", optional = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]