diff --git a/Cargo.toml b/Cargo.toml index cd9f4eb3..ab1f237e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,15 +29,14 @@ spnego = ["curl-sys/spnego"] static-curl = ["curl/static-curl"] static-ssl = ["curl/static-ssl"] text-decoding = ["encoding_rs", "mime"] -unstable-rustls-tls = ["curl/rustls"] unstable-interceptors = [] [dependencies] async-channel = "1.4.2" castaway = "0.1.1" crossbeam-utils = ">=0.7.0, <0.9.0" -curl = "0.4.42" -curl-sys = "0.4.52" +curl = "0.4.36" +curl-sys = "0.4.42" event-listener = "2.3.3" futures-lite = "1.10.1" http = "0.2.1" diff --git a/README.md b/README.md index 586846d0..aa5403a0 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Not every library is perfect for every use-case. While Isahc strives to be a ful - **Tiny binaries**: If you are creating an application where tiny binary size is a key priority, you might find Isahc to be too large for you. While Isahc's dependencies are carefully curated and a number of features can be disabled, Isahc's core feature set includes things like async which does have some file size overhead. You might find something like [ureq] more suitable. - **WebAssembly support**: If your project needs to be able to be compiled to WebAssembly, then Isahc will probably not work for you. Instead you might like an HTTP client that supports multiple backends such as [Surf]. +- **Rustls support**: We hope to support [rustls] as a TLS backend someday, it is not currently supported directly. If for some reason rustls is a hard requirement for you, you'll need to use a different HTTP client for now. ## Sponsors diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 4119e4f5..64e57c6e 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -6,7 +6,7 @@ publish = false [dependencies] criterion = "0.3" -curl = "0.4.42" +curl = "0.4" rayon = "1" rouille = "3" diff --git a/examples/simple.rs b/examples/simple.rs index d8470c0f..636cadaf 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -6,7 +6,7 @@ use isahc::prelude::*; fn main() -> Result<(), isahc::Error> { // Send a GET request and wait for the response headers. // Must be `mut` so we can read the response body. - let mut response = isahc::get("https://example.org")?; + let mut response = isahc::get("http://example.org")?; // Print some basic info about the response to standard output. println!("Status: {}", response.status()); diff --git a/src/lib.rs b/src/lib.rs index 1b0a7bdf..8795881a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,8 +47,9 @@ //! ``` //! //! If you want to customize the request by adding headers, setting timeouts, -//! etc, then you can create a [`Request`][Request] using a builder-style fluent -//! interface, then finishing it off with a [`send`][RequestExt::send]: +//! etc, then you can create a [`Request`][Request] using a +//! builder-style fluent interface, then finishing it off with a +//! [`send`][RequestExt::send]: //! //! ```no_run //! use isahc::{prelude::*, Request}; @@ -204,12 +205,6 @@ //! Unstable until the API is finalized. This an unstable feature whose //! interface may change between patch releases. //! -//! ### `unstable-rustls-tls` -//! -//! Use [rustls](https://github.com/rustls/rustls) as the TLS backend for HTTPS -//! requests. Currently unstable as the rustls backend in libcurl currently has -//! some known issues and is not yet recommended for production use. -//! //! # Logging and tracing //! //! Isahc logs quite a bit of useful information at various levels compatible