Merge pull request #106 from vbrandl/fix/openssl-dependency

Disable default features for reqwest
This commit is contained in:
Scott Boggs 2023-06-16 08:05:00 -04:00 committed by GitHub
commit 7c09814bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,7 @@ features = ["serde"]
[dependencies.reqwest]
version = "0.11"
features = ["multipart", "json", "stream"]
default-features = false
[dependencies.serde]
version = "1"

View File

@ -25,6 +25,14 @@ Alternatively, run the following command:
$ cargo add mastodon-async
~~~
### Use Rustls instead of OpenSSL
To use Rustls instead of OpenSSL for HTTPS request, define the dependency as follows
```toml
mastodon-async = { version = "1", default-features = false, features = ["rustls-tls"] }
```
## A Note on Debugging
This library offers structured logging. To get better information about bugs or
how something is working, I recommend adding the femme crate as a dependency,