Skip to main content

Module app

Module app 

Source
Expand description

Axum application wiring for the sof-server binary.

This module builds the same router the sof-server binary serves, so that integration tests exercise production wiring instead of a hand-maintained stub. The binary (src/server.rs) is left with only argument parsing and main; everything that decides what gets served lives here.

Structs§

ServerConfig
Server configuration options

Functions§

create_app
Create the axum application with all routes and configuration Create the application router with default configuration This is used for testing and can be used for custom server implementations
create_app_with_config
Create the application router using the given configuration.