refactor: 调整模块位置

This commit is contained in:
Del Wang
2026-01-02 10:22:16 +08:00
parent 4d459afd28
commit ef28121f5d
15 changed files with 72 additions and 14 deletions
+6 -3
View File
@@ -2,10 +2,13 @@ use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
#[cfg(target_os = "linux")]
#[cfg(feature = "app")]
{
xiao::app::entry::run_xiao().await.unwrap();
xiao::app::client::entry::run_client().await?;
}
#[cfg(not(target_os = "linux"))]
{
eprintln!("Only support Linux");
}
println!("Only support Linux");
Ok(())
}
+10
View File
@@ -0,0 +1,10 @@
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
#[cfg(feature = "app")]
{
xiao::app::server::entry::run_server().await?;
}
Ok(())
}
+14
View File
@@ -0,0 +1,14 @@
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
#[cfg(feature = "app")]
{
xiao::app::stereo::entry::run_stereo().await?;
}
#[cfg(not(target_os = "linux"))]
{
eprintln!("Only support Linux");
}
Ok(())
}