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.
This commit is contained in:
Rafael Oliveira 2024-04-18 00:51:01 +02:00 committed by GitHub
parent a069d46aff
commit c59e28f8c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -330,7 +330,7 @@ impl EntityWriter {
pub fn write_doc_comment(lines: &mut Vec<String>) { pub fn write_doc_comment(lines: &mut Vec<String>) {
let ver = env!("CARGO_PKG_VERSION"); let ver = env!("CARGO_PKG_VERSION");
let comments = vec![format!( let comments = vec![format!(
"//! `SeaORM` Entity. Generated by sea-orm-codegen {ver}" "//! `SeaORM` Entity, @generated by sea-orm-codegen {ver}"
)]; )];
lines.extend(comments); lines.extend(comments);
lines.push("".to_owned()); lines.push("".to_owned());