servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.27k stars 317 forks source link

Error: 🚫 Building project failed: error[E0583]: file not found for module `origin`serde, interproc... #910

Open Satheeshsk369 opened 4 months ago

Satheeshsk369 commented 4 months ago
Compiling url v2.5.0
Error: 🚫 Building project failed: error[E0583]: file not found for module `origin`serde, interproc...
   --> /home/satheeshkumar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.0/src/lib.rs:172:1
    |
172 | mod origin;
    | ^^^^^^^^^^^
    |
    = help: to create the module `origin`, create file "/home/satheeshkumar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.0/src/origin.rs" or "/home/satheeshkumar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.0/src/origin/mod.rs"
    = note: if there is a `mod origin` elsewhere in the crate already, import it with `use crate::...` instead

When ever i'm running the rust project which depends the url crate i'm getting this error. what i need to do to solve this.

valenting commented 4 months ago

Not sure what to tell you. https://github.com/servo/rust-url/blob/master/url/src/origin.rs the file exists. Could you do a cargo update and try again?

Satheeshsk369 commented 4 months ago

Not sure what to tell you. https://github.com/servo/rust-url/blob/master/url/src/origin.rs the file exists. Could you do a cargo update and try again?

I tried, but still got the same error