error[E0432]: unresolved import `clap::Clap`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:2:5
|
2 | use clap::Clap;
| ^^^^^^^^^^ no `Clap` in the root
error[E0432]: unresolved import `clap::Clap`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/main.rs:13:5
|
13 | use clap::Clap;
| ^^^^^^^^^^ no `Clap` in the root
error: cannot determine resolution for the derive macro `Clap`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:28:10
|
28 | #[derive(Clap, Debug, Clone)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:29:3
|
29 | #[clap(
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:38:7
|
38 | #[clap(short, long, default_value = "0.0.0.0:8080")]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:42:7
|
42 | #[clap(short = 'k', long)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:46:7
|
46 | #[clap(short, long)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:50:7
|
50 | #[clap(short, long)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:54:7
|
54 | #[clap()]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:58:7
|
58 | #[clap(long = "upstream-header", parse(try_from_str = parse_header))]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:62:7
|
62 | #[clap(long = "response-header", parse(try_from_str = parse_header))]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:66:7
|
66 | #[clap(long, default_value = "5")]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:70:7
|
70 | #[clap(long = "cert", requires = "tls-key")]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:74:7
|
74 | #[clap(long = "key", requires = "tls-cert")]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error[E0599]: no function or associated item named `parse` found for struct `ProxyboiConfig` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/main.rs:46:34
|
46 | let config = ProxyboiConfig::parse();
| ^^^^^ function or associated item not found in `ProxyboiConfig`
|
::: .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/config.rs:36:1
|
36 | pub struct ProxyboiConfig {
| ------------------------- function or associated item `parse` not found for this
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `parse`, perhaps you need to implement one of them:
candidate #1: `actix_web::http::header::Header`
candidate #2: `time::private::Parsable`
candidate #3: `Parser`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/main.rs:90:18
|
90 | if let (Some(tls_cert), Some(tls_key)) = (config_.tls_cert, config_.tls_key) {
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
= note: required because it appears within the type `std::path::Path`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> .cargo/registry/src/github.com-1ecc6299db9ec823/proxyboi-0.5.0/src/main.rs:90:34
|
90 | if let (Some(tls_cert), Some(tls_key)) = (config_.tls_cert, config_.tls_key) {
| ^^^^^^^ doesn't have a size known at compile-time
|
= help: within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
= note: required because it appears within the type `std::path::Path`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
Some errors have detailed explanations: E0277, E0432, E0599.