diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-10-07 05:47:39 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-10-07 09:06:13 -0400 |
commit | 02ca0a89515413ac9fb3b655de2f21f6a711e0f2 (patch) | |
tree | 004bcd9f88eca168e10e1ac85c5987fdd6769fcf /Cargo.toml | |
parent | 04b5b54212629f058bdab1ba55c89a3d417e0454 (diff) |
Add basic async client
This adds a module, accessible by compiling with `--features async`,
that provides an `elefren::async::Client`. The client is
runtime-agnostic, and currently only provides unauthenticated access,
see the docs for the full list of methods that can be performed* with
this client.
* note that some API calls are publicly available by default, but can be
changed via instance settings to not be publicly accessible
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -27,6 +27,11 @@ toml = { version = "0.5.0", optional = true } tungstenite = "0.11.0" async-trait = "0.1.40" tokio = "0.2.22" +async-h1 = { version = "2.1.2", optional = true } +async-native-tls = { version = "0.3.3", optional = true } +smol = { version = "1.2.2", optional = true } +http-types = { version = "2.5.0", optional = true } +async-mutex = { version = "1.4.0", optional = true } [dependencies.chrono] version = "0.4" @@ -36,9 +41,10 @@ features = ["serde"] default = ["reqwest/default-tls"] json = [] env = ["envy"] -all = ["toml", "json", "env"] +all = ["toml", "json", "env", "async"] rustls-tls = ["reqwest/rustls-tls"] nightly = [] +async = ["async-h1", "async-native-tls", "smol", "http-types", "async-mutex"] [dev-dependencies] tempfile = "3.0.3" |