From 46a3d2ba70decd1931e13c190bfa49217e57718d Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Thu, 30 Apr 2026 10:10:46 +0200 Subject: Rewrite in async Rust --- Cargo.toml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Cargo.toml (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..8fb8dd9 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,56 @@ +[package] +# Crate temp-postgres on crates.io is a library of a different project. +name = "temp-postgres-command" +version = "0.4.0" +edition = "2024" +authors = ["Stefan Kreutz "] +description = "Run the PostgreSQL server off a temporary data directory" +readme = "README.md" +repository = "https://git.skreutz.com/temp-postgres.git" +license = "MIT OR Apache-2.0" +keywords = ["temporary", "postgresql", "database"] +categories = ["command-line-utilities", "database", "development-tools"] +publish = true + +[lints.rust] +unsafe_code = "forbid" +missing_docs = "warn" + +[dependencies] +anyhow = "1.0.102" +clap = { version = "4.6.1", features = [ + "derive", + "unstable-markdown", + "env", + "string", +] } +color-print = "0.3.7" +humantime = "2.3.0" +nix = { version = "0.31.2", features = ["signal"] } +tempfile = "3.27.0" +tokio = { version = "1.52.1", features = [ + "process", + "rt", + "macros", + "rt-multi-thread", + "signal", + "time", + "fs", +] } +tokio-util = "0.7.18" +tracing = "0.1.44" +tracing-subscriber = "0.3.23" +url = "2.5.8" + +[dev-dependencies] +assert_cmd = "2.2.1" +assert_fs = "1.1.3" +predicates = "3.1.4" +testresult = "0.4.1" + +[build-dependencies] +vergen-gitcl = "9.1.0" + +[[bin]] +name = "temp-postgres" +path = "src/main.rs" -- cgit v1.3