How to use key auth in rust if i am a complete beginner

how to use key auth in rust if i am a complete beginner

(I tried to do something through the example and also through the api)

I was referring to that library. GitHub - KeyAuth/KeyAuth-Rust-Example: KeyAuth Rust Example
I get an error thread 'main' panicked at C:\Users\ Pavel OPG.cargo\registry\src\index.crates.io-6f17d22bba15001f\keyauth-1.2.0\src\v1_2.rs:142:52:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "Cannot find the specified file." }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

(if run with cmd and if not run with cmd the application simply crashes)

There's no such thing in the standard library and you haven't shared what crates you're using, any code you've tried, and any errors you've received.

The chance that anyone can help you without that information is near zero.

No idea. Some further information might help people help you:

  1. What are you a complete beginner at? Programming or Rust or whatever "key auth" is in particular?

  2. Presumably you are trying to use some crate or other, which one?

  3. It helps to post whatever code you have created so far so that people can see what you have done and comment on it.

However when I type "Rust key auth" into google search the first hit is a nice looking example of using the keyauth crate: GitHub - KeyAuth/KeyAuth-Rust-Example: KeyAuth Rust Example

https://crates.io/crates/keyauth

I was referring to that library. GitHub - KeyAuth/KeyAuth-Rust-Example: KeyAuth Rust Example
I get an error thread 'main' panicked at C:\Users\ Pavel OPG.cargo\registry\src\index.crates.io-6f17d22bba15001f\keyauth-1.2.0\src\v1_2.rs:142:52:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "Cannot find the specified file." }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

(if run with cmd and if not run with cmd the application simply crashes)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.