From 4cad1fc66422f84ade7ee29f86f5a43738c065f4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 17 Aug 2022 22:04:32 +0200 Subject: add more interfaces --- karld/src/interface/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'karld/src/interface/mod.rs') 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"))] -- cgit v1.2.3-70-g09d2