Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sms-gateway
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Huss
sms-gateway
Commits
c6c992fe
Commit
c6c992fe
authored
2 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Update dependencies
parent
ce054ca5
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+43
-54
43 additions, 54 deletions
Cargo.lock
Cargo.toml
+1
-1
1 addition, 1 deletion
Cargo.toml
build_and_deploy.sh
+1
-1
1 addition, 1 deletion
build_and_deploy.sh
src/bin/sms-gateway.rs
+1
-2
1 addition, 2 deletions
src/bin/sms-gateway.rs
with
46 additions
and
58 deletions
Cargo.lock
+
43
−
54
View file @
c6c992fe
...
...
@@ -166,7 +166,7 @@ dependencies = [
"serde_urlencoded",
"smallvec",
"socket2",
"time 0.3.1
6
",
"time 0.3.1
7
",
"url",
]
...
...
@@ -318,18 +318,18 @@ checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
[[package]]
name = "bytestring"
version = "1.
1
.0"
version = "1.
2
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
86b6a75fd3048808ef06af5cd79712be8111960adaf89d90250974b38fc3928a
"
checksum = "
f7f83e57d9154148e355404702e2694463241880b939570d7c97c014da7a69a1
"
dependencies = [
"bytes",
]
[[package]]
name = "cc"
version = "1.0.7
3
"
version = "1.0.7
6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11
"
checksum = "
76a284da2e6fe2092f2353e51713435363112dfd60030e22add80be333fb928f
"
dependencies = [
"jobserver",
]
...
...
@@ -342,9 +342,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
version = "0.4.2
2
"
version = "0.4.2
3
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1
"
checksum = "
16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f
"
dependencies = [
"iana-time-zone",
"js-sys",
...
...
@@ -378,7 +378,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "344adc371239ef32293cb1c4fe519592fcf21206c79c02854320afcdf3ab4917"
dependencies = [
"percent-encoding",
"time 0.3.1
6
",
"time 0.3.1
7
",
"version_check",
]
...
...
@@ -428,9 +428,9 @@ dependencies = [
[[package]]
name = "cxx"
version = "1.0.8
0
"
version = "1.0.8
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
6b7d4e43b25d3c994662706a1d4fcfc32aaa6afd287502c111b237093bb23f3a
"
checksum = "
97abf9f0eca9e52b7f81b945524e76710e6cb2366aead23b7d4fbf72e281f888
"
dependencies = [
"cc",
"cxxbridge-flags",
...
...
@@ -440,9 +440,9 @@ dependencies = [
[[package]]
name = "cxx-build"
version = "1.0.8
0
"
version = "1.0.8
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
84f8829ddc213e2c1368e51a2564c552b65a8cb6a28f31e576270ac81d5e5827
"
checksum = "
7cc32cc5fea1d894b77d269ddb9f192110069a8a9c1f1d441195fba90553dea3
"
dependencies = [
"cc",
"codespan-reporting",
...
...
@@ -455,15 +455,15 @@ dependencies = [
[[package]]
name = "cxxbridge-flags"
version = "1.0.8
0
"
version = "1.0.8
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e72537424b474af1460806647c41d4b6d35d09ef7fe031c5c2fa5766047cc56a
"
checksum = "
8ca220e4794c934dc6b1207c3b42856ad4c302f2df1712e9f8d2eec5afaacf1f
"
[[package]]
name = "cxxbridge-macro"
version = "1.0.8
0
"
version = "1.0.8
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
309e4fb93eed90e1e14bea0da16b209f81813ba9fc7830c20ed151dd7bc0a4d7
"
checksum = "
b846f081361125bfc8dc9d3940c84e1fd83ba54bbca7b17cd29483c828be0704
"
dependencies = [
"proc-macro2",
"quote",
...
...
@@ -504,9 +504,9 @@ dependencies = [
[[package]]
name = "env_logger"
version = "0.9.
1
"
version = "0.9.
3
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272
"
checksum = "
a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7
"
dependencies = [
"atty",
"humantime",
...
...
@@ -709,9 +709,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "0.14.2
0
"
version = "0.14.2
3
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0
2c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafba
c"
checksum = "0
34711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3
c"
dependencies = [
"bytes",
"futures-channel",
...
...
@@ -746,9 +746,9 @@ dependencies = [
[[package]]
name = "iana-time-zone"
version = "0.1.5
2
"
version = "0.1.5
3
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
c422fb4f6e80490d0afcacf5c3de2c22ab8e631e0cd7cb2d4a3baf844720a52a
"
checksum = "
64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765
"
dependencies = [
"android_system_properties",
"core-foundation-sys",
...
...
@@ -799,9 +799,9 @@ dependencies = [
[[package]]
name = "ipnet"
version = "2.5.
0
"
version = "2.5.
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b
"
checksum = "
f88c5561171189e69df9d98bcf18fd5f9558300f7ea7b801eb8a0fd748bd8745
"
[[package]]
name = "itoa"
...
...
@@ -926,9 +926,9 @@ dependencies = [
[[package]]
name = "native-tls"
version = "0.2.1
0
"
version = "0.2.1
1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9
"
checksum = "
07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e
"
dependencies = [
"lazy_static",
"libc",
...
...
@@ -963,28 +963,19 @@ dependencies = [
[[package]]
name = "num_cpus"
version = "1.1
3.1
"
version = "1.1
4.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1
"
checksum = "
f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5
"
dependencies = [
"hermit-abi",
"libc",
]
[[package]]
name = "num_threads"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44"
dependencies = [
"libc",
]
[[package]]
name = "once_cell"
version = "1.1
5
.0"
version = "1.1
6
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1
"
checksum = "
86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860
"
[[package]]
name = "openssl"
...
...
@@ -1020,9 +1011,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-src"
version = "111.2
2
.0+1.1.1
q
"
version = "111.2
4
.0+1.1.1
s
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
8f31f0d509d1c1ae9cada2f9539ff8f37933831fd5098879e482aa687d659853
"
checksum = "
3498f259dab01178c6228c6b00dcef0ed2a2d5e20d648c017861227773ea4abd
"
dependencies = [
"cc",
]
...
...
@@ -1096,9 +1087,9 @@ checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
[[package]]
name = "ppv-lite86"
version = "0.2.1
6
"
version = "0.2.1
7
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872
"
checksum = "
5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de
"
[[package]]
name = "proc-macro2"
...
...
@@ -1159,9 +1150,9 @@ dependencies = [
[[package]]
name = "regex"
version = "1.
6
.0"
version = "1.
7
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b
"
checksum = "
e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a
"
dependencies = [
"aho-corasick",
"memchr",
...
...
@@ -1170,9 +1161,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
version = "0.6.2
7
"
version = "0.6.2
8
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244
"
checksum = "
456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848
"
[[package]]
name = "remove_dir_all"
...
...
@@ -1376,7 +1367,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
[[package]]
name = "sms-gateway"
version = "0.4.
1
"
version = "0.4.
2
"
dependencies = [
"actix-rt",
"actix-web",
...
...
@@ -1484,13 +1475,11 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.1
6
"
version = "0.3.1
7
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
0fab5c8b9980850e06d92ddbe3ab839c062c801f3927c0fb8abd6fc8e918fbca
"
checksum = "
a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376
"
dependencies = [
"itoa",
"libc",
"num_threads",
"serde",
"time-core",
"time-macros",
...
...
@@ -1504,9 +1493,9 @@ checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd"
[[package]]
name = "time-macros"
version = "0.2.
5
"
version = "0.2.
6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
65bb801831d812c562ae7d2bfb531f26e66e4e1f6b17307ba4149c
50
6
47
10e5b
"
checksum = "
d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e2
5047
7bc4ba16b2
"
dependencies = [
"time-core",
]
...
...
This diff is collapsed.
Click to expand it.
Cargo.toml
+
1
−
1
View file @
c6c992fe
...
...
@@ -2,7 +2,7 @@
name
=
"sms-gateway"
description
=
"A http frontend for SMS Server Tools 3"
authors
=
[
"David Huss <david.huss@hfbk-hamburg.de>"
]
version
=
"0.4.
1
"
version
=
"0.4.
2
"
edition
=
"2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
...
...
This diff is collapsed.
Click to expand it.
build_and_deploy.sh
+
1
−
1
View file @
c6c992fe
...
...
@@ -14,7 +14,7 @@ set -o nounset
set
-o
pipefail
# Details of the Remote Target machine
readonly
TARGET_HOST
=
root@
sms-gateway.fritz.box
readonly
TARGET_HOST
=
root@
10.20.13.204
readonly
TARGET_PORT
=
22
readonly
TARGET_PATH
=
/srv/sms-gateway/
...
...
This diff is collapsed.
Click to expand it.
src/bin/sms-gateway.rs
+
1
−
2
View file @
c6c992fe
...
...
@@ -69,13 +69,12 @@ async fn sms_send(info: Json<Sms>, data: Data<Mutex<History>>) -> Result<Json<Sm
let
path
=
sms
.send
()
?
;
let
sms_record
=
SmsRecord
{
sms
:
sms
.clone
(),
state
:
None
,
filename
:
path
.clone
()};
info!
(
"SMS record: {:#?}"
,
sms_record
);
// Unlock the history Mutex and store the number + timestamp
{
let
mut
history
=
data
.lock
()
.unwrap
();
history
.store
(
sms_record
);
info!
(
"SMS within the last minute: {}"
,
history
.sms_within_last_minute
());
info!
(
"
Sent
SMS within the last minute: {}"
,
history
.sms_within_last_minute
());
}
let
mut
counter
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment