The serde feature is active by default because the std feature depends on it:
|
[features] |
|
default = ["std"] |
|
|
|
# Implements serde::{Serialize,Deserialize} on mqttrs::Pid. |
|
derive = ["serde"] |
|
std = ["bytes/std", "serde/std"] |
This makes it impossible to build the library with only the std feature, but not the serde feature. Also, the Readme states that you have to add the derive feature in order to use serde, which is not required.
Ideally, we would want to enable the serde/std feature only if both the std and derive features are active, but I don't know if that's possible.
(This is not a real problem for me at the moment, I just though that this looks like a bug, so I decided to report it. Thanks for creating this library, it looks very promising from a first look!)
The
serdefeature is active by default because thestdfeature depends on it:mqttrs/Cargo.toml
Lines 17 to 22 in 17cc76e
This makes it impossible to build the library with only the
stdfeature, but not theserdefeature. Also, the Readme states that you have to add thederivefeature in order to use serde, which is not required.Ideally, we would want to enable the
serde/stdfeature only if both thestdandderivefeatures are active, but I don't know if that's possible.(This is not a real problem for me at the moment, I just though that this looks like a bug, so I decided to report it. Thanks for creating this library, it looks very promising from a first look!)