aboutsummaryrefslogtreecommitdiff
path: root/karld/src/interface/mod.rs
diff options
context:
space:
mode:
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
new file mode 100644
index 0000000..38c9895
--- /dev/null
+++ b/karld/src/interface/mod.rs
@@ -0,0 +1,10 @@
+use std::thread;
+mod unix;
+mod websocket;
+
+pub fn start() {
+ #[cfg(feature = "unix")]
+ thread::spawn(|| unix::run());
+ #[cfg(feature = "websocket")]
+ thread::spawn(|| websocket::run());
+}