Skip to main content

DEFAULT_MARKERS

Constant DEFAULT_MARKERS 

Source
pub const DEFAULT_MARKERS: &[&str];
Expand description

Markers recognised by default in a generated file’s header, in lower case.

Chosen against the banners real generators write rather than against the one convention that has a written rule. @generated and do not edit between them cover the code generators that follow a convention; the two spellings of automatically generated cover the binding generators, which follow none and which are what makes a foreign-function crate mostly machine output.

What is deliberately absent is code generated by, which reads as a banner but is also how a hand-written file says its neighbour is generated — “utilities used by code generated by the derive macro” and the like. Every generator that writes it also writes do not edit on the same line, so dropping it loses nothing and stops the phrase from hiding source that merely talks about generated code.