CLI Config Accessors (src/lib.rs)

dioxus · packages/cli-config/src/lib.rs · rust · Apache-2.0
infra, dev-tools, cli, lang:rust, fw:dioxus, tag:configuration, tag:environment, tag:devserver

Exposes Dioxus CLI development configuration such as devserver addresses, base paths, cache directories, and build IDs via environment-backed functions. Reuse when app code needs CLI-provided runtime settings.

// Source: https://github.com/DioxusLabs/dioxus | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
//! <div align="center">
//!     <img
//!         src="https://github.com/user-attachments/assets/6c7e227e-44ff-4e53-824a-67949051149c"
//!         alt="Build web, desktop, and mobile apps with a single codebase."
//!         width="100%"
//!         class="darkmode-image"
//!     >
//! </div>
//!
//! # Dioxus CLI configuration
//!
//! This crate exposes the various configuration options that the Dioxus CLI sets when running the
//! application during development.
//!
//! Note that these functions will return a different value when running under the CLI, so make sure
//! not to rely on them when running in a production environment.
//!
//! ## Constants
//!


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key