- 密钥凭据的私钥分「本机文件 / 粘贴 / 生成新密钥」三种来源,仍是一个对话框; 生成支持 Ed25519 与 RSA 4096,可用口令加密,对话框里显示并可复制公钥 - 粘贴和生成的私钥写成数据目录 keys/ 下的 0600 文件,凭据引用其路径; 再次粘贴或生成时原地覆盖,换掉或删除凭据时随之删除,用户自己的私钥文件从不改动 - 空列表和空白处右键新增「生成密钥…」,密钥凭据右键新增「复制公钥」 - 窗口状态栏右侧由写死的光标位置改为当前终端的尺寸(列×行), SFTP 标签、开始页和设置页不显示 - UI 测试的基础夹具关闭动画,修正对话框滑入导致的偶发失败
88 lines
2.4 KiB
TOML
88 lines
2.4 KiB
TOML
[package]
|
|
name = "shellrs"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
publish = false
|
|
description = "SSH session manager with local terminal support"
|
|
default-run = "shellrs"
|
|
|
|
# The app. On macOS and Linux it doubles as the `shellrs` command when
|
|
# started with arguments.
|
|
[[bin]]
|
|
name = "shellrs"
|
|
path = "src/main.rs"
|
|
|
|
# The `shellrs` command on its own, as a console program: Windows needs it,
|
|
# because the app is a GUI program there and has no console to print to.
|
|
[[bin]]
|
|
name = "shellrs-cli"
|
|
path = "src/bin/shellrs-cli.rs"
|
|
|
|
[dependencies]
|
|
gpui-kit = "0.6.1"
|
|
alacritty_terminal = "0.26"
|
|
anyhow = "1"
|
|
async-channel = "2"
|
|
clap = { version = "4", features = ["derive"] }
|
|
dirs = "6"
|
|
futures = "0.3"
|
|
portable-pty = "0.9"
|
|
rand = "0.9"
|
|
russh = "0.63"
|
|
russh-sftp = "=3.0.0"
|
|
serde_json = "1"
|
|
sys-locale = "0.3"
|
|
sha2 = "0.10"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = "0.4"
|
|
rusqlite = { version = "0.40", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt", "sync", "time"] }
|
|
unicode-width = "0.2"
|
|
zeroize = "1"
|
|
keyring = "4"
|
|
trash = "5"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-registry = "0.6"
|
|
windows-sys = { version = "0.61", features = [
|
|
"Win32_Security",
|
|
"Win32_Security_Authorization",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_IO",
|
|
"Win32_System_Pipes",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["process", "test-util"] }
|
|
gpui-kit = { version = "0.6.1", features = ["test-support"] }
|
|
tempfile = "3"
|
|
|
|
# Optimize the rendering stack in debug builds (per gpui-kit's installation
|
|
# guide); shellrs itself stays unoptimized and debuggable.
|
|
[profile.dev.package]
|
|
gpui-pre = { opt-level = 3 }
|
|
gpui-pre-platform = { opt-level = 3 }
|
|
gpui-pre-macos = { opt-level = 3 }
|
|
gpui-base = { opt-level = 3 }
|
|
gpui-component = { opt-level = 3 }
|
|
gpui-kit = { opt-level = 3 }
|
|
gpui-kit-assets = { opt-level = 3 }
|
|
cosmic-text = { opt-level = 3 }
|
|
rustybuzz = { opt-level = 3 }
|
|
swash = { opt-level = 3 }
|
|
taffy = { opt-level = 3 }
|
|
ttf-parser = { opt-level = 3 }
|
|
resvg = { opt-level = 3 }
|
|
usvg = { opt-level = 3 }
|
|
zed-font-kit = { opt-level = 3 }
|
|
# Generating an RSA key and deriving a key from a passphrase take seconds
|
|
# unoptimized; the credential form does both.
|
|
rsa = { opt-level = 3 }
|
|
crypto-bigint = { opt-level = 3 }
|
|
crypto-primes = { opt-level = 3 }
|
|
bcrypt-pbkdf = { opt-level = 3 }
|
|
blowfish = { opt-level = 3 }
|