From c59e28f8c0319accc7177d3c37fe7bd2a8892b82 Mon Sep 17 00:00:00 2001 From: Rafael Oliveira Date: Thu, 18 Apr 2024 00:51:01 +0200 Subject: [PATCH] use @generated mark in files created by `sea-orm-codegen` (#2199) 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());