43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
[package]
|
|
name = "libretunes"
|
|
description = "Open-source audio player and library manager"
|
|
repository = "https://git.libretunes.xyz/LibreTunes/LibreTunes-DX"
|
|
license = "MIT"
|
|
version = "0.1.0"
|
|
authors = ["Ethan Girouard"]
|
|
edition = "2024"
|
|
build = "src/build.rs"
|
|
|
|
[dependencies]
|
|
diesel = { version = "2.3.10", optional = true, features = [ "postgres" ] }
|
|
diesel_migrations = { version = "2.3.2", optional = true, features = [ "postgres" ] }
|
|
dioxus = { version = "0.7.9", features = ["router", "fullstack"] }
|
|
dotenvy = { version = "0.15.7", optional = true }
|
|
lucide-dioxus = { version = "3.11.0", features = ["notifications"] }
|
|
rand = "0.10.1"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
thiserror = "2.0.18"
|
|
tokio = { version = "1.52.3", optional = true, features = ["rt-multi-thread"] }
|
|
tracing = "0.1.44"
|
|
|
|
[features]
|
|
default = ["web"]
|
|
web = ["dioxus/web"]
|
|
server = [
|
|
"dioxus/server",
|
|
"dep:diesel",
|
|
"dep:diesel_migrations",
|
|
"dep:dotenvy",
|
|
"dep:tokio",
|
|
]
|
|
|
|
# Disabled until supported
|
|
# desktop = ["dioxus/desktop"]
|
|
# mobile = ["dioxus/mobile"]
|
|
|
|
# Enable wasm_js in getrandom when building for wasm32
|
|
# This is a workaround for rand not exposing a wasm_js target
|
|
# https://github.com/rust-random/rand/issues/1694#issuecomment-3846362044
|
|
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
|
getrandom = { version = "0.4.3", features = ["wasm_js"] }
|