├── .github └── workflows │ ├── publish.yml │ └── rust.yml ├── .gitignore ├── CONTRIBUTE.md ├── Cargo.toml ├── LICENSE ├── README.md ├── api.md ├── examples ├── using-tokio │ ├── .gitignore │ └── main.rs └── using-wasm │ └── main.rs ├── fix-all.ps1 ├── fix-all.sh ├── rust-toolchain.toml └── src ├── cmd.rs ├── connection ├── mod.rs ├── synchub.rs ├── tokio_connection.rs └── wasm_connection.rs ├── connector.rs ├── error.rs ├── event.rs ├── lib.rs ├── model.rs ├── packet.rs └── tests ├── cmd_test.rs ├── connect_test.rs ├── mock └── cmd │ ├── ComboSend.json │ ├── CommonNoticeDanmaku.json │ ├── DanmuMsg.json │ ├── EntryEffect.json │ ├── GuardBuy.json │ ├── HotBuyNum.json │ ├── HotRankChanged.json │ ├── HotRankChangedV2.json │ ├── HotRankSettlement.json │ ├── HotRankSettlementV2.json │ ├── InteractWord.json │ ├── LiveInteractiveGame.json │ ├── NoticeMsg.json │ ├── OnlineRankCount.json │ ├── OnlineRankTop3.json │ ├── OnlineRankV2.json │ ├── PopularityRedPocketStart.json │ ├── RoomChange.json │ ├── RoomRealTimeMessageUpdate.json │ ├── SendGift.json │ ├── StopLiveRoomList.json │ ├── SuperChatMessage.json │ ├── SuperChatMessageJpn.json │ ├── UserToastMsg.json │ ├── WachedChange.json │ └── WidgetBanner.json └── mod.rs /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | .vscode -------------------------------------------------------------------------------- /CONTRIBUTE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/CONTRIBUTE.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/README.md -------------------------------------------------------------------------------- /api.md: -------------------------------------------------------------------------------- 1 | # 用户信息 2 | https://api.bilibili.com/x/space/acc/info?mid={uid} 3 | -------------------------------------------------------------------------------- /examples/using-tokio/.gitignore: -------------------------------------------------------------------------------- 1 | cookie.toml -------------------------------------------------------------------------------- /examples/using-tokio/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/examples/using-tokio/main.rs -------------------------------------------------------------------------------- /examples/using-wasm/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/examples/using-wasm/main.rs -------------------------------------------------------------------------------- /fix-all.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/fix-all.ps1 -------------------------------------------------------------------------------- /fix-all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/fix-all.sh -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel="nightly" -------------------------------------------------------------------------------- /src/cmd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/cmd.rs -------------------------------------------------------------------------------- /src/connection/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/connection/mod.rs -------------------------------------------------------------------------------- /src/connection/synchub.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/connection/synchub.rs -------------------------------------------------------------------------------- /src/connection/tokio_connection.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/connection/tokio_connection.rs -------------------------------------------------------------------------------- /src/connection/wasm_connection.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/connection/wasm_connection.rs -------------------------------------------------------------------------------- /src/connector.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/connector.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/event.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/event.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/model.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/model.rs -------------------------------------------------------------------------------- /src/packet.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/packet.rs -------------------------------------------------------------------------------- /src/tests/cmd_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/cmd_test.rs -------------------------------------------------------------------------------- /src/tests/connect_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/connect_test.rs -------------------------------------------------------------------------------- /src/tests/mock/cmd/ComboSend.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/ComboSend.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/CommonNoticeDanmaku.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/CommonNoticeDanmaku.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/DanmuMsg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/DanmuMsg.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/EntryEffect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/EntryEffect.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/GuardBuy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/GuardBuy.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/HotBuyNum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/HotBuyNum.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/HotRankChanged.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/HotRankChanged.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/HotRankChangedV2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/HotRankChangedV2.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/HotRankSettlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/HotRankSettlement.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/HotRankSettlementV2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/HotRankSettlementV2.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/InteractWord.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/InteractWord.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/LiveInteractiveGame.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/LiveInteractiveGame.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/NoticeMsg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/NoticeMsg.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/OnlineRankCount.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/OnlineRankCount.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/OnlineRankTop3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/OnlineRankTop3.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/OnlineRankV2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/OnlineRankV2.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/PopularityRedPocketStart.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/PopularityRedPocketStart.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/RoomChange.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/RoomChange.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/RoomRealTimeMessageUpdate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/RoomRealTimeMessageUpdate.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/SendGift.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/SendGift.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/StopLiveRoomList.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/StopLiveRoomList.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/SuperChatMessage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/SuperChatMessage.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/SuperChatMessageJpn.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/SuperChatMessageJpn.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/UserToastMsg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/UserToastMsg.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/WachedChange.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/WachedChange.json -------------------------------------------------------------------------------- /src/tests/mock/cmd/WidgetBanner.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mock/cmd/WidgetBanner.json -------------------------------------------------------------------------------- /src/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4t145/bilive-danmaku/HEAD/src/tests/mod.rs --------------------------------------------------------------------------------