Skip to content

Serde feature requires serde/alloc feature. #29

@TorfsD

Description

@TorfsD

Trying to build the rsa crate on no_std with the serde feature enabled, failed in building num-bigint due to following line:

let data: Vec<u32> = Vec::deserialize(deserializer)?;
.

alloc::vec::Vec::deserialize is only available if serde itself has the alloc feature enabled (see https://docs.serde.rs/src/serde/de/impls.rs.html#840).

So shouldn't the serde alloc feature be enabled when serde is enabled ?

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