euv-example 0.28.20

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
//! String constants extracted from `build.rs` (rust-standards §1.3c).
//!
//! `build.rs` is the crate root of a build script, so this module is
//! declared from it as `mod r#const;` — the `r#` prefix is required
//! because `const` is a Rust keyword. Every string literal that the
//! §1.3c verifier flags in a function body lives here, verbatim and
//! byte-identical to its original inline form.

// ---------------------------------------------------------------------------
// Cargo-provided build-script environment variables
// ---------------------------------------------------------------------------

/// Cargo-provided directory the build script writes its output into.
pub(crate) const ENV_OUT_DIR: &str = "OUT_DIR";

/// Environment variable key passed to rustc for the package name.
pub(crate) const ENV_KEY_EUV_PACKAGE_NAME_KEY: &str = "EUV_PACKAGE_NAME";

/// Environment variable key passed to rustc for the package version.
pub(crate) const ENV_KEY_EUV_VERSION_KEY: &str = "EUV_VERSION";

/// Environment variable key passed to rustc for the package description.
pub(crate) const ENV_KEY_EUV_DESCRIPTION_KEY: &str = "EUV_DESCRIPTION";

/// Environment variable key passed to rustc for the package repository URL.
pub(crate) const ENV_KEY_EUV_REPOSITORY_KEY: &str = "EUV_REPOSITORY";

/// Environment variable key passed to rustc for the package authors.
pub(crate) const ENV_KEY_EUV_AUTHORS_KEY: &str = "EUV_AUTHORS";

/// Environment variable key passed to rustc for the package license.
pub(crate) const ENV_KEY_EUV_LICENSE_KEY: &str = "EUV_LICENSE";

/// Environment variable key passed to rustc for the Rust edition.
pub(crate) const ENV_KEY_EUV_EDITION_KEY: &str = "EUV_EDITION";

/// Environment variable key passed to rustc for the repository name.
pub(crate) const ENV_KEY_EUV_REPOSITORY_NAME_KEY: &str = "EUV_REPOSITORY_NAME";

/// Environment variable key passed to rustc for the build time string.
pub(crate) const ENV_KEY_EUV_BUILD_TIME_KEY: &str = "EUV_BUILD_TIME";

/// Environment variable key passed to rustc for the build date string.
pub(crate) const ENV_KEY_EUV_BUILD_DATE_KEY: &str = "EUV_BUILD_DATE";

/// Environment variable key passed to rustc for the build clock string.
pub(crate) const ENV_KEY_EUV_BUILD_CLOCK_KEY: &str = "EUV_BUILD_CLOCK";

/// Environment variable key passed to rustc for the build timestamp.
pub(crate) const ENV_KEY_EUV_BUILD_TIMESTAMP_KEY: &str = "EUV_BUILD_TIMESTAMP";

/// Cargo-provided package name of the crate being built.
pub(crate) const ENV_CARGO_PKG_NAME: &str = "CARGO_PKG_NAME";

/// Cargo-provided package version of the crate being built.
pub(crate) const ENV_CARGO_PKG_VERSION: &str = "CARGO_PKG_VERSION";

/// Cargo-provided package description of the crate being built.
pub(crate) const ENV_CARGO_PKG_DESCRIPTION: &str = "CARGO_PKG_DESCRIPTION";

/// Cargo-provided package repository URL of the crate being built.
pub(crate) const ENV_CARGO_PKG_REPOSITORY: &str = "CARGO_PKG_REPOSITORY";

/// Cargo-provided package authors of the crate being built.
pub(crate) const ENV_CARGO_PKG_AUTHORS: &str = "CARGO_PKG_AUTHORS";

/// Cargo-provided package license of the crate being built.
pub(crate) const ENV_CARGO_PKG_LICENSE: &str = "CARGO_PKG_LICENSE";

/// Cargo-provided Rust edition of the crate being built.
pub(crate) const ENV_CARGO_PKG_EDITION: &str = "CARGO_PKG_EDITION";

// ---------------------------------------------------------------------------
// File names and fallbacks
// ---------------------------------------------------------------------------
/// File name of the build state marker written to `OUT_DIR`.
pub(crate) const BUILD_STATE_FILE_NAME: &str = ".euv_build_state";

/// Suffix trimmed off a repository URL to recover the bare repository name.
pub(crate) const REPOSITORY_SUFFIX_GIT: &str = ".git";

/// Fallback Rust edition when `CARGO_PKG_EDITION` is absent.
///
/// `edition` is intentionally hard-coded: Cargo does NOT export
/// `CARGO_PKG_EDITION` for workspace-inherited fields (it only exposes the
/// env var when the value is inline in the crate's own `[package]` table).
/// Keep this in sync with `[workspace.package] edition` in the root
/// `Cargo.toml`.
pub(crate) const EUV_EDITION_FALLBACK: &str = "2024";