matter-bridge (crate)
The bridge as a library: the same code as the binary. API docs.
run(config, shutdown)runs the bridge untilshutdowncompletes.Configis the configuration file;Config::loadreads one, andConfig::controllergives the controller’s configuration from it.- The topic scheme and Home Assistant discovery are in its modules.
The MQTT API and configuration reference document the behavior.