Skip to main content

Crate laravel_rust_devtools

Crate laravel_rust_devtools 

Source
Expand description

Developer tools for Laravel for Rust applications.

A floating toolbar for applications in development: a pill at the bottom of each page with its last request, and a panel with the history of the application’s requests, console commands, queued jobs and scheduled tasks, each with its timeline, queries, log lines, outgoing HTTP, cache, mail and errors, built on the spans the framework already emits. The crate’s README describes what the panel shows and who sees it.

An application registers the DevtoolsServiceProvider. In local development only, as DevtoolsConfig allows, it records each request, console command, queued job, scheduled task, workflow step and tick as a trace into storage/devtools, which the application’s processes share, marks each page with its trace for whoever may see the developer tools, adds the pill’s script to their pages, and serves the panel at /_devtools and the traces under /_devtools/api. A DevtoolsGate decides who that is, beyond the provider’s own rules or besides them. These three are the crate’s whole API.

Structs§

DevtoolsConfig
The developer tools’ settings, read from the environment.
DevtoolsServiceProvider
Turns the developer tools on in an application that registers it.

Traits§

DevtoolsGate
Who may see the developer tools, beyond what DevtoolsServiceProvider already checks, or instead of it.