Fix compilation errors after PostgreSQL removal
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

Changes:
- Remove pg_conn field from SshServerConfig struct
- Remove pg_conn parameter from run_ssh_server function
- Remove pg_conn CLI argument from ssh-start command
- Remove non-existent user management API routes
- Add missing dependencies: sysinfo, dirs
- Fix CLI web.rs to pass home directory to server::run
- Fix SSH server stream type (tokio -> std TcpStream)

All compilation errors resolved.
This commit is contained in:
Warren
2026-10-24 20:12:23 +08:00
parent 0802a47a5f
commit 45ae7099d2
7 changed files with 77 additions and 53 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
use clap::Subcommand;
use std::path::PathBuf;
#[derive(Subcommand)]
pub enum WebCommand {
@@ -14,7 +15,9 @@ pub enum WebCommand {
pub async fn handle_web_command(cmd: WebCommand) -> anyhow::Result<()> {
match cmd {
WebCommand::Start { port, file } => {
crate::server::run(port, file).await?;
let home = dirs::home_dir()
.ok_or_else(|| anyhow::anyhow!("Cannot determine home directory"))?;
crate::server::run(port, file, home).await?;
}
}
Ok(())