[no_std] should be declared in binary crate root instead of library. .#4
[no_std] should be declared in binary crate root instead of library. .#4krystian-wojtas wants to merge 1 commit intowose:masterfrom
Conversation
…Otherwise it cannot be used by std projects
|
Here is build with patch applied |
|
Pipeline in your orginal project failed because my email address was not verified in github. I don't know how to rerun it now. |
|
You seem to have vendored (included) the code from this crate into your project. That's why you're getting unused code warnings. Is there a reason you're not using it via cargo instead? To be more clear, your changes would be fine for your own project, but I don't see a reason to apply them here. |
|
Hi, basically what @lnicola said. Are you aware that you can add unreleased crates to your project by telling cargo the git uri? Something like: |
|
@wose I'm on my phone so I haven't checked, but would you consider publishing it? There's quite a bit of squatting going on, and I think someone already wrote another SHT1x driver, probably because they weren't aware of this one. |
|
@lnicola Yes. I wanted to publish the crate during last week after adding some more documentation, but didn't got around to finish it. It will probably take another few days. I also looked into supporting some similar sensors with this crate. I thought about renaming the crate it to something like si70xx before publishing it to crates.io. |
|
I was not aware that git links works as cargo dependecies without pulishing to crates.io. Thanks for that. I will do it this way. |
|
@wose I have si7021 as git link as you adviced me. But I cannot publish new release with git link |
This comment has been minimized.
This comment has been minimized.
|
Ok, it should be easy |
|
Ah, sorry, I misread your comment. Indeed, you can't publish a crate with |
|
Right, exact commit didn't help. Still same error message https://gitlab.com/krystian.wojtas/weather_station/-/commit/74eb953f813055ae1d433204f2dce9ff55b9c00c |
|
For clarification as temporarily workaround external It's in master |
|
I just renamed crate to be more generic And repository |
…Otherwise it cannot be used by std projects
When I try to use si7021 master in another project without this patch, I get following build errors:
https://gitlab.com/krystian.wojtas/weather_station/-/jobs/438899063