Skip to content

Does elliptic-curve with only the serde feature enabled still require alloc? #1960

@datdenkikniet

Description

@datdenkikniet

Hi,

We're trying to use some primitives from the p256 crate on an embedded target and would like to rely on the serde impls it provides, but sadly this transitively pulls in an alloc requirement that we cannot and do not want to satisfy.

Preliminary checks suggest that the problem is that p256/serde activates elliptic-curve/serde, which in turn unconditionally activates its alloc feature.

Is there a way to get rid of this requirement so that we can use the generated serde impls for Signature without being forced to draw in alloc?

Thanks,

Jona

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