Skip to content

Improve a lot#17

Merged
Bechma merged 5 commits into
devfrom
improve-a-lot
Jun 25, 2026
Merged

Improve a lot#17
Bechma merged 5 commits into
devfrom
improve-a-lot

Conversation

@Bechma

@Bechma Bechma commented Jun 25, 2026

Copy link
Copy Markdown
Owner

No description provided.

Bechma added 3 commits June 25, 2026 10:45
Signed-off-by: Bechma <19294519+Bechma@users.noreply.github.com>
Signed-off-by: Bechma <19294519+Bechma@users.noreply.github.com>
Signed-off-by: Bechma <19294519+Bechma@users.noreply.github.com>
@Bechma
Bechma requested a review from maurolacy June 25, 2026 15:02
@Bechma Bechma self-assigned this Jun 25, 2026
Signed-off-by: Bechma <19294519+Bechma@users.noreply.github.com>

@maurolacy maurolacy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Agree with the design / flags overall. Only comment / concern is about the local hard-coded list of templates.

[package]
name = "cargo-gears-macros"
version.workspace = true
version = "0.0.1"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

because we are not going to release it for now along the other crates, as this crate will be untouched for now, as we don't require macros for now, after the latest changes

/// Main application configuration with strongly-typed global sections
/// and a flexible per-module configuration bag.
#[derive(Clone, Deserialize, Serialize, crate::HelpSchema)]
#[derive(Clone, Deserialize, Serialize, schemars::JsonSchema)]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍🏼

}

#[derive(Clone, Debug, Serialize, Deserialize, schemars::JsonSchema)]
pub struct Section {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is this Section? Config section? These names (Section, Level, Value, etc.) look a bit confusing to me.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Section is extracted from gears-rust https://github.com/constructorfabric/gears-rust/blob/main/libs/toolkit/src/bootstrap/config/mod.rs#L253-L268
This is added to align with the main config

}
}

pub const BUILTIN_TEMPLATES_GEARS: &[TemplateDefinition] = &[

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So, it's hard-coded here? That means that every new template would require a new release. Not sure how frequent that will be, so, this can be manageable.

Having a hard-coded list gives more control, and some amount of meta-data (description) that could be useful and simpler to maintain.

Not against this; just trying to identify pros and cons.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

For now it will be like this, next iteration we should have our own simple registry where the tool will query against

Comment thread crates/cargo-gears-core/src/list/mod.rs Outdated
SystemRegistryModule {
module_name: "module-orchestrator",
crate_name: "cf-module-orchestrator",
crate_name: "cf-gears-module-orchestrator",

@maurolacy maurolacy Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I guess this module is here to stay, right? 🙂

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

fixed!

Signed-off-by: Bechma <19294519+Bechma@users.noreply.github.com>

@maurolacy maurolacy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@Bechma
Bechma merged commit 3fae375 into dev Jun 25, 2026
1 check passed
@Bechma
Bechma deleted the improve-a-lot branch June 25, 2026 15:57
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.

2 participants