forked from gwy15/danmu2ass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (48 loc) · 1.65 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 = "danmu2ass"
version = "1.0.1"
edition = "2021"
authors = ["gwy15 <gwy15thu@gmail.com>"]
description = "哔哩哔哩的 xml 文件转化为 ass 文件"
license = "MIT"
homepage = "https://github.com/gwy15/danmu2ass"
repository = "https://github.com/gwy15/danmu2ass"
documentation = "https://docs.rs/danmu2ass/"
[features]
default = ["quick_xml", "rustls", "web"]
# xml 解析方法
xml_rs = ["xml-rs"]
quick_xml = ["quick-xml"]
# tls
native-tls = ["reqwest/native-tls", "biliapi/native-tls"]
rustls = ["reqwest/rustls-tls", "biliapi/rustls"]
web = ["actix-web", "tempfile", "portpicker", "open", "percent-encoding", "actix-files"]
[dependencies]
anyhow = "1.0.56"
float-ord = "0.3.2"
clap = { version = "3.1.6", features = ["derive"] }
serde = { version = "1.0.136", features = ["derive"] }
toml = "0.5.8"
glob = "0.3.0"
log = "0.4.15"
pretty_env_logger = "0.4.0"
rayon = "1.5.1"
memchr = "2.5.0"
xml-rs = { version = "0.8.4", optional = true }
quick-xml = { version = "0.31.0", optional = true }
# 从 哔哩哔哩 下载视频的弹幕并转换为 ass 文件
biliapi = { version = "0.1.17", default-features = false }
prost = "0.10.0"
reqwest = { version = "0.11.10", default-features = false }
url = "2.2.2"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
futures = "0.3.21"
serde_json = "1.0.79"
either = "1.8.0"
actix-web = { version = "4.3.1", optional = true }
tempfile = { version = "3.7.1", optional = true }
portpicker = { version = "0.1.1", optional = true }
open = { version = "5.0.0", optional = true }
percent-encoding = { version = "2.3.0", optional = true }
actix-files = { version = "0.6.2", optional = true }
# actix-cors = "0.6.4"