-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (42 loc) · 1011 Bytes
/
Cargo.toml
File metadata and controls
54 lines (42 loc) · 1011 Bytes
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 = "whisper-rust-api"
version = "0.2.0"
edition = "2021"
[dependencies]
# Web framework
axum = { version = "0.7", features = ["multipart"] }
tokio = { version = "1", features = ["full"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["trace", "cors"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Errors
anyhow = "1.0"
thiserror = "1.0"
# Whisper.cpp bindings
whisper-rs = "0.15"
# File handling
tokio-util = { version = "0.7", features = ["io"] }
bytes = "1"
# Configuration
dotenv = "0.15"
clap = { version = "4.0", features = ["derive", "env"] }
# File handling
tempfile = "3.8"
# UUID generation
uuid = { version = "1.0", features = ["v4"] }
[features]
default = []
metal = ["whisper-rs/metal"]
cuda = ["whisper-rs/cuda"]
# Testing
[dev-dependencies]
tokio-test = "0.4"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1