# 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 believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "uclient" version = "0.2.3" authors = ["Guoli Lyu "] exclude = [".gitignore", ".github", "tests/**/*"] description = "Universal HTTP client for Rust" documentation = "https://docs.rs/uclient" readme = "README.md" keywords = ["HTTP", "client", "universal", "web"] license = "MIT" repository = "https://github.com/fMeow/uclient" [package.metadata.docs.rs] all-features = true features = ["multipart", "async_reqwest", "async_surf"] [dependencies.async-trait] version = "0.1" [dependencies.bytes] version = "1" optional = true [dependencies.concat-reader] version = "0.1" optional = true [dependencies.futures] version = "0.3" optional = true [dependencies.http] version = "0.2" [dependencies.hyper] version = "0.10" optional = true default-features = false [dependencies.maybe-async] version = "0.2" [dependencies.mime] version = "0.2" optional = true [dependencies.mime_guess] version = "1" optional = true [dependencies.mime_multipart] version = "0.6" optional = true [dependencies.reqwest] version = "0.11" features = ["gzip", "stream"] optional = true default-features = false [dependencies.surf] version = "2.1.0" optional = true default-features = false [dependencies.thiserror] version = "1" [dependencies.url] version = "2" [dev-dependencies.async-std] version = "1" features = ["attributes"] [dev-dependencies.env_logger] version = "0.8" [dev-dependencies.pretty_assertions] version = "0.7" [dev-dependencies.serde_json] version = "1" [dev-dependencies.tempdir] version = "0.3" [dev-dependencies.tokio] version = "1.1" features = ["macros", "rt-multi-thread"] [features] async_reqwest = ["reqwest/default-tls", "futures", "bytes"] async_reqwest_rustls = ["reqwest/rustls-tls", "futures", "bytes"] async_surf = ["surf/default", "futures"] async_surf_rustls = ["surf/h1-client-rustls", "surf/encoding", "futures"] blocking = ["maybe-async/is_sync"] blocking_reqwest = ["reqwest/blocking", "reqwest/default-tls", "blocking"] blocking_reqwest_rustls = ["reqwest/blocking", "reqwest/rustls-tls", "blocking"] default = ["multipart"] multipart = ["mime", "concat-reader", "mime_multipart", "hyper", "mime_guess"]