-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
53 lines (44 loc) · 1.51 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
[package]
name = "speechmatics"
version = "0.3.2"
edition = "2021"
keywords = ["websocket", "speechmatics", "asr", "async"]
authors = ["Tudor Evans"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/speechmatics/speechmatics-rs"
repository = "https://github.com/speechmatics/speechmatics-rs"
description = "An async rust SDK for the Speechmatics API"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0"
tokio-tungstenite = { version = "0.19.0", features = ["native-tls"], optional = true }
base64 = "0.21.4"
futures = "0.3.28"
futures-io = "0.3.28"
http = { version = "0.2.9", optional = true }
log = "0.4.20"
rand = { version = "0.8.5", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.33", features = ["macros", "rt", "sync", "rt-multi-thread"], optional = true }
url = "2.4.1"
reqwest = { version = "0.11.20", features = ["multipart", "stream", "json"], optional = true }
[dev-dependencies.async-std]
version = "1.12.0"
features = ["attributes"]
[features]
realtime = ["dep:tokio-tungstenite", "dep:tokio", "dep:http"]
batch = ["dep:reqwest", "dep:rand"]
[[example]]
name = "realtim-basic"
path = "examples/realtime-basic.rs"
[[example]]
name = "tokio-batch"
path = "examples/tokio-batch.rs"
[[example]]
name = "async-std-batch"
path = "examples/async-std-batch.rs"
[package.metadata.docs.rs]
# Whether to pass `--all-features` to Cargo (default: false)
all-features = true