1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-FileCopyrightText: 2025-2026 RAprogramm <andrey.rozanov.vl@gmail.com>
// SPDX-License-Identifier: MIT
//! Generated code marker utilities.
//!
//! Provides marker comments for generated code to clearly indicate
//! its origin and version. This helps with debugging and bug reports.
//!
//! # Generated Marker
//!
//! All generated items include a doc comment:
//!
//! ```rust,ignore
//! /// Generated by entity-derive v0.2.0
//! #[derive(Debug, Clone)]
//! pub struct CreateUserRequest { ... }
//! ```
use TokenStream;
use quote;
/// Crate version from Cargo.toml, embedded at compile time.
const VERSION: &str = env!;
/// Generates a marker doc comment for generated code.
///
/// Returns a `TokenStream` containing a `#[doc = "..."]` attribute
/// that identifies the code as generated by entity-derive.
///
/// # Example Output
///
/// ```rust,ignore
/// #[doc = " Generated by entity-derive v0.2.0"]
/// ```