Skip to content

cargo build fails in dependency blazehash v0.2.4 #1

@eMPee584

Description

@eMPee584

Would love to try this but new to rust and cargo build -r fails for me:

   Compiling blazehash v0.2.4
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `toml`
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/blazehash-0.2.4/src/config.rs:47:9
   |
47 |         toml::from_str(&content).unwrap_or_default()
   |         ^^^^ use of unresolved module or unlinked crate `toml`
   |
   = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml`

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `toml`
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/blazehash-0.2.4/src/config.rs:60:23
   |
60 |         let content = toml::to_string(self)?;
   |                       ^^^^ use of unresolved module or unlinked crate `toml`
   |
   = help: if you wanted to use a crate named `toml`, use `cargo add toml` to add it to your `Cargo.toml`

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dirs`
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/blazehash-0.2.4/src/config.rs:83:24
   |
83 |     if let Some(cfg) = dirs::config_dir() {
   |                        ^^^^ use of unresolved module or unlinked crate `dirs`
   |
   = help: if you wanted to use a crate named `dirs`, use `cargo add dirs` to add it to your `Cargo.toml`

error[E0282]: type annotations needed
  --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/blazehash-0.2.4/src/config.rs:84:9
   |
84 |         cfg.join("blazehash")
   |         ^^^ cannot infer type

Some errors have detailed explanations: E0282, E0433.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `blazehash` (lib) due to 4 previous errors

I tried adding toml and dirs in that registry sub-folder but that changed nothing..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions