2023-11-06 14:14:46 +00:00
|
|
|
[package]
|
|
|
|
name = "simple-request"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "A simple HTTP(S) request library"
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/common/simple-request"
|
|
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
|
|
keywords = ["http", "https", "async", "request", "ssl"]
|
|
|
|
edition = "2021"
|
2023-11-21 06:19:40 +00:00
|
|
|
rust-version = "1.64"
|
2023-11-06 14:14:46 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2023-12-17 01:54:24 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2023-11-06 14:14:46 +00:00
|
|
|
[dependencies]
|
2024-01-17 00:32:30 +00:00
|
|
|
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", "tokio"] }
|
|
|
|
http-body-util = { version = "0.1", default-features = false }
|
2023-11-06 14:14:46 +00:00
|
|
|
tokio = { version = "1", default-features = false }
|
|
|
|
|
2024-03-27 04:17:04 +00:00
|
|
|
hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "ring", "rustls-native-certs", "native-tokio"], optional = true }
|
2023-11-15 22:18:24 +00:00
|
|
|
|
2023-11-06 14:14:46 +00:00
|
|
|
zeroize = { version = "1", optional = true }
|
|
|
|
base64ct = { version = "1", features = ["alloc"], optional = true }
|
|
|
|
|
|
|
|
[features]
|
2023-11-15 22:18:24 +00:00
|
|
|
tls = ["hyper-rustls"]
|
2023-11-06 14:14:46 +00:00
|
|
|
basic-auth = ["zeroize", "base64ct"]
|
2023-11-15 22:18:24 +00:00
|
|
|
default = ["tls"]
|