Skip to main content

WRAPPERS_FILE_MARKER

Constant WRAPPERS_FILE_MARKER 

Source
const WRAPPERS_FILE_MARKER: &str = "# ---- AUTO-GENERATED FILE - DO NOT EDIT ----";
Expand description

Returns true when a and b are equal after normalising away (<file>.rs:LINE:COL) positional suffixes in source-attribution comments.

The #[miniextendr] proc-macro emits comments of the form:

# Generated from Rust fn `foo` (lib.rs:42:8)

The 42:8 part shifts whenever unrelated code above the wrapper is edited, producing spurious wrapper-file rewrites and misleading NOTEs. Normalisation replaces (lib.rs:42:8) → (lib.rs:_:_) for the comparison only; the file on disk still carries the real positions.

First line of the generated wrappers file.