1
0
Fork 0
mirror of synced 2024-04-28 01:22:53 +12:00

Update yanked png, change to thin lto, fix cli commands

This commit is contained in:
Rafał Mikrut 2024-02-20 23:15:45 +01:00
parent c58569eaa0
commit 4dbc26e18c
9 changed files with 167 additions and 274 deletions

View file

@ -25,7 +25,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release

View file

@ -33,7 +33,7 @@ jobs:
cd ..
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release

View file

@ -22,7 +22,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release Krokiet
@ -52,7 +52,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release Krokiet heif
@ -82,7 +82,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release Heif Libraw
@ -124,7 +124,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release

View file

@ -31,7 +31,7 @@ jobs:
run: rustup default ${{ matrix.toolchain }}
- name: Enable LTO
run: sed -i '' 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
if: ${{ (matrix.type == 'release') }}
- name: Build Release

View file

@ -31,7 +31,7 @@ jobs:
rustup target add x86_64-pc-windows-gnu
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
- name: Compile Krokiet
run: cargo build --release --target x86_64-pc-windows-gnu --bin krokiet
@ -79,7 +79,7 @@ jobs:
run: rustup default stable-x86_64-pc-windows-gnu
- name: Enable LTO
run: sed -i 's/#lto = "fat"/lto = "fat"/g' Cargo.toml
run: sed -i 's/#lto = "thin"/lto = "thin"/g' Cargo.toml
- name: Compile Krokiet
run: cargo build --release --bin krokiet

413
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -19,7 +19,7 @@ panic = "unwind"
# LTO setting is disabled by default, because release mode is usually needed to develop app and compilation with LTO would take a lot of time
# But it is used to optimize release builds(and probably also in CI, where time is not so important as in local development)
#lto = "fat"
#lto = "thin"
# Optimize all dependencies except application/workspaces, even in debug builds
[profile.dev.package."*"]

View file

@ -428,7 +428,7 @@ pub struct CommonCliItems {
long_help = "List of checked files with provided extension(s). There are also helpful macros which allow to easy use a typical extensions like:\nIMAGE(\"jpg,kra,gif,png,bmp,tiff,hdr,svg\"),\nTEXT(\"txt,doc,docx,odt,rtf\"),\nVIDEO(\"mp4,flv,mkv,webm,vob,ogv,gifv,avi,mov,wmv,mpg,m4v,m4p,mpeg,3gp\") or\nMUSIC(\"mp3,flac,ogg,tta,wma,webm\")\n "
)]
pub allowed_extensions: Vec<String>,
#[clap(short = 'E', long, help = "Excluded file extension(s)", long_help = "List of extensions, that will be removed from search.\n ")]
#[clap(short = 'L', long, help = "Excluded file extension(s)", long_help = "List of extensions, that will be removed from search.\n ")]
pub excluded_extensions: Vec<String>,
#[clap(flatten)]
pub file_to_save: FileToSave,

View file

@ -17,7 +17,7 @@ chrono = "0.4.34"
open = "5.0"
crossbeam-channel = "0.5"
handsome_logger = "0.8"
rfd = { version = "0.13", default-features = false, features = ["xdg-portal", "async-std"] }
rfd = { version = "0.14", default-features = false, features = ["xdg-portal", "async-std"] }
home = "0.5"
log = "0.4.20"
serde = "1.0"
@ -39,7 +39,7 @@ once_cell = "1.19"
# Try to use only needed features from https://github.com/slint-ui/slint/blob/master/api/rs/slint/Cargo.toml#L23-L31
#slint = { path = "/home/rafal/test/slint/api/rs/slint/", default-features = false, features = ["std",
#slint = { git = "https://github.com/slint-ui/slint.git", default-features = false, features = [
slint = { version = "1.4", default-features = false, features = [
slint = { version = "1.4", default-features = false, features = [
"std",
"backend-winit",
"compat-1-2"
@ -47,7 +47,7 @@ once_cell = "1.19"
[build-dependencies]
#slint-build = { path = "/home/rafal/test/slint/api/rs/build/"}
#slint-build = { git = "https://github.com/slint-ui/slint.git" }
slint-build = "1.4"
slint-build = "1.4"
[features]
default = ["winit_femtovg", "winit_software"]