Skip to content

Serde feature enabled by default (through std feature) #30

Description

@phil-opp

The serde feature is active by default because the std feature depends on it:

mqttrs/Cargo.toml

Lines 17 to 22 in 17cc76e

[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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions