white-label

Crates.iowhite-label
lib.rswhite-label
version1.0.0
created_at2025-11-21 06:53:11.392299+00
updated_at2025-11-21 06:53:11.392299+00
descriptioncompile-time rebranding for rust
homepage
repositoryhttps://github.com/gulbanana/white-label/
max_upload_size
id1943193
size13,182
(gulbanana)

documentation

README

white-label

CI

Compile-time rebranding for Rust projects.

Usage

The brand! macro supports all Rust literal types: strings, integers, floats, booleans, and characters.

use white_label::brand;

const ENDPOINT: &str = brand! {
    "Northwind" => "https://northwind.example.com/",
    "Contoso" => "https://contoso.example.com/",
    _ => "https://default.example.com/",
};

Set a default brand in .cargo/config.toml:

[env]
WHITE_LABEL_BRAND = "Northwind"
Commit count: 0

cargo fmt