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

Build error with no_std #17

Open
LPGhatguy opened this issue Sep 7, 2022 · 0 comments
Open

Build error with no_std #17

LPGhatguy opened this issue Sep 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LPGhatguy
Copy link
Contributor

cargo build --no-default-features results in a build error:

error[E0433]: failed to resolve: use of undeclared crate or module `std`
   --> src\lib.rs:254:34
    |
254 |             let key = match std::str::from_utf8(key) {
    |                                  ^^^ not found in `std`
    |
help: consider importing this builtin type
    |
32  | use core::primitive::str;
    |
help: if you import `str`, refer to it directly
    |
254 -             let key = match std::str::from_utf8(key) {
254 +             let key = match str::from_utf8(key) {

A workflow should be added to test no-std to catch regressions like this in the future.

@LPGhatguy LPGhatguy added the bug Something isn't working label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant