+
Skip to content

Conversation

kev1N916
Copy link

@kev1N916 kev1N916 commented Oct 12, 2025

PR Info

Closes #2690

New Features

Changes the directory structure of the generated entitity files.

output-dir/
    entities.rs
    entities/
            foo.rs
            bar.rs
            prelude.rs

@Huliiiiii
Copy link
Member

I think we should add a new flag and set the previous one as the default value.

@kev1N916
Copy link
Author

@Huliiiiii I've added a new flag.
If it is set the new structure will be followed else the old structure will be followed

default_value = "false",
help = "Use the new directory structure when generating the entity files."
)]
use_new_dir_structure: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some alternatives:

  • (use_)new_module_(style/structure/layout): bool
  • module_(style/structure/layout): (old, 2018)

@tyt2y3 What do you think?

@Huliiiiii Huliiiiii requested a review from tyt2y3 October 13, 2025 07:54
Signed-off-by: involk-secure-1609 <kevintj916@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not using mod.rs as the entry point of the generated entities

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载