| Crates.io | white-label |
| lib.rs | white-label |
| version | 1.0.0 |
| created_at | 2025-11-21 06:53:11.392299+00 |
| updated_at | 2025-11-21 06:53:11.392299+00 |
| description | compile-time rebranding for rust |
| homepage | |
| repository | https://github.com/gulbanana/white-label/ |
| max_upload_size | |
| id | 1943193 |
| size | 13,182 |
Compile-time rebranding for Rust projects.
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"