Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use alloc instead of std #55

Open
benma opened this issue Oct 25, 2023 · 0 comments
Open

Use alloc instead of std #55

benma opened this issue Oct 25, 2023 · 0 comments

Comments

@benma
Copy link
Contributor

benma commented Oct 25, 2023

For example in

rust-bip39/src/lib.rs

Lines 603 to 605 in a7649ae

/// Convert the mnemonic back to the entropy used to generate it.
#[cfg(feature = "std")]
pub fn to_entropy(&self) -> Vec<u8> {

It would be helpful to be able to access this function (and others that return a Vec) with no_std, if one has access to alloc (alloc::vec::Vec)

A new feature alloc could be added and used instead of std for Vec.

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

No branches or pull requests

1 participant