blivemsg 0.2.2

Bilibili Live Message Library - 轻量高效的B站直播消息 Rust 库 - 支持 52+ 消息类型 - 轻量、快速、模块化
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "blivemsg"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bilibili Live Message Library - 轻量高效的B站直播消息 Rust 库 - 支持 52+ 消息类型 - 轻量、快速、模块化"
documentation = "https://docs.rs/blivemsg"
readme = "README_CRATES.md"
keywords = [
    "bilibili",
    "danmaku",
    "live",
    "websocket",
    "streaming",
]
categories = [
    "api-bindings",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/urlynn/blivemsg"

[features]
cli = [
    "dep:clap",
    "dep:toml",
    "protobuf-support",
]
default = ["http-reqwest"]
http-reqwest = ["dep:reqwest"]
http-wreq = ["dep:wreq"]
protobuf-support = [
    "dep:prost",
    "dep:bytes",
    "dep:base64",
]

[lib]
name = "blivemsg"
path = "src/lib.rs"

[[bin]]
name = "blivemsg-cli"
path = "src/bin/cli.rs"
required-features = ["cli"]

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.brotli]
version = "8.0.2"

[dependencies.bytes]
version = "1.11.1"
optional = true

[dependencies.clap]
version = "4.6.1"
features = ["derive"]
optional = true

[dependencies.flate2]
version = "1.1.9"

[dependencies.futures-util]
version = "0.3.32"

[dependencies.hex]
version = "0.4.3"

[dependencies.md-5]
version = "0.11.0"

[dependencies.prost]
version = "0.14.3"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls-native-roots",
    "json",
    "cookies",
]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.52.3"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "net",
]

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["rustls-tls-native-roots"]

[dependencies.toml]
version = "0.9.8"
optional = true

[dependencies.wreq]
version = "5.3"
optional = true

[dependencies.wreq-util]
version = "2.2.6"
optional = true

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true