Skip to main content

commercial_crate

Macro commercial_crate 

Source
macro_rules! commercial_crate {
    () => { ... };
}
Expand description

Marks the calling crate as commercial (Bitwarden-licensed).

Expands to a compile_error! when built with --cfg bitwarden_ensure_non_commercial, so commercial code cannot leak into a non-commercial build. Invoke once per commercial crate:

bitwarden_commercial_marker::commercial_crate!();