From 6aeb5e1c2a3f8c3a0ac47355939ddaebbe1bcf57 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Sun, 11 May 2025 01:13:19 +0200 Subject: [PATCH] POC in Rust lower binary size --- POC_in_rust/Cargo.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/POC_in_rust/Cargo.toml b/POC_in_rust/Cargo.toml index 8e7812f..ed58510 100644 --- a/POC_in_rust/Cargo.toml +++ b/POC_in_rust/Cargo.toml @@ -3,17 +3,19 @@ name = "POC_in_rust" version = "0.1.0" edition = "2024" +[profile.release] +opt-level="s" +lto="fat" + [dependencies] async-tungstenite = {version="0.29.1", features=["tokio-rustls-webpki-roots"]} chrono = "0.4.41" env_logger = "0.11.8" -futures-lite = "2.6.0" -iced = {"git"= "https://github.com/iced-rs/iced.git", "features"=["tokio", "auto-detect-theme", "fira-sans", "tiny-skia", "wgpu", "sipper"]} +iced = {"git"= "https://github.com/iced-rs/iced.git", "features"=["tokio", "auto-detect-theme", "fira-sans", "tiny-skia", "sipper"]} lazy_static = "1.5.0" nusb = "0.1.13" -reqwest = { version = "0.12.15", features = ["json", "multipart", "http2", "cookies"] } -reqwest-middleware = "0.4.2" -rustls = {version = "0.23.27", features = ["std", "prefer-post-quantum", "tls12", "logging", "ring"]} +reqwest = { version = "0.12.15", features = ["json"] } +rustls = {version = "0.23.27", features = ["std", "prefer-post-quantum", "tls12", "logging"]} serde = {version = "1.0.219", features=["derive"]} serde_json = "1.0.140" tokio = {version = "1.45.0", features=["time", "fs", "io-util", "macros"]}