Skip to main content

INTERNAL_PREFIX

Constant INTERNAL_PREFIX 

Source
pub const INTERNAL_PREFIX: &str = "__subcrate_";
Expand description

The prefix of every generated internal crate name.

It is deliberately unlikely to collide with a real crate name and makes the generated artifacts easy to recognise in a target directory. It uses a single trailing underscore (not __) so the full name stays snake-case and never trips the non_snake_case lint — which would otherwise become an error whenever the owner builds with -D warnings.