#Errors while getting started

1 messages · Page 1 of 1 (latest)

elfin igloo
#

Hi, I'm new to Rust, but have been following getting started, but still getting issues while compiling.
I initiated the getting started project directly in docker container rust:1.73.0.
I'm sure i'm missing something, but not sure what, any help would be appreciated.
Errors:

....
error[E0463]: can't find crate for `http`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/header/map.rs:641:22
    |
641 |     fn from(mut map: http::HeaderMap) -> HeaderMap {
    |                      ^^^^ can't find crate

error[E0463]: can't find crate for `http`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/header/shared/content_encoding.rs:110:39
    |
110 |     fn try_into_value(self) -> Result<http::HeaderValue, Self::Error> {
    |                                       ^^^^ can't find crate

error[E0463]: can't find crate for `h2`
  --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/payload.rs:57:16
   |
57 | impl<S> From<::h2::RecvStream> for Payload<S> {
   |                ^^ can't find crate

error[E0463]: can't find crate for `h2`
  --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/payload.rs:58:23
   |
58 |     fn from(stream: ::h2::RecvStream) -> Self {
   |                       ^^ can't find crate

error[E0463]: can't find crate for `actix_rt`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/ws/dispatcher.rs:322:25
    |
322 |                         actix_rt::spawn(async move {
    |                         ^^^^^^^^ can't find crate

error[E0463]: can't find crate for `rand`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-3.4.0/src/ws/frame.rs:194:24
    |
194 |             let mask = rand::random::<[u8; 4]>();
    |                        ^^^^ can't find crate
...
#

I see cargo is downloading these dependencies, not sure why it's not able to find

elfin igloo
#

checked with other versions of rust docker image
1.67.0 and 1.70.0
Same issue

toxic summit
#

can you post your full dockerfile ?

#

certainly something weird is happening within docker, you will find this works fine outside of docker