WMT-GmbH / pn532

no_std implementation of the Pn532 protocol using embedded_hal traits
Apache License 2.0
20 stars 19 forks source link

Fails to build when used in a esp32 project with feature "std" #5

Closed JohnTheCoolingFan closed 1 year ago

JohnTheCoolingFan commented 1 year ago

Cargo project generated using template from https://github.com/esp-rs/esp-idf-template Added pn532 = { version = "0.2", features = ["std"] } to dependencies. Full error log: https://gist.github.com/JohnTheCoolingFan/ca330da3b7e187e28124d98f0573abba

dimpolo commented 1 year ago

Thanks for the report!

The std feature pulls in the serialport crate, which only compiles for some targets.

Currently that is all that the std feature does, so there is no reason to enable it for the esp32. I'll try and document this better 😃

JohnTheCoolingFan commented 1 year ago

Alright, thanks for clarifying

dimpolo commented 1 year ago

should be documented now