Skip to content

Ktra openid doesn't install via cargo #58

Description

@davidv1992

When installing Ktra 0.7.0 with openid-connect support via cargo install ktra --no-default-features --features=openid, compilation fails due to several missing crates:

error[E0432]: unresolved import `argon2`
 --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/db_manager/sled_db_manager.rs:6:14
  |
6 | use argon2::{self, hash_encoded, verify_encoded};
  |              ^^^^ no external crate `argon2`

error[E0433]: failed to resolve: use of undeclared crate or module `rand`
 --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/utils.rs:7:5
  |
7 | use rand::prelude::*;
  |     ^^^^ use of undeclared crate or module `rand`

error[E0433]: failed to resolve: use of undeclared crate or module `rand`
 --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/utils.rs:6:5
  |
6 | use rand::distributions::Alphanumeric;
  |     ^^^^ use of undeclared crate or module `rand`

error[E0432]: unresolved imports `argon2`, `rand::distributions::Alphanumeric`
 --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/db_manager/utils.rs:3:14
  |
3 | use argon2::{self, ThreadMode, Variant};
  |              ^^^^ no external crate `argon2`
  |
 ::: /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/utils.rs:6:5
  |
6 | use rand::distributions::Alphanumeric;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `argon2`
  --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/error.rs:41:12
   |
41 |     Argon2(argon2::Error),
   |            ^^^^^^ use of undeclared crate or module `argon2`

error[E0433]: failed to resolve: use of undeclared crate or module `rand`
  --> /home/david/.cargo/registry/src/github.com-1ecc6299db9ec823/ktra-0.7.0/src/utils.rs:31:9
   |
31 |         rand::thread_rng()
   |         ^^^^ use of undeclared crate or module `rand`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions