Skip to content

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

@nitroxis

Description

@nitroxis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions