Skip to content

Commit d43dabb

Browse files
committed
basic-auth feature is now always activated
1 parent 5cd04cc commit d43dabb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ possible to allow users to get just what they need. Here are the goals of the pr
1616
* Use quality crates from the ecosystem (`http`, `url`, `encoding_rs`), not reinventing the wheel.
1717

1818
## Features
19-
* `basic-auth` support for basic auth
2019
* `charsets` support for decoding more text encodings than just UTF-8
2120
* `compress` support for decompressing response bodies using `miniz_oxide` (**default**)
2221
* `compress-zlib` support for decompressing response bodies using `zlib` instead of `miniz_oxide` (see [flate2 backends](https://github.com/rust-lang/flate2-rs#backends))

src/request/builder.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::fs;
44
use std::str;
55
use std::time::Duration;
66

7-
#[cfg(feature = "basic-auth")]
87
use base64::Engine;
98
use http::{
109
header::{
@@ -134,7 +133,6 @@ impl<B> RequestBuilder<B> {
134133
}
135134

136135
/// Enable HTTP basic authentication.
137-
#[cfg(feature = "basic-auth")]
138136
pub fn basic_auth(self, username: impl std::fmt::Display, password: Option<impl std::fmt::Display>) -> Self {
139137
let auth = match password {
140138
Some(password) => format!("{username}:{password}"),

0 commit comments

Comments
 (0)