ed25519-dalek
ed25519-dalek copied to clipboard
Serde no_std compatibility
This PR addresses issue #287. Tests pass with different combinations of features: "serde", "serde alloc", "serde std", "alloc".
Weird failure in the MSRV test. Wonder if it's a nightly bug in the unused import diagnostic.
@semenov-vladyslav maybe try pinning a slightly older nightly?
Looks like clippy failed on unused imports. Forgot to update cfg pragma to a few other imports. Essentially, "serde" feature requires one of "std" or "alloc". Fixed that, now it should work.
Looks like we didn't use thumbv7em-none-eabihf
in CI that tests the target with no std avail.
We should probably add that: https://github.com/dalek-cryptography/curve25519-dalek/blob/main/.github/workflows/rust.yml#L45-56
Adding a test here to CI: https://github.com/dalek-cryptography/ed25519-dalek/pull/289 - checking that this fails as expected.
Confirming no_std build works in main without serde: https://github.com/dalek-cryptography/ed25519-dalek/actions/runs/4394998670/jobs/7696444822
However with serde it fails as expected: https://github.com/dalek-cryptography/ed25519-dalek/actions/runs/4395018249/jobs/7696481185
Can we re-base this when the test PR in CI so we ensure in CI it's fixed.