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

Can you clarify whether prost works with no_std? #942

Open
shutej opened this issue Nov 14, 2023 · 1 comment
Open

Can you clarify whether prost works with no_std? #942

shutej opened this issue Nov 14, 2023 · 1 comment

Comments

@shutej
Copy link

shutej commented Nov 14, 2023

I attempted to add the dependencies documented in README.md this morning:

https://github.com/tokio-rs/prost#using-prost-in-a-no_std-crate

...but got the following:

cargo build
   Compiling bytes v0.5.6
error[E0463]: can't find crate for `std`
  --> /Users/shutej/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytes-0.5.6/src/lib.rs:82:1
   |
82 | extern crate std;
   | ^^^^^^^^^^^^^^^^^ can't find crate
   |
   = note: the `thumbv7em-none-eabihf` target may not support the standard library

For more information about this error, try `rustc --explain E0463`.
error: could not compile `bytes` (lib) due to previous error
@shutej
Copy link
Author

shutej commented Nov 20, 2023

This is a problem with the version mentioned in the docs. Use cargo add prost instead, folks.

gibbz00 added a commit to gibbz00/prost that referenced this issue Apr 28, 2024
Changes version numbers to start imports rather than the latest,
reducing the need make sure that the documentation numbers are always up
to date.

One downside is that the users must set an explicit the version number
before publishing their own crates.
gibbz00 added a commit to gibbz00/prost that referenced this issue Apr 28, 2024
Changes version numbers to start imports rather than the latest,
reducing the need to make sure that the documentation numbers are always
up-to-date.

One downside is that the users must set an explicit the version number
before publishing their own crates.
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