-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
60 lines (52 loc) 路 1.67 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
55
56
57
58
59
60
[package]
name = "lta"
version = "0.6.0"
authors = ["budinverse <me@inve.rs>"]
edition = "2021"
homepage = "https://github.com/BudiNverse/lta-rs"
repository = "https://github.com/BudiNverse/lta-rs"
description = "馃殟 Singapore LTA Datamall Rust Client written in pure rust with support for asynchronous requests"
readme = "README.md"
license = "MIT"
keywords = ["LTA", "Singapore", "Client", "Datamall"]
exclude = [
"/.travis.yml",
"/logo.png",
"./azure-pipelines.yml",
"./.github"
]
[lib]
name = "lta"
[features]
default = ["reqwest-async"]
reqwest-async = ["reqwest", "non-blocking-traits"]
reqwest-blocking = ["reqwest", "reqwest/blocking", "blocking-traits"]
fastfloat = ["lta_models/fastfloat"]
ureq-blocking = ["blocking-traits", "ureq"]
blocking-traits = []
non-blocking-traits = []
[dependencies]
lta_models = { version = "0.6.0", default-features = false }
reqwest = { version = "0.11.10", features = ["json"], default-features = false, optional = true }
serde = { version = "1.0.137" }
thiserror = "1.0.31"
ureq = { version = "2.5.0", features = ["json", "charset"], default-features = false, optional = true }
http = "0.2.8"
concat-string = "1.0.1"
time = { version = "0.3.20", features = ["serde-human-readable", "macros", "formatting"]}
[dev-dependencies]
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"]}
[[example]]
name = "bus_timing"
path = "examples/bus_timing.rs"
[[example]]
name = "reqwest_blocking"
path = "examples/reqwest_blocking.rs"
required-features = ["reqwest-blocking"]
[[example]]
name = "ureq"
path = "examples/ureq.rs"
required-features = ["ureq-blocking"]
[[example]]
name = "custom_client"
path = "examples/custom_client.rs"