[package]
edition = "2024"
name = "bpi-rs"
version = "0.2.0"
authors = ["YUELI <yuelioi1210@gmail.com>"]
build = false
exclude = [
".vscode",
"assets",
"flightdeck",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bilibili API client library for Rust"
homepage = "https://github.com/Yuelioi/bpi-rs"
documentation = "https://docs.rs/bpi-rs"
readme = "README.md"
keywords = [
"bilibili",
"api",
"client",
"rust",
"http",
]
categories = [
"api-bindings",
"web-programming",
"network-programming",
]
license = "MIT"
repository = "https://github.com/Yuelioi/bpi-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
activity = []
article = []
audio = []
bangumi = []
cheese = []
clientinfo = []
comment = []
creativecenter = []
danmaku = [
"dep:quick-xml",
"dep:flate2",
]
default = ["full"]
dynamic = ["reqwest/multipart"]
electric = []
fav = []
full = [
"activity",
"article",
"audio",
"bangumi",
"cheese",
"clientinfo",
"comment",
"creativecenter",
"dynamic",
"danmaku",
"electric",
"fav",
"historytoview",
"live",
"login",
"manga",
"message",
"misc",
"note",
"opus",
"search",
"user",
"video",
"video_ranking",
"vip",
"wallet",
"web_widget",
]
historytoview = []
live = []
login = []
manga = []
message = ["dep:uuid"]
misc = []
note = []
opus = []
search = []
user = []
video = []
video_ranking = []
vip = []
wallet = []
web_widget = ["video"]
[lib]
name = "bpi_rs"
path = "src/lib.rs"
[[bin]]
name = "bpi-probe"
path = "src/bin/bpi-probe.rs"
[[example]]
name = "module_clients"
path = "examples/module_clients.rs"
[dependencies.base64]
version = "0.22"
[dependencies.bitflags]
version = "2.9"
[dependencies.bytes]
version = "1.8"
[dependencies.chrono]
version = "0.4"
features = [
"clock",
"serde",
]
[dependencies.config]
version = "0.15"
[dependencies.flate2]
version = "1.1"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.md5]
version = "0.8"
[dependencies.quick-xml]
version = "0.38"
features = ["serialize"]
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"cookies",
"gzip",
"deflate",
"brotli",
"stream",
"multipart",
]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_with]
version = "3.14"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.35"
features = [
"macros",
"rt-multi-thread",
"sync",
]
[dependencies.tokio-util]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"chrono",
"local-time",
"fmt",
"ansi",
"std",
]
[dependencies.uuid]
version = "1.18"
features = ["v4"]
optional = true