fix: build variants

This commit is contained in:
2025-03-31 10:17:55 +01:00
parent 6ba1f2ae9c
commit 915624b2d7
9 changed files with 42 additions and 51 deletions

View File

@ -24,7 +24,7 @@ required-features = ["r96util"]
name = "route96"
[features]
default = ["nip96", "blossom", "analytics", "ranges", "react-ui", "r96util"]
default = ["nip96", "blossom", "analytics", "react-ui", "r96util"]
media-compression = ["dep:ffmpeg-rs-raw", "dep:libc"]
labels = ["nip96", "dep:candle-core", "dep:candle-nn", "dep:candle-transformers"]
nip96 = ["media-compression"]
@ -34,7 +34,6 @@ bin-void-cat-force-migrate = ["dep:regex", "dep:nostr-cursor"]
torrent-v2 = []
analytics = []
void-cat-redirects = ["dep:sqlx-postgres"]
ranges = ["dep:http-range-header"]
react-ui = []
r96util = ["dep:walkdir", "dep:indicatif"]
@ -58,6 +57,7 @@ reqwest = { version = "0.12.8", features = ["stream"] }
clap = { version = "4.5.18", features = ["derive"] }
mime2ext = "0.1.53"
infer = "0.16.0"
http-range-header = { version = "0.4.2" }
tokio-util = { version = "0.7.13", features = ["io", "io-util"] }
@ -67,7 +67,7 @@ candle-core = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1"
candle-nn = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1", optional = true }
candle-transformers = { git = "https://git.v0l.io/huggingface/candle.git", tag = "0.8.1", optional = true }
sqlx-postgres = { version = "0.8.2", optional = true, features = ["chrono", "uuid"] }
http-range-header = { version = "0.4.2", optional = true }
nostr-cursor = { git = "https://git.v0l.io/Kieran/nostr-backup-util.git", branch = "main", optional = true }
regex = { version = "1.11.1", optional = true }
walkdir = { version = "2.5.0", optional = true }