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

error[E0432]: unresolved import uuid --> testuuid.rs:1:5 | 1 | use uuid::Uuid; | ^^^^ maybe a missing crate uuid? | = help: consider adding extern crate uuid to use the uuid crate #647

Closed
harryheng opened this issue Dec 17, 2022 · 1 comment

Comments

@harryheng
Copy link

error[E0463]: can't find crate for uuid
--> testuuid.rs:1:1
|
1 | extern crate uuid;
| ^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.

@KodrAus
Copy link
Member

KodrAus commented Feb 1, 2023

Hi @harryheng 👋

Without more context it looks like you're trying to depend on uuid, but hadn't specified it in your Cargo.toml? If you're new to Rust, you can see the docs on specifying dependencies. For this library, if you add the following to your Cargo.toml you should be set to use uuid:

[dependencies]
uuid = { version = "1", features = ["v4"] }

@KodrAus KodrAus closed this as completed Feb 1, 2023
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

2 participants