Skip to content

Conversation

@daviddrysdale
Copy link
Collaborator

Fixes #7

@daviddrysdale daviddrysdale force-pushed the no-std branch 7 times, most recently from 7db1bf3 to 2eb5c31 Compare July 19, 2021 12:41
@daviddrysdale
Copy link
Collaborator Author

daviddrysdale commented Jul 19, 2021

This currently still pulls in std because:

The "json" feature requires the base64 and serde dependencies to have
their "alloc" feature enabled.
Requires use of `rand::OsRng` (and with it the `getrandom` feature of
the `rand` crate) rather than `rand::thread_rng()`.
This means that there are no details in errors, so remove the test for
specific error text.
Move to use the same features of dependencies as the crates under test.
This requires a shift from rand::thread_rng() to rand::rngs::OsRng.

This crate still uses `std` though.
This commit cannot be included in a release, because it makes the codebase
rely on an unreleased crate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support no_std in (most) crates

1 participant