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

do not use the built in cargo test harness for bin targets #212

Merged
merged 2 commits into from
May 29, 2024

Conversation

Vollbrecht
Copy link
Collaborator

introduces a workaround so people by default have a working rust-analyzer that doesn't trip over building tests for the bin crate.
RA fails over this with problems that lead to problems mention upstream rust-lang/rust#125714

cargo/Cargo.toml Outdated
@@ -6,6 +6,10 @@ edition = "2021"
resolver = "2"
rust-version = "1.71"

[[bin]]
name = "{{project-name}}"
harness = false # do not use the built in cargo test harneess -> resolve rust-analyzer errors
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: fix the harneess typo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed thx!

@ivmarkov ivmarkov merged commit f230808 into esp-rs:master May 29, 2024
30 of 32 checks passed
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