CLI export opts

This commit is contained in:
Breval Ferrari 2025-05-19 17:52:29 +02:00
parent 42e52155e1
commit 0240602c19
2 changed files with 198 additions and 9 deletions

View file

@ -13,24 +13,32 @@ name = "bliplib"
[dependencies]
anyhow = { version = "1.0.98", optional = true }
cfg-if = "1.0.0"
clap = { version = "4.5.38", features = ["derive"], optional = true }
derive-new = "0.7.0"
derive_builder = "0.20.2"
derive_wrapper = "0.1.7"
fasteval = "0.2.4"
flacenc = "0.4.0"
hound = "3.5.1"
flacenc = { version = "0.4.0", optional = true }
hound = { version = "3.5.1", optional = true }
lazy_static = "1.5.0"
mp3lame-encoder = { version = "0.2.1", features = ["std"] }
mp3lame-encoder = { version = "0.2.1", features = ["std"], optional = true }
nom = "8.0.0"
nom_locate = "5.0.0"
raw_audio = "0.0.1"
raw_audio = { version = "0.0.1", optional = true }
strum = { version = "0.27.1", features = ["derive"] }
thiserror = "2.0.12"
[features]
binary-build = ["anyhow", "clap"]
default = ["bin", "all-formats"]
bin = ["anyhow", "clap"]
all-formats = ["mp3", "wav", "flac", "raw"]
mp3 = ["mp3lame-encoder"]
wav = ["hound"]
flac = ["flacenc"]
raw = ["raw_audio"]
[[bin]]
name = "blip"
path = "src/cli/main.rs"
required-features = ["binary-build"]
required-features = ["bin"]