Error during build process #58

Open
opened 2026-02-18 16:19:01 +00:00 by Harmen · 1 comment

I like to try this app. I followed the instruction to build the repository and I get this Error on Ubuntu24 with Rust installed: error: could not compile hero_books (lib) due to 13 previous errors. I checked Errors:

"""
An undeclared crate, module, or type was used.

Erroneous code example:

let map = HashMap::new();
// error: failed to resolve: use of undeclared type HashMap

Please verify you didn't misspell the type/module's name or that you didn't forget to import it:

use std::collections::HashMap; // HashMap has been imported.
let map: HashMap<u32, u32> = HashMap::new(); // So it can be used!

If you've expected to use a crate name:

use ferris_wheel::BigO;
// error: failed to resolve: use of undeclared module or unlinked crate

Make sure the crate has been added as a dependency in Cargo.toml.

To use a module from your current crate, add the crate:: prefix to the path.

""

I like to try this app. I followed the instruction to build the repository and I get this Error on Ubuntu24 with Rust installed: error: could not compile `hero_books` (lib) due to 13 previous errors. I checked Errors: """ An undeclared crate, module, or type was used. Erroneous code example: let map = HashMap::new(); // error: failed to resolve: use of undeclared type `HashMap` Please verify you didn't misspell the type/module's name or that you didn't forget to import it: use std::collections::HashMap; // HashMap has been imported. let map: HashMap<u32, u32> = HashMap::new(); // So it can be used! If you've expected to use a crate name: use ferris_wheel::BigO; // error: failed to resolve: use of undeclared module or unlinked crate Make sure the crate has been added as a dependency in Cargo.toml. To use a module from your current crate, add the crate:: prefix to the path. ""
Owner

Thanks for the issue.

This should be resolved on the development branch now — the latest code compiles cleanly with Rust 1.92+.
Can you pull the latest development and try again?

Also, make sure you have Rust 1.92 or newer (rustup update), then run make build.

Let us know how it goes.

Thanks for the issue. This should be resolved on the development branch now — the latest code compiles cleanly with Rust 1.92+. Can you pull the latest development and try again? Also, make sure you have Rust 1.92 or newer (rustup update), then run make build. Let us know how it goes.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#58
No description provided.