summaryrefslogtreecommitdiffstats
path: root/crates
AgeCommit message (Collapse)Author
2022-08-18Fix clippy: Remove unneccessary lazy evalMatthias Beyer
This patch fixes clippy::unnecessary_lazy_evaluations Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Merge pull request #1349 from matthiasbeyer/clippy-fixesDidier Wenzek
Clippy fixes
2022-08-18Merge pull request #1279 from matthiasbeyer/remove-let-unitDidier Wenzek
Clippy: Remove let unit
2022-08-18Merge pull request #1338 from ↵initard
initard/feature/1070/tedge-agent-log-directory-path-configurable make log directory configurable during init
2022-08-18Fix clippy: logged_command: Do not use format!() to append to StringMatthias Beyer
This fixes clippy::format_push_string. The error returned from write!() is ignored in this case. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tests: Do not use format!() to append to StringMatthias Beyer
This fixes clippy::format_push_string. The error returned from write!() is ignored in this case. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: Remove unnecessary .to_string()Matthias Beyer
This fixes clippy::unnecessary_to_owned Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: thin_edge_json: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge_mapper: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge_agent: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: tedge: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_translator: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_smartrest: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: c8y_api: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: agent_interface: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: download: Add derive for EqMatthias Beyer
This fixes clippy::derive_partial_eq_without_eq Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Refactor for readabilityMatthias Beyer
This patch refactors `check_another_instance_is_not_running()` for readability. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy: Remove needless return keywordMatthias Beyer
This fixes clippy::needless_return Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18make log directory configurable during initinitard
* the log directory configured in tedge config set logs.path is now used in --init Signed-off-by: initard <alex.solomes@softwareag.com>
2022-08-18Fix clippy in tedge_test_utils: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in thin_edge_json: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_mapper: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_agent: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in plugin_sm: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_translator: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_smartrest: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in c8y_api: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_utils: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in tedge_config: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in mqtt_channel: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in json_writer: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in flockfile: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in download: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Fix clippy in certificate: Remove let-unit-valueMatthias Beyer
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-18Restart of tedge-mapper-c8y is recreating deleted child devices (#1344)PradeepKiruvale
* Create external device only after alarm message sync Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-17Merge pull request #1330 from Bravo555/add-homepage-fieldDidier Wenzek
Yocto: Add homepage and repository fields to manifests of tedge and tedge_mapper crates
2022-08-16Merge pull request #1318 from matthiasbeyer/tedge-watchdog/systemd-only-on-linuxDidier Wenzek
Make systemd watchdog backend only build for linux
2022-08-16Make systemd watchdog backend only build for linuxMatthias Beyer
This patch ensures that the systemd watchdog backend is only used when building for linux. Right now, there is no other watchdog implementation. Thus, there is a "dummy_watchdog" module introduced that does nothing. This might be removed and replaced by something specific, if we ever build thin-edge.io for other targets, such as Apple, FreeBSD or others. Suggested-by: Albin Suresh <albin.suresh@softwareag.com> Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-11Add homepage and repository fields to manifests of tedge and tedge_mapper cratesMarcel Guzik
This change is necessary to generate bitbake recipes from tedge and tedge_mapper crates as part of #1329. Currently, we're trying to set up a minimal working example, and as such only these crates required this change. Signed-off-by: Marcel Guzik <marcel.guzik2@inetum.com>
2022-08-08tedge_mapper: Remove let _ =Matthias Beyer
These were introduced in 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") from pull request #1314 where my review comments were not fixed, so I'm gonna fix these here. Fixes: 098cd1bc0b8a5fb46d114733c5f5c632fc25587e ("Alarms for child devices (#1314)") Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08c8y_translator: Remove unnecessary let _ =Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08tedge: Remove unnecessary let _ =Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-08Alarms for child devices (#1314)PradeepKiruvale
With this feature the child device now able to send an alarm message to Cumulocity cloud. The child device must use the mqtt topic to publish the alarm message, then thin-edge device will pickup this alarm message and forward it to the cumulocity cloud. Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-08-06Do not necessarily pass &str anymore to fs helper fnsMatthias Beyer
This patch changs the calls of the fs helper functions where the interface of the functions was changed from taking `&str` as path argument to `impl AsRef<Path>`. Because of this, it is not necessary anymore that `&str` is passed, but `Path`es can be passed or, as in most cases, the ad-hoc created `String` objects can be passed by value instead of by reference, resulting in less mental load on the calling side. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-06Relax interface of file helper functionsMatthias Beyer
This patch relaxes the interface of the file helper functions by allowing `impl AsRef<Path>` for creating file/directory pathes. This results in a less narrow interface, as now the functions can be used with Path, String, &str... Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-06Fix (style): Replace match with function chainingMatthias Beyer
This patch replaces the match statements with functionally equivalent function chaining, that result in less lines of code. This is merely a style change. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-03tedge_utils: Move "maplit" to dev-dependenciesMatthias Beyer
Apparently, we need this in the dev-dependencies, not in the normal dependencies. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-03tedge_utils: Remove unused dependency "anyhow"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
2022-08-03mqtt_channel: Remove unused dependency "tedge_utils"Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>