Skip to main content

GENERATED_MARKER

Constant GENERATED_MARKER 

Source
pub const GENERATED_MARKER: &str = "// Code generated by oapi-codegen-rust. DO NOT EDIT.";
Expand description

The first line of every generated file: the marker that says the generator owns it.

A package writes several files into a directory it manages, and reconciling that directory means deleting the files a previous run left behind. This marker is what distinguishes them from a file somebody wrote by hand, which the generator refuses to touch.