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

mqtt-proto does not build in a no_std environment #100

Open
nitroxis opened this issue May 25, 2024 · 2 comments
Open

mqtt-proto does not build in a no_std environment #100

nitroxis opened this issue May 25, 2024 · 2 comments

Comments

@nitroxis
Copy link

Hi,
I found your project while looking for home assistant MQTT serde types and it seems like mqtt-proto has them. The crate itself has no_std support, however, one of its dependencies, nameof, does not:

error[E0463]: can't find crate for `std`
  |
  = note: the `thumbv6m-none-eabi` target may not support the standard library
  = note: `std` is required by `nameof` because it does not declare `#![no_std]`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `nameof` (lib) due to 1 previous error

As far as I can tell, the dependency on this crate could be removed quite easily. Would be cool to allow this crate to be used on embedded devices.

@Alxandr
Copy link
Contributor

Alxandr commented May 27, 2024

It's a really nice QoL create though. While I could definitely inline the macros, I would be rather shocked if nameof requires std. Have you made an issue over there asking if it could be made no_std?

@nitroxis
Copy link
Author

I have created an issue: SilentByte/nameof#12

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