Testing a small http-client on Linux using no_std & embedded reqwless.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Tune release profile for binary size

rektide aaa31d39 9f0eb602

+23
+4
Cargo.toml
··· 29 29 30 30 [profile.release] 31 31 panic = "abort" 32 + strip = true 33 + opt-level = "s" 34 + lto = true 35 + codegen-units = 1
+19
README.md
··· 56 56 ``` 57 57 58 58 The `xtask` `validate` subcommand group is self-documented in CLI help and can be explored as needed. 59 + 60 + ## Release size profile 61 + 62 + Release builds are tuned for binary size in `Cargo.toml`: 63 + 64 + - `panic = "abort"` 65 + - `strip = true` 66 + - `opt-level = "s"` 67 + - `lto = true` 68 + - `codegen-units = 1` 69 + 70 + Measured on this repository with `cargo build --release`: 71 + 72 + - HTTP profile (`--no-default-features --features backend-posix-libc,dns-getaddrinfo`) 73 + - Before: `84800` bytes 74 + - After: `43440` bytes 75 + - HTTPS profile (`--no-default-features --features backend-posix-libc,dns-getaddrinfo,https`) 76 + - Before: `631408` bytes 77 + - After: `296824` bytes