1 use std::sync::Arc;
2
3 use starry_server::{
4 base::display::Display,
5 config::Config,
6 core::{starry_server, StarryServer, SCREEN_HEIGHT, SCREEN_WIDTH},
7 };
8
main()9 fn main() {
10 // TODO 考虑多个显示器
11 let mut displays: Vec<Display> = Vec::new();
12 displays.push(Display::new(
13 0,
14 0,
15 SCREEN_WIDTH as i32,
16 SCREEN_HEIGHT as i32,
17 ));
18
19 // TODO 暂时不考虑配置文件
20 let config: Arc<Config> = Arc::new(Config::default());
21
22 //开启Starry Server
23 StarryServer::new(config, displays);
24 let server = starry_server().unwrap();
25 server.run();
26 }
27