[package] authors = ["Braden Steffaniak"] categories = ["multimedia"] description = "MoosicBox files package" edition = "2021" keywords = ["audio", "file", "track"] license = "MPL-2.0" name = "moosicbox_files" readme = "README.md" repository = "https://github.com/MoosicBox/MoosicBox" version = "0.1.0" [package.metadata.cargo-machete] ignored = ["strum"] [dependencies] moosicbox_assert = { version = "0.1.0", path = "../assert", default-features = false } moosicbox_async_service = { version = "0.1.0", path = "../async_service", optional = true, default-features = false } moosicbox_audio_decoder = { version = "0.1.0", path = "../audio_decoder", optional = true, default-features = false } moosicbox_audio_output = { version = "0.1.0", path = "../audio_output", optional = true, default-features = false } moosicbox_config = { version = "0.1.0", path = "../config", default-features = false } moosicbox_core = { version = "0.1.0", path = "../core", optional = true, default-features = false } moosicbox_database = { version = "0.1.0", path = "../database", optional = true, default-features = false } moosicbox_image = { version = "0.1.0", path = "../image", optional = true, default-features = false } moosicbox_music_api = { version = "0.1.0", path = "../music_api", optional = true, default-features = false } moosicbox_stream_utils = { version = "0.1.0", path = "../stream_utils", default-features = false } moosicbox_task = { version = "0.1.0", path = "../task", optional = true, default-features = false } # API Dependencies utoipa = { workspace = true, optional = true } actix-files = { workspace = true, optional = true } actix-web = { workspace = true, optional = true } atomic_float = { workspace = true } bytes = { workspace = true } flume = { workspace = true, optional = true } futures = { workspace = true } futures-core = { workspace = true } lazy_static = { workspace = true, optional = true } log = { workspace = true } moosicbox_audiotags = { workspace = true } regex = { workspace = true } reqwest = { workspace = true } serde = { workspace = true, features = ["derive"] } strum = { workspace = true, optional = true } strum_macros = { workspace = true, optional = true } symphonia = { workspace = true, optional = true } thiserror = { workspace = true } tokio = { workspace = true } tokio-stream = { workspace = true, optional = true } tokio-util = { workspace = true, optional = true } [features] default = [ "aac", "api", "files", "flac", "image", "mp3", "openapi", "opus", "range", ] fail-on-warnings = [] image = ["moosicbox_image/image"] libvips = ["moosicbox_image/libvips"] api = [ "dep:actix-files", "dep:actix-web", "dep:moosicbox_async_service", "dep:moosicbox_audio_decoder", "dep:moosicbox_task", "files", "moosicbox_database/api", "moosicbox_music_api/api", "range", ] files = [ "dep:flume", "dep:lazy_static", "dep:moosicbox_async_service", "dep:moosicbox_audio_decoder", "dep:moosicbox_audio_output", "dep:moosicbox_core", "dep:moosicbox_database", "dep:moosicbox_music_api", "dep:moosicbox_task", "dep:strum", "dep:strum_macros", "dep:symphonia", "dep:tokio-stream", "dep:tokio-util", ] openapi = [ "dep:utoipa", "moosicbox_core?/openapi", "moosicbox_music_api?/openapi", ] range = ["dep:moosicbox_audio_output"] track-range = ["dep:moosicbox_audio_output"] aac = ["moosicbox_audio_output?/aac", "moosicbox_core?/aac"] flac = ["moosicbox_audio_output?/flac", "moosicbox_core?/flac"] mp3 = ["moosicbox_audio_output?/mp3", "moosicbox_core?/mp3"] opus = ["moosicbox_audio_output?/opus", "moosicbox_core?/opus"]