Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples Not Working? #60

Open
JewishLewish opened this issue Jun 11, 2024 · 0 comments
Open

Examples Not Working? #60

JewishLewish opened this issue Jun 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JewishLewish
Copy link

I wanted to look at the examples however when I cargo add the library (and x25519_dalek); I get the following errors:

error[E0433]: failed to resolve: use of undeclared crate or module `log`
  --> src\main.rs:27:5
   |
27 |     log::info!("endpoint");
   |     ^^^ use of undeclared crate or module `log`

error[E0599]: no function or associated item named `random` found for struct `EphemeralSecret` in the current scope
  --> src\main.rs:21:35
   |
21 |     let secret = EphemeralSecret::random();
   |                                   ^^^^^^ function or associated item not found in `EphemeralSecret`
   |
note: if you're trying to build a new `EphemeralSecret` consider using one of the following associated functions:
      EphemeralSecret::new
      EphemeralSecret::random_from_rng
  --> C:\Users\Lennard\.cargo\registry\src\index.crates.io-6f17d22bba15001f\x25519-dalek-2.0.1\src\x25519.rs:89:5
   |
89 |     pub fn new<T: RngCore + CryptoRng>(mut csprng: T) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
94 |     pub fn random_from_rng<T: RngCore + CryptoRng>(mut csprng: T) -> Self {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Even if I were to change the "randm" to "new"/"random_from_rng", it asks for an arguement that is RngCore + CryptoRng

@teon teon moved this to Refined & Ready in Backlog & Roadmap Jun 18, 2024
@teon teon added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Refined & Ready
Development

No branches or pull requests

3 participants