Cargo Features
[dependencies]
danmu2ass = { version = "0.2.1", default-features = false, features = ["xml_rs", "quick_xml", "native-tls", "rustls"] }
- default = quick_xml, rustls
-
These default features are set whenever
danmu2ass
is added without
somewhere in the dependency tree.default-features = false - xml_rs = xml-rs
-
xml 解析方法
- quick_xml default = quick-xml
- native-tls
-
tls
Enables native-tls of biliapi and reqwest ^0.11.10
biliapi:
从 哔哩哔哩 下载视频的弹幕并转换为 ass 文件
- rustls default
-
Enables rustls of biliapi, rustls-tls of reqwest ^0.11.10
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- xml-rs xml_rs?
- quick-xml quick_xml
-
Enables quick-xml ^0.22.0