This commit is contained in:
Oystein Kristoffer Tveit 2024-04-26 00:31:23 +02:00
parent 3deeeb45c2
commit 9c5a9da3bb
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 36 additions and 5 deletions

View File

@ -2,6 +2,17 @@
name = "mysqladm-rs" name = "mysqladm-rs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# TODO: change licensing?
license = "GPL-2.0-only"
authors = ["oysteikt@pvv.ntnu.no"]
repository = "https://git.pvv.ntnu.no/Projects/mysqladm-rs"
# TODO: write a proper description
description = """\
asdf
"""
categories = ["command-line-interface", "command-line-utilities"]
keywords = ["mysql", "cli", "administration"]
readme = "README.md"
[dependencies] [dependencies]
anyhow = "1.0.82" anyhow = "1.0.82"
@ -17,7 +28,11 @@ ratatui = { version = "0.26.2", optional = true }
rpassword = "7.3.1" rpassword = "7.3.1"
serde = "1.0.198" serde = "1.0.198"
serde_json = "1.0.116" serde_json = "1.0.116"
sqlx = { version = "0.7.4", features = ["runtime-tokio", "mysql", "tls-rustls"] } sqlx = { version = "0.7.4", features = [
"runtime-tokio",
"mysql",
"tls-rustls",
] }
tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] } tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] }
toml = "0.8.12" toml = "0.8.12"
@ -33,3 +48,21 @@ path = "src/main.rs"
strip = true strip = true
lto = true lto = true
codegen-units = 1 codegen-units = 1
# TODO: package shell completions
[package.metadata.deb]
maintainer = "Programvareverkstedet <projects@pvv.ntnu.no>"
section = "admin"
assets = [
[
"target/release/mysqladm",
"usr/bin/",
"4755",
],
[
"example-config.toml",
"etc/mysqladm/config.toml",
"644",
],
]
conf-files = ["etc/mysqladm/config.toml"]

View File

@ -1,7 +1,5 @@
# This should go to `/etc/mysqladm/config.toml`
[mysql] [mysql]
host = "localhost" host = "localhost"
posrt = 3306 posrt = 3306
username = "root" username = "mysql"
password = "secret" password = ""