[package] authors.workspace = true categories = ["api-bindings", "asynchronous", "web-programming::http-client"] description = "Discord REST API client for the Twilight ecosystem." edition.workspace = true homepage = "https://twilight.rs/chapter_1_crates/section_2_http.html" include.workspace = true keywords = ["discord", "discord-api", "twilight"] license.workspace = true name = "twilight-http" publish = true repository.workspace = true rust-version.workspace = true version = "0.16.0-rc.1" [dependencies] fastrand = { default-features = false, features = ["std"], version = "2" } http = { default-features = false, version = "1" } http-body-util = { default-features = false, version = "0.1" } hyper = { default-features = false, version = "1" } hyper-util = { default-features = false, features = ["client-legacy", "http1", "http2", "tokio"], version = "0.1.2" } hyper-rustls = { default-features = false, optional = true, features = ["http1", "http2", "ring"], version = "0.26" } hyper-tls = { default-features = false, optional = true, features = ["alpn"], version = "0.6" } hyper-hickory = { default-features = false, optional = true, version = "0.7" } percent-encoding = { default-features = false, version = "2" } serde = { default-features = false, features = ["derive"], version = "1" } serde_json = { default-features = false, features = ["std"], version = "1" } tokio = { default-features = false, features = ["sync", "time"], version = "1.0" } tracing = { default-features = false, features = ["std", "attributes"], version = "0.1" } twilight-http-ratelimiting = { default-features = false, path = "../twilight-http-ratelimiting", version = "0.16.0-rc.1" } twilight-model = { default-features = false, path = "../twilight-model", version = "0.16.0-rc.1" } twilight-validate = { default-features = false, path = "../twilight-validate", version = "0.16.0-rc.1" } # Optional dependencies. brotli = { default-features = false, features = ["std"], optional = true, version = "3.0.0" } simd-json = { default-features = false, features = ["serde_impl", "swar-number-parsing"], optional = true, version = ">=0.4, <0.14" } [features] default = ["decompression", "rustls-native-roots"] decompression = ["dep:brotli"] native-tls = ["dep:hyper-tls"] rustls-native-roots = ["dep:hyper-rustls", "hyper-rustls?/native-tokio"] rustls-webpki-roots = ["dep:hyper-rustls", "hyper-rustls?/webpki-tokio"] hickory = ["dep:hyper-hickory"] [dev-dependencies] serde_test = { default-features = false, version = "1" } static_assertions = { default-features = false, version = "1.1.0" } twilight-util = { default-features = false, features = ["builder"], path = "../twilight-util", version = "0.16.0-rc.1" } tokio = { default-features = false, features = ["macros", "rt-multi-thread"], version = "1.0" }