Merge pull request #106 from vbrandl/fix/openssl-dependency
Disable default features for reqwest
This commit is contained in:
commit
7c09814bba
|
@ -75,6 +75,7 @@ features = ["serde"]
|
||||||
[dependencies.reqwest]
|
[dependencies.reqwest]
|
||||||
version = "0.11"
|
version = "0.11"
|
||||||
features = ["multipart", "json", "stream"]
|
features = ["multipart", "json", "stream"]
|
||||||
|
default-features = false
|
||||||
|
|
||||||
[dependencies.serde]
|
[dependencies.serde]
|
||||||
version = "1"
|
version = "1"
|
||||||
|
|
|
@ -25,6 +25,14 @@ Alternatively, run the following command:
|
||||||
$ cargo add mastodon-async
|
$ 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
|
## A Note on Debugging
|
||||||
This library offers structured logging. To get better information about bugs or
|
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,
|
how something is working, I recommend adding the femme crate as a dependency,
|
||||||
|
|
Loading…
Reference in New Issue