-
Notifications
You must be signed in to change notification settings - Fork 57
/
Cargo.toml
96 lines (87 loc) · 3.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[package]
name = "aspeak"
version = "6.0.1"
edition = "2021"
authors = ["kxxt <[email protected]>"]
description = "A simple text-to-speech client for Azure TTS API."
homepage = "https://github.com/kxxt/aspeak"
repository = "https://github.com/kxxt/aspeak"
keywords = ["speech-synthesis", "aspeak", "tts", "text-to-speech", "audio"]
license = "MIT"
[lib]
name = "aspeak"
crate-type = ["cdylib", "rlib"]
[features]
audio = ["dep:rodio"]
python = ["audio", "dep:pyo3", "dep:env_logger", "dep:color-eyre", "synthesizers"]
rest-synthesizer = ["dep:bytes"]
websocket-synthesizer = ["dep:tokio-tungstenite", "dep:tokio", "dep:futures-util", "dep:tokio-socks", "dep:chrono", "dep:uuid"]
unified-synthesizer = ["dep:async-trait"]
synthesizers = ["unified-synthesizer", "rest-synthesizer", "websocket-synthesizer"]
default = ["default-tls", "synthesizers"]
binary = ["audio", "synthesizers", "dep:tokio", "dep:clap", "dep:env_logger", "dep:toml", "dep:dirs", "dep:color-eyre", "dep:serde_json", "dep:open", "dep:encoding_rs", "dep:encoding_rs_io"]
default-tls = ["native-tls"]
native-tls = ["reqwest/native-tls", "tokio-tungstenite?/native-tls"]
native-tls-vendored = ["reqwest/native-tls-vendored", "tokio-tungstenite?/native-tls-vendored"]
rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots", "tokio-tungstenite?/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["reqwest/rustls-tls-webpki-roots", "tokio-tungstenite?/rustls-tls-webpki-roots"]
[[bin]]
name = "aspeak"
required-features = ["binary"]
[profile.release]
lto = true
strip = true
codegen-units = 1
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
[dependencies]
chrono = { version = "0.4.23", default-features = false, features = [
"std",
"clock",
], optional = true }
clap = { version = "4.1.4", features = ["derive"], optional = true }
colored = "2.0.0"
env_logger = { version = "0.11.3", optional = true }
log = { version = "0.4.17", features = ["release_max_level_info"] }
phf = { version = "0.11.1", features = ["macros"] }
reqwest = { version = "0.12.3", default-features = false, features = [
"json",
"socks",
] }
rodio = { version = "0.17.1", optional = true }
serde = { version = "1.0.152", features = ["derive"] }
serde_json = { version = "1.0.91", optional = true }
strum = { version = "0.26.2", features = ["derive"] }
uuid = { version = "1.3.0", features = [
"v4",
"fast-rng",
"macro-diagnostics",
], optional = true }
xml-rs = "0.8.4"
pyo3 = { version = "0.20.3", features = ["extension-module", "abi3", "abi3-py38"], optional = true }
color-eyre = { version = "0.6.2", optional = true }
tokio-tungstenite = { version = "0.21", optional = true, default-features = false }
tokio = { version = "1.25.0", features = ["rt", "macros"], optional = true }
futures-util = { version = "0.3.26", default-features = false, optional = true }
encoding_rs_io = { version = "0.1.7", optional = true }
encoding_rs = { version = "0.8.32", optional = true }
toml = { version = "0.8.2", default-features = false, features = [
"parse",
], optional = true }
dirs = { version = "5.0.0", optional = true }
open = { version = "5", optional = true }
url = "2.3.1"
hyper = { version = "1" }
hyper-util = { version = "0.1", features = ["tokio"] }
tokio-socks = { version = "0.5.1", optional = true }
anyhow = "1.0.70"
async-trait = { version = "0.1.68", optional = true }
bytes = { version = "1.4.0", optional = true }
http-body-util = "0.1.1"
[dev-dependencies]
futures = "0.3.28"
tokio = { version = "1.25.0", features = ["rt", "macros", "fs"] }
rodio = { version = "0.17.1" }
rustyline = "14.0.0"