iotaledger / crypto.rs

The canonical source of cryptographic ground-truth for IOTA projects that use Rust.
https://iota.org
64 stars 22 forks source link

Allow `no_std` serde #188

Closed DaughterOfMars closed 1 year ago

DaughterOfMars commented 1 year ago

Description of change

The serde dependency used default features, which includes std, thus breaking no_std.

Additionally, the [dev-dependencies] also cause the build to fail on no_std targets. A new resolver is added to resolve this.

Type of change

Choose a type of change, and delete any options that are not relevant.

How the change has been tested

Build using

cargo build  --target riscv64gc-unknown-none-elf

with various feature combinations. Note that the random feature will not build on some targets, including the above.