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

[DOCS][FAQ] Missing panic_handler | No main found | Unable to find crate for test #55

Open
newcomertv opened this issue Feb 5, 2025 · 1 comment

Comments

@newcomertv
Copy link

FAQ enhacement suggestion since it took me some time figuring out why rust was complaining. ( I can't edit the wiki):

When using embedded_test with a crate which exposes a lib.rs remember to add the following to your Cargo.toml:

[lib]
harness = false
test = false

Also add the following to the top of your lib.rs: #![no_main].

@t-moe
Copy link
Contributor

t-moe commented Feb 5, 2025

Hey @newcomertv ,
Thanks for this feedback.
Could you please also quickly file an issue regarding the rp2040 in the probe-rs repo?
I dont think we have one yet: https://github.com/probe-rs/probe-rs/issues?q=is%3Aissue%20state%3Aopen%20label%3Acomponent%3Aembedded-test

Thanks a lot

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

No branches or pull requests

2 participants