Update lib and use rust edition 2021

This commit is contained in:
Rémi BERTHO 2022-03-02 00:09:19 +01:00
parent 7ac7b97341
commit 3ff8442c1a
Signed by: dalan
GPG key ID: EE3B917931C07B64
4 changed files with 1800 additions and 9 deletions

4
.gitignore vendored
View file

@ -4,10 +4,6 @@
debug/ debug/
target/ target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt # These are backup files generated by rustfmt
**/*.rs.bk **/*.rs.bk

1793
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
[package] [package]
name = "check_ip" name = "check_ip"
version = "2.1.0" version = "2.1.0"
edition = "2018" edition = "2021"
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"
@ -11,9 +11,9 @@ native-tls = "0.2"
toml = "0.5" toml = "0.5"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
log = "0.4" log = "0.4"
simplelog = "^0.10.0" simplelog = "0.11"
clokwerk = "0.3" clokwerk = "0.3"
trust-dns-resolver = {version = "0.20", features = ["serde-config"] } trust-dns-resolver = {version = "0.21", features = ["serde-config"] }
query_external_ip = "0.1" query_external_ip = "0.1"
tokio = "1" tokio = "1"
systemstat = "0.1" systemstat = "0.1"

View file

@ -1,4 +1,6 @@
# TODO # TODO
* [ ] Ajout de la version dans les logs
* [ ] Examples de fichiers de config (config + systemd) * [ ] Examples de fichiers de config (config + systemd)
* [ ] Rustfmt * [ ] Rustfmt
* [ ] Fonction check asychrone * [ ] Fonction check asychrone
* [ ] Utilisation de l[API Gandi](https://api.gandi.net/docs/livedns) via [restson](https://crates.io/crates/restson)