From 2a30e50219273d43538820268e533b1dc7e177c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 12 Mar 2024 09:36:02 -0300 Subject: [PATCH] Cargo: Update to add new changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- Cargo.lock | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 6 ++++++ 2 files changed, 59 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index b50e904..a687077 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1886,6 +1886,7 @@ dependencies = [ "actix", "actix-web 3.3.3", "actix-web-actors", + "anyhow", "cached", "chrono", "futures", @@ -1900,8 +1901,12 @@ dependencies = [ "serde", "serde_json", "serialport", + "sinais", "structopt", + "strum 0.26.2", + "strum_macros 0.26.2", "sysinfo", + "tokio 1.36.0", "tracing", "tracing-actix-web", "tracing-appender", @@ -3279,6 +3284,31 @@ dependencies = [ "libc", ] +[[package]] +name = "sinais" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6d90556b534662fd02b3a10b5580795172ec0d9c015ae4c5add91e14f291972" +dependencies = [ + "lazy_static", + "sinais_macro", + "tokio 1.36.0", + "tracing", + "uuid", +] + +[[package]] +name = "sinais_macro" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e1e835b568af54d41ac2bd63934d15f338537d07e8455eaf93bc440866e52d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.52", + "tokio 1.36.0", +] + [[package]] name = "slab" version = "0.4.9" @@ -3415,6 +3445,15 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +[[package]] +name = "strum" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" +dependencies = [ + "strum_macros 0.26.2", +] + [[package]] name = "strum_macros" version = "0.22.0" @@ -3440,6 +3479,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "strum_macros" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.52", +] + [[package]] name = "syn" version = "1.0.109" @@ -4078,6 +4130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" dependencies = [ "getrandom 0.2.12", + "rand 0.8.5", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 0c85862..dee2dbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ edition = "2018" actix = "0.10" actix-web = "3.3" actix-web-actors = "3.0" +anyhow = "1.0.80" cached = "0.38.0" chrono = { version = "0.4", features = ["serde"] } futures = "0.3" @@ -15,6 +16,7 @@ lazy_static = "1.4" serde = "1.0" serde_json = "1.0" structopt = { version = "0.3", default-features = false } +tokio = "1" tracing = { version = "0.1.40", features = ["log", "async-await"] } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } tracing-log = "0.2.0" @@ -33,8 +35,12 @@ notify = { version = "4.0", optional = true } rmesg = { version = "1.0.14", features = ["extra-traits", "sync"] } rppal = { version = "0.13", optional = true } serialport = {version = "4.2.0", features = ["serde"]} +sinais = "0.1.0" sysinfo = "0.29.8" udev = "0.6" +strum = { version = "0.26", features = ["derive"] } +strum_macros = "0.26" + [build-dependencies] reqwest = {version = "0.11", features = ["blocking"]}