-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
54 lines (43 loc) · 1.44 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "libtad-rs"
version = "0.2.0"
edition = "2018"
authors = ["Daniel Alvsåker <daniel@timeanddate.com>"]
categories = ["api-bindings"]
keywords = ["time", "date", "timeanddate", "api"]
license = "MIT"
description = "Rust library for accessing Time and Date APIs"
homepage = "https://dev.timeanddate.com"
repository = "https://github.com/timeanddate/libtad-rs"
documentation = "https://docs.rs/libtad-rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# API models
libtad-models = { path = "libtad-models", version = "0.2" }
# Deserialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# URL handling
serde_url_params = "0.2"
url = "2.2"
# Authentication
base64 = "0.13"
chrono = "0.4"
hmac = "0.11"
sha-1 = "0.9"
# Optional async handling
async-trait = { version = "0.1", optional = true }
maybe-async = "0.2"
# HTTP clients
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json", "rustls-tls"] }
attohttpc = { version = "0.17", optional = true, default-features = false, features = ["json", "tls-rustls"] }
[workspace]
members = ["libtad-models"]
[features]
default = ["sync-client"]
async-client = ["reqwest", "__async"]
sync-client = ["attohttpc", "__sync"]
__async = ["async-trait"]
__sync = ["maybe-async/is_sync"]
[dev-dependencies]
tokio = { version = "1", default-features = false, features = ["macros", "rt"] }