Files
LibreTunes-DX/Cargo.toml
Ethan Girouard 749b5e7864 Add rand
Enable wasm_js on getrandom
2026-06-20 23:16:15 -04:00

41 lines
1.3 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"
tracing = "0.1.44"
[features]
default = ["web"]
web = ["dioxus/web"]
server = [
"dioxus/server",
"dep:diesel",
"dep:diesel_migrations",
"dep:dotenvy",
]
# 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"] }