Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename async_main to main #93

Merged
merged 3 commits into from
Feb 5, 2025
Merged

Conversation

SergioGasquez
Copy link
Member

No description provided.

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Thanks!

src/main.rs Outdated
@@ -342,6 +342,13 @@ fn main() -> Result<(), Box<dyn Error>> {
}
}

if selected.contains(&"embassy".to_string()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will work fine but I would prefer some template command like //FILENAME src/main.rs (or similar) - just to make it easier in future to add more variants of the main source file

Or we could change the INCLUDEFILE command to accept something like //INCLUDEFILE !embassy src/main.rs (the filename should be optional)

Copy link
Collaborator

Choose a reason for hiding this comment

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

But I'm also fine with doing it like it's done here and have an issue to rethink the approach

Copy link
Collaborator

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM

@bjoernQ bjoernQ added this pull request to the merge queue Feb 5, 2025
Merged via the queue into esp-rs:main with commit fa35d04 Feb 5, 2025
10 checks passed
@SergioGasquez SergioGasquez deleted the feat/rename-main branch February 6, 2025 08:54
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.

Rename the template to main.rs regardless of the template selection.
3 participants