# Rust: error[E0432]: unresolved import `crate::utils` — maybe a missing crate `utils`?

**Code:** `E0432: unresolved import` · **Category:** Rust · **Seen on:** Rust

A `use` path doesn't point to an existing module, crate or item.

## Meaning

Declare the module (`mod utils;` in `main.rs`/`lib.rs`), check file paths (`utils.rs` or `utils/mod.rs`), add the dependency in `Cargo.toml` (and use the crate name with `_` for `-`), make items `pub`, and use `crate::`/`self::`/`super::` correctly. 2018+ edition: paths start with crate names or `crate`.

## Common causes

- Missing `mod x;` declaration
- Dependency not in Cargo.toml (or wrong name)
- Item not `pub` or wrong path
- File named differently
- Edition path differences

## Quick fix

1. Add `mod utils;` in the crate root
2. `cargo add crate_name`
3. Make the item `pub` and fix the path

## Detailed fix by platform

### Rust

1. `cargo add serde --features derive && cargo check`

## How to diagnose

1. **Module** — Declared?
2. **Crate** — In Cargo.toml?
3. **Visibility** — pub?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/rust/e0432-unresolved-import)
