From 67c5b97e5ec3545fa884ca4d561aed62f24344c4 Mon Sep 17 00:00:00 2001 From: Rafael Oliveira Date: Wed, 17 Apr 2024 19:18:56 +0200 Subject: [PATCH] use @generated mark in files created by `sea-orm-codegen` This makes it easier for external tools to identify these files as generated and treat them differently according to their own configuration. --- sea-orm-codegen/src/entity/writer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-codegen/src/entity/writer.rs b/sea-orm-codegen/src/entity/writer.rs index 5f0fb7163..1660c2221 100644 --- a/sea-orm-codegen/src/entity/writer.rs +++ b/sea-orm-codegen/src/entity/writer.rs @@ -330,7 +330,7 @@ impl EntityWriter { pub fn write_doc_comment(lines: &mut Vec) { let ver = env!("CARGO_PKG_VERSION"); let comments = vec![format!( - "//! `SeaORM` Entity. Generated by sea-orm-codegen {ver}" + "//! `SeaORM` Entity, @generated by sea-orm-codegen {ver}" )]; lines.extend(comments); lines.push("".to_owned());