新增: MySQL/SSH 代理工具
- mysql-proxy: MySQL HTTP 代理,连接池复用 - ssh-proxy: SSH HTTP 代理,会话复用 - mysql-cli: 轻量级 MySQL CLI 工具 功能特性: - 延迟初始化,启动快 - CLI 和 HTTP API 双模式 - 请求日志支持 - 错误友好提示 - JSON 极简输出格式
This commit is contained in:
34
mysql-cli/Cargo.toml
Normal file
34
mysql-cli/Cargo.toml
Normal file
@@ -0,0 +1,34 @@
|
||||
[package]
|
||||
name = "mysql-cli"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "A lightweight MySQL command-line tool written in Rust"
|
||||
|
||||
[dependencies]
|
||||
# MySQL driver
|
||||
mysql = "25"
|
||||
|
||||
# Command line argument parsing
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
|
||||
# REPL with history and completion
|
||||
rustyline = { version = "14", features = ["derive"] }
|
||||
|
||||
# Serialization
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
||||
# CSV output
|
||||
csv = "1"
|
||||
|
||||
# Error handling
|
||||
anyhow = "1"
|
||||
thiserror = "1"
|
||||
|
||||
# Check if stdin is a tty
|
||||
atty = "0.2"
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
strip = true
|
||||
Reference in New Issue
Block a user