mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Part of https://github.com/serai-dex/serai/issues/682. We don't remove the use of `tokio::sync::Mutex` now as `hyper` pulls in `tokio::sync` anyways, so there's no point in replacing it. This doesn't yet solve TLS for non-`tokio` `Client`s.
38 lines
1.3 KiB
TOML
38 lines
1.3 KiB
TOML
[package]
|
|
name = "simple-request"
|
|
version = "0.3.0"
|
|
description = "A simple HTTP(S) request library"
|
|
license = "MIT"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/common/request"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = ["http", "https", "async", "request", "ssl"]
|
|
edition = "2021"
|
|
rust-version = "1.71"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
tower-service = { version = "0.3", default-features = false }
|
|
hyper = { version = "1", default-features = false, features = ["http1", "client"] }
|
|
hyper-util = { version = "0.1", default-features = false, features = ["http1", "client-legacy"] }
|
|
http-body-util = { version = "0.1", default-features = false }
|
|
futures-util = { version = "0.3", default-features = false, features = ["std"] }
|
|
tokio = { version = "1", default-features = false, features = ["sync"] }
|
|
|
|
hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "ring", "rustls-native-certs", "native-tokio"], optional = true }
|
|
|
|
zeroize = { version = "1", optional = true }
|
|
base64ct = { version = "1", features = ["alloc"], optional = true }
|
|
|
|
[features]
|
|
tokio = ["hyper-util/tokio"]
|
|
tls = ["tokio", "hyper-rustls"]
|
|
webpki-roots = ["tls", "hyper-rustls/webpki-roots"]
|
|
basic-auth = ["zeroize", "base64ct"]
|
|
default = ["tls"]
|