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
Generated
+57 -17
View File
@@ -1405,6 +1405,15 @@ dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs"
version = "7.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-sys"
version = "0.5.0"
@@ -3034,6 +3043,7 @@ dependencies = [
"ctr 0.9.2",
"dashmap",
"dav-server",
"dirs 7.0.0",
"ed25519-dalek 2.2.0",
"env_logger",
"filetime",
@@ -3052,7 +3062,6 @@ dependencies = [
"nix 0.29.0",
"once_cell",
"poly1305 0.8.0",
"postgres",
"pulldown-cmark",
"rand 0.8.6",
"rayon",
@@ -3072,10 +3081,10 @@ dependencies = [
"smb2",
"ssh-key",
"ssh2",
"sysinfo",
"tar",
"tempfile",
"tokio",
"tokio-postgres",
"tokio-util",
"toml",
"tower-http 0.5.2",
@@ -3134,7 +3143,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"dirs",
"dirs 6.0.0",
"filetree",
"rusqlite",
"serde",
@@ -3496,6 +3505,15 @@ dependencies = [
"time",
]
[[package]]
name = "ntapi"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae"
dependencies = [
"winapi",
]
[[package]]
name = "nu-ansi-term"
version = "0.50.3"
@@ -3712,6 +3730,27 @@ dependencies = [
"objc2-foundation",
]
[[package]]
name = "objc2-io-kit"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
dependencies = [
"libc",
"objc2-core-foundation",
]
[[package]]
name = "objc2-open-directory"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb82bed227edf5201dfedf072bba4015a33d3d4a98519837295a90f0a23f676d"
dependencies = [
"objc2",
"objc2-core-foundation",
"objc2-foundation",
]
[[package]]
name = "objc2-system-configuration"
version = "0.3.2"
@@ -4202,20 +4241,6 @@ dependencies = [
"portable-atomic",
]
[[package]]
name = "postgres"
version = "0.19.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ad20e0aa0b24f5a394eab4f78c781d248982b22b25cecc7e3aa46a681605bd"
dependencies = [
"bytes",
"fallible-iterator 0.2.0",
"futures-util",
"log",
"tokio",
"tokio-postgres",
]
[[package]]
name = "postgres-protocol"
version = "0.6.12"
@@ -5771,6 +5796,21 @@ dependencies = [
"syn 2.0.117",
]
[[package]]
name = "sysinfo"
version = "0.39.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6"
dependencies = [
"libc",
"memchr",
"ntapi",
"objc2-core-foundation",
"objc2-io-kit",
"objc2-open-directory",
"windows 0.62.2",
]
[[package]]
name = "system-configuration"
version = "0.7.0"