1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2+++ b/rust/lib/net/Cargo.toml Sun Oct 22 23:03:15 2023 -0400
1.3@@ -0,0 +1,53 @@
1.4+[package]
1.5+name = "net"
1.6+version = "0.1.0"
1.7+authors = ["ellis"]
1.8+edition = "2018"
1.9+description = "Network Client/Server Modules"
1.10+documentation = "https://docs.rwest.io/kala"
1.11+repository = "https://hg.rwest.io/rlib"
1.12+publish = ["crater"]
1.13+
1.14+[features]
1.15+default = ["client", "server"]
1.16+full = ["client", "server", "quic", "http", "dns", "wss", "tun", "tls"]
1.17+client = ["reqwest", "async-trait"]
1.18+server = ["hyper", "async-trait", "axum", "tower-http"]
1.19+http = ["hyper","axum","tower-http","reqwest","oauth2","urlencoding","headers","http-rs"]
1.20+tls = ["hyper-rustls", "http"]
1.21+quic = ["quinn"]
1.22+dns = ["trust-dns-resolver"]
1.23+tun = ["tokio-tun"]
1.24+ws = ["tokio-tungstenite"]
1.25+wss = ["tokio-tungstenite/rustls-tls", "ws"]
1.26+
1.27+[dependencies]
1.28+# rlib
1.29+obj = { path = "../obj", features = ["oauth"] }
1.30+# contrib
1.31+futures = "0.3.16"
1.32+bytes = "1.0.1"
1.33+logger = { path = "../logger" }
1.34+url = "2.2.2"
1.35+serde_json = "1.0.68"
1.36+tokio-util = { version = "0.6.7", features = ["full"] }
1.37+async-trait = { version = "0.1.51", optional = true }
1.38+tokio = { version = "1.12.0", default-features = false, features = ["net", "io-util"] }
1.39+tokio-stream = { version = "0.1.7", features = ["net"] }
1.40+## runtimes
1.41+quinn = { version = "0.7.2", features = ["tls-rustls"], optional = true }
1.42+hyper = { version = "0.14.11", optional = true }
1.43+hyper-rustls = {version = "0.22.1", optional = true}
1.44+http-rs = { version = "0.2.4", package = "http", optional = true }
1.45+urlencoding = { version = "2.1.0", optional = true}
1.46+reqwest = {version = "0.11.4", features = ["json", "socks", "rustls-tls"], optional = true}
1.47+axum = {version = "0.2.5", optional = true }
1.48+headers = {version = "0.3", optional = true}
1.49+mime = {version = "0.3.16", optional = true}
1.50+async-session = {version = "3.0.0", optional = true}
1.51+oauth2 = {version = "4.1.0", optional = true}
1.52+tower-http = {version = "0.1", features = ["fs", "trace"], optional = true}
1.53+trust-dns-resolver = {version = "0.20.3", features = [], optional = true}
1.54+tokio-tun = {version = "0.3.15", optional = true}
1.55+ipnetwork = "0.18.0"
1.56+tokio-tungstenite = {version = "0.15.0", optional = true}