diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7774f92..f6fca50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,14 +24,14 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: 1.62.0 + toolchain: 1.70.0 override: true target: ${{ matrix.job.target }} components: rust-src - uses: actions-rs/cargo@v1 with: use-cross: true - args: --release --target=${{ matrix.job.target }} --locked + args: --profile minsize --target=${{ matrix.job.target }} --locked command: build - name: Rename result run: | diff --git a/Cargo.lock b/Cargo.lock index 646a799..84b6157 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,7 +292,7 @@ checksum = "b64f40e5e03e0d54f03845c8197d0291253cdbedfb1cb46b13c2c117554a9f4c" [[package]] name = "lls" -version = "0.1.0" +version = "0.2.0" dependencies = [ "ansi_term", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 7837060..ec407ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lls" description = "list listening sockets" -version = "0.1.0" +version = "0.2.0" edition = "2021" authors = ["Julius Michaelis "] repository = "https://github.com/jcaesar/lls" @@ -26,3 +26,10 @@ users = "0.11.0" [profile.release] lto = "thin" strip = "debuginfo" + +[profile.minsize] +inherits = "release" +lto = "fat" +codegen-units = 1 +opt-level = "z" +strip = true diff --git a/README.md b/README.md index 4ed759b..3cdf291 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ avahi-daemon (pid 655 user avahi) * The listening address isn't helpful with v6 addresses. `lls` aims to do better: - * No command line parameters + * No command line parameters necessary * Compact output (but hopefully not an eyesore) * Grouping sockets by process and port * Conservative command line parsing to show script names for interpreters