aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-19 18:48:12 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-19 19:01:01 -0800
commitd78070d130c32227a2788591d3efd321da702658 (patch)
tree55e34a15a8ff3b53714c55974bd738e48a5bbcb9 /Cargo.toml
parentmeta: ignore artifact created by `nix build` (diff)
downloadsendsms-d78070d130c32227a2788591d3efd321da702658.tar.gz
feat: a CLI to send sms via twilio's API
I want to get an SMS when some of my machines are rebooted. This tool let me do just that. The CLI takes as argument the path to a configuration file that contains credentials to the API. It also has a number of sub commands, and each sub command is associated with a specific action. For each action, a section in the configuration file is expected. The two actions currently supported are: - `reboot` - `hello` `hello` is a simple one used for testing, it sends "hello world". `reboot` is used to create a message that contains the host's name and the IP address of the network interface specified in the configuration file.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6f3365d..2e25d37 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,4 +5,15 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[dev-dependencies]
+httpmock = "0.6"
+
[dependencies]
+clap = {version = "3.2.17", features = ["derive", "cargo"]}
+gethostname = "0.2.3"
+http = "0.2.8"
+if-addrs = "0.7.0"
+reqwest = {version = "0.11.11", features = ["blocking", "json"] }
+serde = { version = "1.0.144", features = ["derive"] }
+serde_json = "1.0.85"
+toml = "0.5.9"