aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml23
1 files changed, 22 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 91f6d15..b7cd5bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,10 @@
[package]
name = "hoardom"
-version = "1.0.4"
+version = "1.1.2"
edition = "2021"
description = "Domain hoarding made less painful"
+default-run = "hoardom"
+
[features]
default = ["builtin-whois"]
@@ -17,6 +19,11 @@ system-whois = []
# Cannot be used together with system-whois
builtin-whois = []
+# native gui wrapper binary (hoardom-app)
+# spawns hoardom --tui in a pty and renders it in its own window
+# so it shows up as its own app with its own dock icon
+gui = ["dep:eframe", "dep:portable-pty", "dep:vte"]
+
# Configurable values baked into the binary at compile time via build.rs
[package.metadata.hoardom]
whois-command = "whois"
@@ -37,3 +44,17 @@ crossterm = "0.28"
indicatif = "0.17"
chrono = "0.4"
futures = "0.3"
+
+# gui wrapper deps (only built with --features gui)
+eframe = { version = "0.30", optional = true }
+portable-pty = { version = "0.8", optional = true }
+vte = { version = "0.14", optional = true }
+
+[[bin]]
+name = "hoardom"
+path = "src/main.rs"
+
+[[bin]]
+name = "hoardom-app"
+path = "src/app.rs"
+required-features = ["gui"]