summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/connector.rs3
-rw-r--r--src/client/connector/connectors/httpconnector.rs3
-rw-r--r--src/client/executor.rs4
-rw-r--r--src/client/todo.md3
-rw-r--r--src/lib.rs1
-rw-r--r--src/tasks.rs (renamed from src/client/executor/tasks.rs)0
6 files changed, 9 insertions, 5 deletions
diff --git a/src/client/connector.rs b/src/client/connector.rs
index 869703a..b111fc5 100644
--- a/src/client/connector.rs
+++ b/src/client/connector.rs
@@ -3,7 +3,8 @@ pub mod manager;
use std::{thread::sleep, time::Duration};
-use crate::executor::{Executor, tasks::IntoTask};
+use crate::executor::Executor;
+use remote_control_rs::tasks::IntoTask;
#[derive(Debug)]
pub enum Result<T: std::fmt::Display + IntoTask, E: std::fmt::Debug> {
diff --git a/src/client/connector/connectors/httpconnector.rs b/src/client/connector/connectors/httpconnector.rs
index 0dd198b..0b9d590 100644
--- a/src/client/connector/connectors/httpconnector.rs
+++ b/src/client/connector/connectors/httpconnector.rs
@@ -3,7 +3,8 @@ use reqwest::{
blocking::{Client, Response},
};
-use crate::{connector::*, executor::tasks::TASKS};
+use crate::connector::*;
+use remote_control_rs::tasks::TASKS;
use std::{thread::sleep, time::Duration};
pub struct HTTPConnector {
diff --git a/src/client/executor.rs b/src/client/executor.rs
index 8ef98b5..ad419f0 100644
--- a/src/client/executor.rs
+++ b/src/client/executor.rs
@@ -1,6 +1,4 @@
-use crate::executor::tasks::{IntoTask, IntoTaskErr, Task};
-
-pub mod tasks;
+use remote_control_rs::tasks::{IntoTask, IntoTaskErr, Task};
pub struct Executor {
task: &'static Task,
diff --git a/src/client/todo.md b/src/client/todo.md
new file mode 100644
index 0000000..11eecf5
--- /dev/null
+++ b/src/client/todo.md
@@ -0,0 +1,3 @@
+- [ ] multithreading(tokio)
+- [ ] http json option
+- [ ] collect basic stuff
diff --git a/src/lib.rs b/src/lib.rs
index e69de29..f053a00 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -0,0 +1 @@
+pub mod tasks;
diff --git a/src/client/executor/tasks.rs b/src/tasks.rs
index 3d9d940..3d9d940 100644
--- a/src/client/executor/tasks.rs
+++ b/src/tasks.rs