66 lines
2.8 KiB
TOML
66 lines
2.8 KiB
TOML
[package]
|
||
name = "lfmusic"
|
||
version = "0.1.0"
|
||
description = "A Tauri App"
|
||
authors = ["you"]
|
||
edition = "2021"
|
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||
|
||
[lib]
|
||
# The `_lib` suffix may seem redundant but it is necessary
|
||
# to make the lib name unique and wouldn't conflict with the bin name.
|
||
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
||
name = "lfmusic_lib"
|
||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||
|
||
[build-dependencies]
|
||
tauri-build = { version = "2", features = [] }
|
||
|
||
[dependencies]
|
||
# protocol-asset:assetProtocol(封面走 convertFileSrc,需按 scope 放行本地文件)
|
||
tauri = { version = "2", features = ["protocol-asset"] }
|
||
tauri-plugin-opener = "2"
|
||
serde = { version = "1", features = ["derive"] }
|
||
serde_json = "1"
|
||
# M2 手机遥控(M3):/pair 走 Rust 侧 POST,绕开 WebView 的 CORS;
|
||
# stream=曲库流式转发(proxy bytes_stream);rustls-tls=danger_accept_invalid_certs
|
||
#(自签名 https NAS)与 Android 可移植 TLS
|
||
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls", "blocking"] }
|
||
# M1 普通播放:移动端原生播放引擎(Media3 ExoPlayer / AVPlayer,PLAN §0 判断 1)
|
||
# 能力边界见 PLAN M1 清单(无 stop/队列,编排在 src-tauri/src/player)
|
||
tauri-plugin-native-audio = "1"
|
||
# M1 曲库:元数据/封面提取 + SQLite 索引 + 目录遍历(与 Thing 同款栈,PLAN §3.3)
|
||
lofty = "0.22"
|
||
walkdir = "2"
|
||
rusqlite = { version = "0.32", features = ["bundled"] }
|
||
# M1 播放模式:随机播放
|
||
rand = "0.8"
|
||
# M1-a:媒体权限插件的 ACL 清单载体(包名即插件名 media;见 media-plugin/)
|
||
media = { path = "./media-plugin" }
|
||
# M2 飞牛曲库:本机流代理(axum,移植 Thing feiniu/proxy.rs 的 Range 透传)
|
||
axum = "0.7"
|
||
tokio = { version = "1", features = ["rt-multi-thread", "net", "time", "sync", "macros"] }
|
||
# M2 登录签名(与 Thing feiniu/conn.rs 字段级一致)+ 访问安全码
|
||
sha2 = "0.10"
|
||
base64 = "0.22"
|
||
# M4 UAC:USB DAC bit-perfect(rusb/libusb;Android 上 Kotlin fd 经
|
||
# open_device_with_fd(wrap_sys_device) 桥接,Flick 同款;vendored=源码编译,
|
||
# 桌面免 pkg-config/vcpkg,Android 免预编译库)
|
||
rusb = { version = "0.9", features = ["vendored"] }
|
||
# M4 UAC:「usb」插件 ACL 清单载体(Kotlin UsbPlugin 桥,见 usb-plugin/)
|
||
usb = { path = "./usb-plugin" }
|
||
# M4 UAC 解码(PCM 直喂 DAC;默认 features 覆盖 flac/mp3/aac/ogg/wav/pcm)
|
||
symphonia = "0.5"
|
||
# M4 UAC:原生 libusb iso transfer(libusb_fill_iso_transfer 等,rusb 未封装)
|
||
libusb1-sys = "0.7"
|
||
|
||
|
||
# Read the optimization guideline for more details: https://tauri.app/concept/size/#cargo-configuration
|
||
[profile.release]
|
||
codegen-units = 1
|
||
lto = true
|
||
opt-level = 3
|
||
panic = "abort"
|
||
strip = true
|