| 30 | } |
| 31 | |
| 32 | struct AppState { |
| 33 | #[allow(dead_code)] |
| 34 | project_dir: &'static str, |
| 35 | rx: tokio::sync::Mutex<Receiver<DevServerEvent>>, // this is the original subscribed receiver which hasn't missed a single event :) |
| 36 | tx: Sender<DevServerEvent>, |
| 37 | file_tx: Sender<String>, |
| 38 | db: Database, |
| 39 | dev: Mutex<CurrentDevState>, |
| 40 | } |
| 41 | |
| 42 | pub async fn start( |
| 43 | project_dir: &'static str, |
nothing calls this directly
no outgoing calls
no test coverage detected