Closed
Description
Problem
$ cargo build
Compiling package3 v0.1.0 (\root\package3)
error[E0432]: unresolved import `ignore`
--> package3\src\tree.rs:4:5
|
4 | use ignore::{DirEntry, Error, Walk, WalkBuilder};
| ^^^^^^ maybe a missing crate `ignore`?
|
= help: consider adding `extern crate ignore` to use the `ignore` crate
error[E0432]: unresolved import `serde`
Steps
# /root/Cargo.toml
[workspace]
resolver = "2"
members = [
"package1", "package2", "package3",
]
# /root/package3
[package]
name = "package3"
version = "0.1.0"
[dependencies]
ignore = "0.4.22"
serde = { version = "1.0.203", features = ["derive"] }
Working Solution(s)
Add edition = "2021"
# /root/package3
[package]
name = "package3"
version = "0.1.0"
edition = "2021"
Notes
Better information would be helpful.
Version
cargo 1.79.0 (ffa9cf99a 2024-06-03)