Skip to main content

Module plugin

Module plugin 

Source
Expand description

How an optional package attaches itself to an application.

Laravel discovers packages at runtime and boots them by reflection. Here a package is enabled by one explicit line in main.rs:

App::new().plugin(Telescope::default())

The trait lives in the HTTP crate rather than the meta-crate so a package can implement it without depending on rustlavel itself — which would otherwise be a dependency cycle.

Structs§

Setup
What a plugin is handed when it registers.

Traits§

Plugin