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

Add default_bin parameter to cargo-embed configuration file #2349

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

juliankrieger
Copy link

as mentioned in #1477.

I've chosen to pass the default_bin's value directly to cargo_options, where it will be transformed into the --bin command.

@bugadani bugadani linked an issue Apr 5, 2024 that may be closed by this pull request
@@ -101,7 +101,7 @@ pub(crate) fn render_diagnostics(error: OperationError) {
ArtifactError::MultipleArtifacts => (
source.to_string(),
vec![
"Use '--bin' to specify which binary to flash.".into(),
"Use '--bin' or set a default bin to specify which binary to flash.".into(),
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not immediately obvious to me that this refers to the Embed.toml. However, I'm not sure how we could improve wording to clarify, while not making the error message overly verbose.

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.

Embed.toml: add option to set default binary
2 participants