From fc12cd0bfad207cef069add75ca6ea6664792e9c Mon Sep 17 00:00:00 2001 From: namilsk Date: Wed, 11 Feb 2026 13:46:58 +0300 Subject: Switched crate-name for crates.io publish and added optimisations to `Cargo.toml` --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 27 +++++++++++++++++++-------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77f2306..e5bd94d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,21 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "WeatherFetch" +version = "0.0.2" +dependencies = [ + "clap 4.5.51", + "clap_derive", + "reqwest", + "serde", + "serde_json", + "serde_yml", + "termimage", + "tokio", + "toml", +] + [[package]] name = "addr2line" version = "0.24.2" @@ -2232,21 +2247,6 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" -[[package]] -name = "wfetch" -version = "0.0.2" -dependencies = [ - "clap 4.5.51", - "clap_derive", - "reqwest", - "serde", - "serde_json", - "serde_yml", - "termimage", - "tokio", - "toml", -] - [[package]] name = "winapi" version = "0.3.9" diff --git a/Cargo.toml b/Cargo.toml index 0863bc0..f0cde32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,12 @@ [package] -name = "wfetch" -version = "0.0.2" -edition = "2021" -categories = ["command-line-utilities"] -authors = ["namilsk "] -license = "MIT" +name = "WeatherFetch" +version = "0.0.2" +edition = "2021" +categories = ["command-line-utilities"] +authors = ["namilsk "] +license = "MIT" +description = "Fastfetch but for weather" +repository = "https://github.com/Nam4ik/WeatherFetch" # "https://git.namilsk.tech/wfetch.git" [dependencies] serde = { version = "1.0", features = ["derive"] } @@ -14,5 +16,14 @@ clap = { version = "4.4", features = ["derive"] } reqwest = { version = "0.11", features = ["json"] } tokio = { version = "1.0", features = ["full"] } clap_derive = "4.5.49" -serde_yml = "0.0.12" -termimage = "1.2.2" +serde_yml = "0.0.12" +termimage = "1.2.2" + +[[bin]] +name = "wfetch" +path = "src/main.rs" + +[profile.release] +strip = true +lto = "fat" +codegen-units = 1 -- cgit v1.2.3