~/Code/codectrl main ✔ 1d19h
▶ cargo build --target wasm32-unknown-unknown
Compiling codectrl_gui v0.5.0-nightly (/var/home/sboyden/Code/codectrl/codectrl-gui)
error[E0432]: unresolved import `poll_promise`
--> codectrl-gui/src/login.rs:9:5
|
9 | use poll_promise::Promise;
| ^^^^^^^^^^^^ use of undeclared crate or module `poll_promise`
error[E0412]: cannot find type `Arc` in this scope
--> codectrl-gui/src/login.rs:20:18
|
20 | wrapper_msg: Arc<RefCell<WrapperMsg>>,
| ^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use std::sync::Arc;
|
1 | use tonic::codegen::Arc;
|
error[E0412]: cannot find type `RefCell` in this scope
--> codectrl-gui/src/login.rs:20:22
|
20 | wrapper_msg: Arc<RefCell<WrapperMsg>>,
| ^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::cell::RefCell;
|
1 | use std::cell::RefCell;
|
error[E0412]: cannot find type `Arc` in this scope
--> codectrl-gui/src/login.rs:24:20
|
24 | handle: Option<Arc<Handle>>,
| ^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use std::sync::Arc;
|
1 | use tonic::codegen::Arc;
|
error[E0412]: cannot find type `Handle` in this scope
--> codectrl-gui/src/login.rs:24:24
|
18 | pub struct Login {
| - help: you might be missing a type parameter: `<Handle>`
...
24 | handle: Option<Arc<Handle>>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Channel` in this scope
--> codectrl-gui/src/login.rs:25:56
|
18 | pub struct Login {
| - help: you might be missing a type parameter: `<Channel>`
...
25 | connection_promise: Option<Promise<LogServerClient<Channel>>>,
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `Arc` in this scope
--> codectrl-gui/src/login.rs:32:22
|
32 | wrapper_msg: Arc<RefCell<WrapperMsg>>,
| ^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use std::sync::Arc;
|
1 | use tonic::codegen::Arc;
|
error[E0412]: cannot find type `RefCell` in this scope
--> codectrl-gui/src/login.rs:32:26
|
32 | wrapper_msg: Arc<RefCell<WrapperMsg>>,
| ^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::cell::RefCell;
|
1 | use std::cell::RefCell;
|
error[E0412]: cannot find type `Arc` in this scope
--> codectrl-gui/src/login.rs:33:17
|
33 | handle: Arc<Handle>,
| ^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use std::sync::Arc;
|
1 | use tonic::codegen::Arc;
|
error[E0412]: cannot find type `Handle` in this scope
--> codectrl-gui/src/login.rs:33:21
|
29 | impl Login {
| - help: you might be missing a type parameter: `<Handle>`
...
33 | handle: Arc<Handle>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `GrpcClient` in this scope
--> codectrl-gui/src/wrapper.rs:26:22
|
26 | grpc_client: GrpcClient,
| ^^^^^^^^^^ not found in this scope
|
note: type alias `crate::app::GrpcClient` exists but is inaccessible
--> codectrl-gui/src/app.rs:80:1
|
80 | type GrpcClient = Client<WasmClient>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
error[E0412]: cannot find type `Handle` in this scope
--> codectrl-gui/src/wrapper.rs:49:17
|
45 | pub struct Wrapper<'a> {
| - help: you might be missing a type parameter: `, Handle`
...
49 | handle: Arc<Handle>,
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `Handle` in this scope
--> codectrl-gui/src/wrapper.rs:54:24
|
54 | pub fn new(handle: Handle, file_path: PathBuf) -> Self {
| ^^^^^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared type `Login`
--> codectrl-gui/src/wrapper.rs:83:34
|
83 | Box::new(Login::new(
| ^^^^^ not found in this scope
|
help: consider importing this struct
|
3 | use crate::login::Login;
|
error[E0433]: failed to resolve: use of undeclared type `App`
--> codectrl-gui/src/wrapper.rs:133:34
|
133 | Box::new(App::new(
| ^^^ not found in this scope
|
help: consider importing one of these items
|
3 | use clap::App;
|
3 | use crate::app::App;
|
3 | use eframe::App;
|
error[E0433]: failed to resolve: use of undeclared type `LogServerClient`
--> codectrl-gui/src/lib.rs:42:23
|
42 | let grpc_client = LogServerClient::new(Client::new(format!("http://{host}:{port}")));
| ^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this struct
|
26 | use codectrl_protobuf_bindings::logs_service::log_server_client::LogServerClient;
|
error[E0433]: failed to resolve: use of undeclared type `App`
--> codectrl-gui/src/lib.rs:46:37
|
46 | Box::new(move |cc| Box::new(App::new(cc, grpc_client, host, port))),
| ^^^ not found in this scope
|
help: consider importing one of these items
|
26 | use clap::App;
|
26 | use crate::app::App;
|
26 | use eframe::App;
|
warning: unused imports: `Connection`, `log_server_client::LogServerClient as Client`
--> codectrl-gui/src/wrapper.rs:4:5
|
4 | log_server_client::LogServerClient as Client, Connection,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `wrapper::Wrapper`
--> codectrl-gui/src/lib.rs:35:5
|
35 | use wrapper::Wrapper;
| ^^^^^^^^^^^^^^^^
error[E0063]: missing field `wrapper_msg` in initializer of `app::App`
--> codectrl-gui/src/app.rs:239:23
|
239 | let mut app = Self {
| ^^^^ missing `wrapper_msg`
error[E0283]: type annotations needed
--> codectrl-gui/src/login.rs:20:5
|
17 | #[derive(Default)]
| ------- in this derive macro expansion
...
20 | wrapper_msg: Arc<RefCell<WrapperMsg>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: std::default::Default`
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0559]: variant `WrapperMsg::Main` has no field named `grpc_client_connection`
--> codectrl-gui/src/login.rs:165:45
|
165 | ... grpc_client_connection: registered_client
| ^^^^^^^^^^^^^^^^^^^^^^ `WrapperMsg::Main` does not have this field
|
= note: available fields are: `grpc_client`, `server_host`, `server_port`
Some errors have detailed explanations: E0063, E0283, E0412, E0432, E0433, E0559.
For more information about an error, try `rustc --explain E0063`.
warning: `codectrl_gui` (lib) generated 2 warnings
error: could not compile `codectrl_gui` due to 20 previous errors; 2 warnings emitted
Should be easy to fix, just need to get around to doing it.
Should be easy to fix, just need to get around to doing it.