DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.37k stars 747 forks source link

Warn at compile time if the CLI config cannot be read in a crate #2089

Closed ealmloff closed 3 months ago

ealmloff commented 3 months ago

Feature Request

We currently warn the user with a tracing warning here if a crate tries to read the CLI config at runtime.

We rely on reading the tracing config for some automatic configuration like the base_path for the router. We should also warn with a compiler warning.

Implement Suggestion

Add a build script to the cli-config crate that checks if the CLI config is present when the crate is being built