diff --git a/Cargo.lock b/Cargo.lock index 0c21faf..6973901 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,11 +44,12 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "confy" version = "0.4.0" -source = "git+https://github.com/rust-cli/confy#13a97fc205dbc06f44e0ba79d03ab609639e876b" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2913470204e9e8498a0f31f17f90a0de801ae92c8c5ac18c49af4819e6786697" dependencies = [ "directories", "serde", - "serde_yaml", + "toml", ] [[package]] @@ -90,12 +91,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "dtoa" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4358a9e11b9a09cf52383b451b49a169e8d797b68aa02301ff586d70d9661ea3" - [[package]] name = "getrandom" version = "0.1.14" @@ -119,12 +114,6 @@ version = "0.2.67" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb147597cdf94ed43ab7a9038716637d2d1bf2bc571da995d0028dec06bd3018" -[[package]] -name = "linked-hash-map" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83" - [[package]] name = "proc-macro2" version = "1.0.9" @@ -202,18 +191,6 @@ dependencies = [ "syn", ] -[[package]] -name = "serde_yaml" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "691b17f19fc1ec9d94ec0b5864859290dff279dbd7b03f017afda54eb36c3c35" -dependencies = [ - "dtoa", - "linked-hash-map", - "serde", - "yaml-rust", -] - [[package]] name = "syn" version = "1.0.16" @@ -234,6 +211,15 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a" +dependencies = [ + "serde", +] + [[package]] name = "unicode-xid" version = "0.2.0" @@ -267,12 +253,3 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "yaml-rust" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c4434d" -dependencies = [ - "linked-hash-map", -] diff --git a/Cargo.toml b/Cargo.toml index 102a05c..d950a22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,14 +4,15 @@ version = "0.1.0" authors = ["Zykino "] description = "Control your Raspberry Pi's temperature with a fan." license = "GPL-3.0-or-later" -keywords = ["temperature", "fan", "raspberry pi"] +keywords = ["temperature", "fan", "raspberry"] categories = ["command-line-utilities"] readme = "README.md" +repository = "https://zykino.net/gitea/zykino/Tempi" +documentation = "https://docs.rs/tempi" edition = "2018" [dependencies] #"0.5.0"? # Will need something more than this version to have yaml support -confy = { git = "https://github.com/rust-cli/confy", features = ["yaml_conf"], default-features = false } +confy = "0.4.0" rppal = "0.11.3" serde = { version = "1.0.104", features = ["derive"] } - diff --git a/README.md b/README.md index 5cb0c34..ec7da17 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,11 @@ Control your Raspberry Pi's temperature with a fan. This program control a GPIO pin depending on the temperature of your CPU. It is thought of as a way to regulate the CPU's temperature by connecting a fan to the GPIO and letting the program check the temperature at a regular interval in the background. ## Installation +### From Crates.io +```sh +cargo install tempi +``` + ### From source First you need to [install Rust]. Then you can do the Rust's standard installation procedure: ```sh @@ -22,7 +27,8 @@ scp target/arm-unknown-linux-gnueabihf/release/tempi pi@: