From 077ff07d6d84d6dd8410bfb0a5610a0731395e85 Mon Sep 17 00:00:00 2001 From: Frago9876543210 Date: Thu, 13 Jan 2022 20:55:11 +0300 Subject: [PATCH 1/2] update README for rust 1.58 changes --- README.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d5ef5e6..b84e0f6 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,6 @@ $ cargo build --release ![OS: *nix](https://img.shields.io/badge/OS-*nix-brightgreen.svg) -> Note: Looking for a tool to help automated `strip`ing? Check out -[`cargo-strip`](https://github.com/guedou/cargo-strip) or follow -[Cargo #3483](https://github.com/rust-lang/cargo/issues/3483). - -> See also: [`sstrip`](https://github.com/BR903/ELFkickers) a small utility that removes a few -bytes from an executable that strip leaves behind. `sstrip` should be run after `strip`. - By default on Linux and macOS, symbol information is included in the compiled `.elf` file. This information is not needed to properly execute the binary. To remove this, run [`strip`](https://linux.die.net/man/1/strip) on the `.elf` file: @@ -46,16 +39,13 @@ To remove this, run [`strip`](https://linux.die.net/man/1/strip) on the `.elf` f $ strip target/release/min-sized-rust ``` -Available starting `1.45.0-nightly (2020-05-28)`, -[Cargo has `strip` functionality built in](https://doc.rust-lang.org/cargo/reference/unstable.html#profile-strip-option): +[Cargo has `strip` functionality built in](https://doc.rust-lang.org/cargo/reference/profiles.html#strip): -![Minimum Rust: Nightly](https://img.shields.io/badge/Minimum%20Rust%20Version-nightly%201.45.0-orange.svg) +![Minimum Rust: 1.58](https://img.shields.io/badge/Minimum%20Rust%20Version-1.58-brightgreen.svg) Modify `Cargo.toml` in this way: ```toml -cargo-features = ["strip"] - [profile.release] strip = true # Automatically strip symbols from the binary. ``` From 5eea77c73a56df3dc538ee18cb8456601d210982 Mon Sep 17 00:00:00 2001 From: Frago9876543210 Date: Tue, 18 Jan 2022 23:38:57 +0300 Subject: [PATCH 2/2] change rust version to 1.59 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b84e0f6..c9aa206 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ $ strip target/release/min-sized-rust [Cargo has `strip` functionality built in](https://doc.rust-lang.org/cargo/reference/profiles.html#strip): -![Minimum Rust: 1.58](https://img.shields.io/badge/Minimum%20Rust%20Version-1.58-brightgreen.svg) +![Minimum Rust: 1.59](https://img.shields.io/badge/Minimum%20Rust%20Version-1.59-brightgreen.svg) Modify `Cargo.toml` in this way: