Compare commits
6 Commits
7d0055e30b
...
7c09814bba
Author | SHA1 | Date |
---|---|---|
Scott Boggs | 7c09814bba | |
Valentin Brandl | 6ecde64fc3 | |
D. Scott Boggs | a8dcd93bf4 | |
D. Scott Boggs | b3e3575f84 | |
Scott Boggs | db6cbdb7fe | |
baummarten | 1524895122 |
|
@ -7,7 +7,7 @@ members = [
|
|||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
license = "MIT/Apache-2.0"
|
||||
authors = ["Aaron Power <theaaronepower@gmail.com>", "Paul Woolcock <paul@woolcock.us>", "D. Scott Boggs <scott@tams.tech>"]
|
||||
edition = "2021"
|
||||
|
@ -75,6 +75,7 @@ features = ["serde"]
|
|||
[dependencies.reqwest]
|
||||
version = "0.11"
|
||||
features = ["multipart", "json", "stream"]
|
||||
default-features = false
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -25,7 +25,7 @@ version = "1"
|
|||
features = ["derive"]
|
||||
|
||||
[dependencies.time]
|
||||
version = "0.3"
|
||||
version = ">=0.3.16"
|
||||
features = ["parsing", "serde", "formatting"]
|
||||
|
||||
[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