initial commit
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
[package]
|
||||
name = "libilibili"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.81"
|
||||
description = "An async Bilibili Web and Live API client with Cookie, CSRF, WBI, and live WebSocket support."
|
||||
license = "GPL-3.0-only"
|
||||
repository = "https://github.com/feliscafra/libilibili"
|
||||
keywords = ["bilibili", "live", "api", "wbi"]
|
||||
categories = ["api-bindings", "web-programming::http-client"]
|
||||
|
||||
[features]
|
||||
default = ["websocket"]
|
||||
websocket = ["dep:tokio", "dep:tokio-tungstenite", "dep:futures-util", "dep:flate2", "dep:brotli"]
|
||||
|
||||
[[bin]]
|
||||
name = "libilibili-capture"
|
||||
path = "src/bin/libilibili-capture.rs"
|
||||
required-features = ["websocket"]
|
||||
|
||||
[[bin]]
|
||||
name = "libilibili-analyze"
|
||||
path = "src/bin/libilibili-analyze.rs"
|
||||
required-features = ["websocket"]
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.22"
|
||||
md-5 = "0.10"
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
thiserror = "2"
|
||||
url = "2"
|
||||
|
||||
brotli = { version = "7", optional = true }
|
||||
flate2 = { version = "1", optional = true }
|
||||
futures-util = { version = "0.3", optional = true }
|
||||
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "time"], optional = true }
|
||||
tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
||||
Reference in New Issue
Block a user