Cargo Features

[dependencies]
moosicbox_server = { version = "0.1.0", default-features = false, features = ["fail-on-warnings", "tls", "base64", "tunnel", "asio", "cpal", "jack", "pulseaudio", "pulseaudio-simple", "pulseaudio-standard", "static-token-auth", "all-formats", "aac", "flac", "mp3", "opus", "postgres", "postgres-native-tls", "postgres-openssl", "postgres-raw", "postgres-sqlx", "sqlite", "sqlite-rusqlite", "sqlite-sqlx", "admin-htmx", "downloader", "library", "player", "qobuz", "scan", "search", "tidal", "upnp", "yt", "all-apis", "app-apis", "admin-htmx-api", "audio-output-api", "audio-zone-api", "auth-api", "config-api", "downloader-api", "files-api", "library-api", "menu-api", "player-api", "qobuz-api", "scan-api", "search-api", "session-api", "tidal-api", "upnp-api", "yt-api", "openapi"] }
default = all-apis, all-formats, base64, cpal, openapi, postgres-native-tls, postgres-openssl, postgres-raw, postgres-sqlx, pulseaudio, sqlite-sqlx, static-token-auth, tunnel

These default features are set whenever moosicbox_server is added without default-features = false somewhere in the dependency tree.

fail-on-warnings
tls

Enables openssl and rcgen

rcgen:

TLS

and openssl of actix-web

actix-web:

TLS via OpenSSL

base64 default

Enables base64 of optional moosicbox_tunnel and optional moosicbox_tunnel_sender

moosicbox_tunnel:

Tunnel dependencies

tunnel default

Enables moosicbox_auth, moosicbox_tunnel, and moosicbox_tunnel_sender

asio

Player audio outputs

Enables asio of optional moosicbox_player

cpal default

Enables cpal of optional moosicbox_player

jack

Enables jack of optional moosicbox_player

pulseaudio default

Enables pulseaudio of optional moosicbox_player

pulseaudio-simple

Enables pulseaudio-simple of optional moosicbox_player

pulseaudio-standard

Enables pulseaudio-standard of optional moosicbox_player

static-token-auth default

Enables qstring

auth

all-formats default = aac, flac, mp3, opus
aac all-formats

Enables aac of moosicbox_core, optional moosicbox_downloader, moosicbox_files, optional moosicbox_library, optional moosicbox_player, optional moosicbox_scan, moosicbox_session, and optional moosicbox_tunnel_sender

flac all-formats

Enables flac of moosicbox_core, optional moosicbox_downloader, moosicbox_files, optional moosicbox_library, optional moosicbox_player, optional moosicbox_scan, moosicbox_session, and optional moosicbox_tunnel_sender

mp3 all-formats

Enables mp3 of moosicbox_core, optional moosicbox_downloader, moosicbox_files, optional moosicbox_library, optional moosicbox_player, optional moosicbox_scan, moosicbox_session, and optional moosicbox_tunnel_sender

opus all-formats

Enables opus of moosicbox_core, optional moosicbox_downloader, moosicbox_files, optional moosicbox_library, optional moosicbox_player, optional moosicbox_scan, moosicbox_session, and optional moosicbox_tunnel_sender

postgres postgres-raw postgres-sqlx

Enables postgres of moosicbox_database, creds and postgres of moosicbox_database_connection, postgres of moosicbox_schema

postgres-native-tls default

Enables postgres-native-tls of moosicbox_database_connection

postgres-openssl default

Enables postgres-openssl of moosicbox_database_connection

postgres-raw default = postgres

Enables postgres-raw of moosicbox_database and moosicbox_database_connection

postgres-sqlx default = postgres

Enables postgres-sqlx of moosicbox_database and moosicbox_database_connection

sqlite sqlite-rusqlite? sqlite-sqlx

Enables sqlite of moosicbox_database_connection and moosicbox_schema

sqlite-rusqlite = sqlite

Enables sqlite-rusqlite of moosicbox_database and moosicbox_database_connection

sqlite-sqlx default = sqlite

Enables sqlite-sqlx of moosicbox_database and moosicbox_database_connection

admin-htmx = admin-htmx-api
downloader downloader-api?

Enables moosicbox_downloader and throttle

Affects events::download_event

library library-api?

Enables moosicbox_library

player player-api? upnp?

Enables moosicbox_library and moosicbox_player

Affects events::playback_event

qobuz qobuz-api?

Enables moosicbox_qobuz

scan scan-api?

Enables moosicbox_scan and throttle

Affects events::scan_event

Enables moosicbox_search

tidal tidal-api?

Enables moosicbox_tidal

upnp upnp-api? = player

Enables moosicbox_upnp

Affects players::upnp

yt yt-api?

Enables moosicbox_yt

all-apis default = app-apis, player-api, upnp-api

APIs

app-apis all-apis = admin-htmx-api, audio-output-api, audio-zone-api, auth-api, config-api, downloader-api, files-api, library-api, menu-api, qobuz-api, scan-api, search-api, session-api, tidal-api, yt-api
admin-htmx-api admin-htmx? app-apis?

Enables actix-htmx and api of moosicbox_admin_htmx

APIs

audio-output-api app-apis?

Enables api of moosicbox_audio_output

audio-zone-api app-apis?

Enables moosicbox_audio_zone

auth-api app-apis?

Enables api of moosicbox_auth

config-api app-apis?
downloader-api app-apis? = downloader

Enables moosicbox_downloader

files-api app-apis?

Enables api of moosicbox_files

library-api app-apis? = library

Enables moosicbox_library

menu-api app-apis?

Enables moosicbox_menu

player-api all-apis = player

Enables api of optional moosicbox_player

qobuz-api app-apis? = qobuz

Enables moosicbox_qobuz

scan-api app-apis? = scan

Enables moosicbox_scan

search-api app-apis? = search

Enables moosicbox_search

session-api app-apis?

Enables api of moosicbox_session

tidal-api app-apis? = tidal

Enables moosicbox_tidal

upnp-api all-apis = upnp

Enables moosicbox_upnp

yt-api app-apis? = yt

Enables moosicbox_yt

openapi default

Enables utoipa, utoipa-rapidoc, utoipa-redoc, utoipa-scalar, and utoipa-swagger-ui, openapi of moosicbox_audio_output, moosicbox_audio_zone, moosicbox_config, moosicbox_core, moosicbox_files, moosicbox_music_api, moosicbox_session, optional moosicbox_auth, optional moosicbox_downloader, optional moosicbox_library, optional moosicbox_menu, optional moosicbox_player, optional moosicbox_qobuz, optional moosicbox_scan, optional moosicbox_search, optional moosicbox_tidal, optional moosicbox_upnp, and optional moosicbox_yt

Affects api::openapi