Compare commits
6 Commits
7d0055e30b
...
7c09814bba
Author | SHA1 | Date |
---|---|---|
|
7c09814bba | |
|
6ecde64fc3 | |
|
a8dcd93bf4 | |
|
b3e3575f84 | |
|
db6cbdb7fe | |
|
1524895122 |
|
@ -7,7 +7,7 @@ members = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "1.2.1"
|
version = "1.2.2"
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
authors = ["Aaron Power <theaaronepower@gmail.com>", "Paul Woolcock <paul@woolcock.us>", "D. Scott Boggs <scott@tams.tech>"]
|
authors = ["Aaron Power <theaaronepower@gmail.com>", "Paul Woolcock <paul@woolcock.us>", "D. Scott Boggs <scott@tams.tech>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
@ -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,
|
||||||
|
|
|
@ -25,7 +25,7 @@ version = "1"
|
||||||
features = ["derive"]
|
features = ["derive"]
|
||||||
|
|
||||||
[dependencies.time]
|
[dependencies.time]
|
||||||
version = "0.3"
|
version = ">=0.3.16"
|
||||||
features = ["parsing", "serde", "formatting"]
|
features = ["parsing", "serde", "formatting"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# nix requires using nix-shell since native-tls requires pkg-config to
|
||||||
|
# configure openssl
|
||||||
|
#
|
||||||
|
# See also:
|
||||||
|
# https://nixos.wiki/wiki/C#pkg-config
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/64530
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "mastodon-async";
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ openssl ];
|
||||||
|
}
|
Loading…
Reference in New Issue