aboutsummaryrefslogtreecommitdiff
path: root/karld/src/interface/mod.rs
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-08-17 22:04:32 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-08-17 22:04:32 +0200
commit4cad1fc66422f84ade7ee29f86f5a43738c065f4 (patch)
tree815e44d69cc34d42669c866d043f7d09d3172290 /karld/src/interface/mod.rs
parente87219d47764f82d073f464a23aa18a6f7d0c9d3 (diff)
downloadkarlender-4cad1fc66422f84ade7ee29f86f5a43738c065f4.tar
karlender-4cad1fc66422f84ade7ee29f86f5a43738c065f4.tar.bz2
karlender-4cad1fc66422f84ade7ee29f86f5a43738c065f4.tar.zst
add more interfaces
Diffstat (limited to 'karld/src/interface/mod.rs')
-rw-r--r--karld/src/interface/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/karld/src/interface/mod.rs b/karld/src/interface/mod.rs
index 6122a8c..597524a 100644
--- a/karld/src/interface/mod.rs
+++ b/karld/src/interface/mod.rs
@@ -2,12 +2,22 @@
mod unix;
#[cfg(feature = "websocket")]
mod websocket;
+#[cfg(feature = "stdio")]
+mod stdio;
+#[cfg(feature = "tcp")]
+mod tcp;
+
+pub mod generic;
pub fn start() {
#[cfg(feature = "unix")]
std::thread::spawn(|| unix::run());
#[cfg(feature = "websocket")]
std::thread::spawn(|| websocket::run());
+ #[cfg(feature = "stdio")]
+ std::thread::spawn(|| stdio::run());
+ #[cfg(feature = "tcp")]
+ std::thread::spawn(|| tcp::run());
#[cfg(not(feature = "websocket"))]
#[cfg(not(feature = "unix"))]