| Crates.io | unm_rest_api |
| lib.rs | unm_rest_api |
| version | 0.4.0 |
| created_at | 2022-04-24 17:53:49.884778+00 |
| updated_at | 2023-01-22 03:38:50.260119+00 |
| description | The RESTful API that can deal with UnblockNeteaseMusic API. |
| homepage | |
| repository | https://github.com/UnblockNeteaseMusic/server-rust |
| max_upload_size | |
| id | 573262 |
| size | 82,199 |
這個 API 可以方便您使用傳統 HTTP API 的呼叫形式使用 UNM 的 Engine 及 Executor。
您可以從 Build RESTful API binaries 的 CI 取得以下幾個平台的預編譯版本:
x86_64-pc-windows-msvcx86_64-apple-darwinaarch64-apple-darwinx86_64-unknown-linux-gnucargo install unm_rest_api
unm_rest_api
cargo build --release --bin unm_rest_api
| 環境變數 | 說明 | 範例值 | 選填 |
|---|---|---|---|
RUST_LOG |
日誌輸出的等級。 | debug |
✅ 預設是 info |
SERVE_ADDRESS |
啟動伺服器的 IP:port | 0.0.0.0:1234 |
✅ 預設是 0.0.0.0:3000 |
RUST_LOG 可使用的等級tracedebuginfowarnerrorslient請參見 docs/api.md
config.toml 設定說明LGPL-3.0-or-later