# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.80" name = "xkit" version = "1.0.1" authors = ["ghini"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A xkit" documentation = "https://docs.rs/xkit" readme = "README.md" keywords = ["kit"] license = "Apache-2.0" repository = "https://github.com/xghini/xkit" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] targets = ["x86_64-unknown-linux-gnu"] [lib] name = "xkit" path = "src/lib.rs" [[example]] name = "form" path = "examples/form.rs" [[example]] name = "headers_order" path = "examples/headers_order.rs" [[example]] name = "hickory_dns" path = "examples/hickory_dns.rs" required-features = ["hickory-dns"] [[example]] name = "impersonate" path = "examples/impersonate.rs" [[example]] name = "impersonate_template" path = "examples/impersonate_template.rs" [[example]] name = "impersonate_without_headers" path = "examples/impersonate_without_headers.rs" [[example]] name = "json_dynamic" path = "examples/json_dynamic.rs" required-features = ["json"] [[example]] name = "json_typed" path = "examples/json_typed.rs" required-features = ["json"] [[example]] name = "pre_configured_tls" path = "examples/pre_configured_tls.rs" [[example]] name = "psk_impersonate" path = "examples/psk_impersonate.rs" [[example]] name = "set_interface" path = "examples/set_interface.rs" [[example]] name = "set_local_address" path = "examples/set_local_address.rs" [[example]] name = "set_native_ca_cert" path = "examples/set_native_ca_cert.rs" required-features = ["boring-tls-native-roots"] [[example]] name = "set_proxies" path = "examples/set_proxies.rs" required-features = ["socks"] [[example]] name = "set_webpki_ca_cert" path = "examples/set_webpki_ca_cert.rs" required-features = ["boring-tls-webpki-roots"] [[example]] name = "simple" path = "examples/simple.rs" [[example]] name = "tls_info" path = "examples/tls_info.rs" [[example]] name = "tor_socks" path = "examples/tor_socks.rs" required-features = ["socks"] [[example]] name = "websocket" path = "examples/websocket.rs" required-features = ["websocket"] [[test]] name = "badssl" path = "tests/badssl.rs" [[test]] name = "brotli" path = "tests/brotli.rs" required-features = ["brotli"] [[test]] name = "client" path = "tests/client.rs" [[test]] name = "cookie" path = "tests/cookie.rs" required-features = ["cookies"] [[test]] name = "deflate" path = "tests/deflate.rs" required-features = ["deflate"] [[test]] name = "gzip" path = "tests/gzip.rs" required-features = ["gzip"] [[test]] name = "multipart" path = "tests/multipart.rs" required-features = ["multipart"] [[test]] name = "proxy" path = "tests/proxy.rs" [[test]] name = "redirect" path = "tests/redirect.rs" [[test]] name = "timeouts" path = "tests/timeouts.rs" [[test]] name = "upgrade" path = "tests/upgrade.rs" [dependencies.antidote] version = "1" optional = true [dependencies.async-compression] version = "0.4.0" features = ["tokio"] optional = true default-features = false [dependencies.async-tungstenite] version = "0.28.0" optional = true [dependencies.base64] version = "0.22" [dependencies.boring] version = "4" optional = true package = "boring2" [dependencies.boring-sys] version = "4" optional = true package = "boring-sys2" [dependencies.brotli_crate] version = "7" optional = true package = "brotli" [dependencies.bytes] version = "1.0" [dependencies.cookie_crate] version = "0.18" optional = true package = "cookie" [dependencies.cookie_store] version = "0.21" optional = true [dependencies.encoding_rs] version = "0.8" [dependencies.flate2] version = "1" optional = true [dependencies.foreign-types] version = "0.5.0" optional = true [dependencies.futures-core] version = "0.3.0" default-features = false [dependencies.futures-util] version = "0.3.0" default-features = false [dependencies.hickory-resolver] version = "0.24" optional = true [dependencies.http] version = "0.2" [dependencies.http-body] version = "0.4.6" [dependencies.hyper] version = "0.14.60" features = [ "http1", "http2", "client", "runtime", ] default-features = false package = "hyper2" [dependencies.ipnet] version = "2.10.0" [dependencies.linked_hash_set] version = "0.1" optional = true [dependencies.log] version = "0.4" [dependencies.mime] version = "0.3.17" [dependencies.mime_guess] version = "2.0" optional = true default-features = false [dependencies.percent-encoding] version = "2.3" [dependencies.pin-project-lite] version = "0.2.0" [dependencies.rustls-native-certs] version = "0.8.0" optional = true [dependencies.serde] version = "1.0" [dependencies.serde_json] version = "1.0" optional = true [dependencies.serde_urlencoded] version = "0.7.1" [dependencies.tokio] version = "1" features = [ "net", "time", ] default-features = false [dependencies.tokio-boring] version = "4" optional = true package = "tokio-boring2" [dependencies.tokio-socks] version = "0.5.2" optional = true [dependencies.tokio-util] version = "0.7" features = [ "codec", "io", ] optional = true default-features = false [dependencies.tower-layer] version = "0.3" optional = true [dependencies.tower-service] version = "0.3" [dependencies.typed-builder] version = "0.20.0" optional = true [dependencies.url] version = "2.5" [dependencies.webpki-root-certs] version = "0.26.0" optional = true [dev-dependencies.doc-comment] version = "0.3" [dev-dependencies.env_logger] version = "0.10.0" [dev-dependencies.futures] version = "0.3.0" default-features = false [dev-dependencies.hyper] version = "0.14.60" features = [ "stream", "http1", "http2", "client", "server", "runtime", ] default-features = false package = "hyper2" [dev-dependencies.libflate] version = "2.0.0" [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.tokio] version = "1.0" features = [ "macros", "rt-multi-thread", ] default-features = false [dev-dependencies.zstd_crate] version = "0.13" package = "zstd" [features] boring-tls = [ "dep:boring", "dep:tokio-boring", "dep:boring-sys", "dep:foreign-types", "dep:flate2", "dep:brotli_crate", "dep:linked_hash_set", "dep:tower-layer", "dep:antidote", "dep:typed-builder", "boring-tls-pq", ] boring-tls-native-roots = ["dep:rustls-native-certs"] boring-tls-pq = ["boring/pq-experimental"] boring-tls-webpki-roots = ["dep:webpki-root-certs"] brotli = [ "async-compression", "async-compression/brotli", "tokio-util", ] cookies = [ "cookie_crate", "cookie_store", ] default = [ "boring-tls", "boring-tls-webpki-roots", ] deflate = [ "async-compression", "async-compression/deflate", "tokio-util", ] full = [ "boring-tls", "json", "stream", "cookies", "socks", "gzip", "brotli", "zstd", "deflate", ] gzip = [ "async-compression", "async-compression/gzip", "tokio-util", ] hickory-dns = ["hickory-resolver"] internal_proxy_sys_no_cache = [] json = ["serde_json"] multipart = ["mime_guess"] socks = ["tokio-socks"] stream = [ "tokio/fs", "tokio-util", ] websocket = [ "async-tungstenite", "tokio-util/compat", ] zstd = [ "async-compression", "async-compression/zstd", "tokio-util", ] [target.'cfg(target_os = "macos")'.dependencies.system-configuration] version = "0.6.0" [target."cfg(windows)".dependencies.windows-registry] version = "0.3.0"