Skip to content

Clean and update dependencies #20

@qarmin

Description

@qarmin

With such dependencies, I was still able to compile app:

  • removed cargo-bundle dependency - I think that this is used as standalone app, not dependency (Cargo.lock decreased from 6800 lines to 5900)
  • removed unused dependencies
  • updated image crate to 0.24 - unified version with other dependency
  • rfd uses now xdg-portal, this allows to create almost fully static app on linux, without needing to used appimage - just compile app on old linux and you can add it to releases page

Before:
Image

After:
Image

there can be more removed/updated features, which may improve general performance/stability

[dependencies]
env_logger = "0.10"
log = "0.4.20"
tokio = { version = "1.32", features = ["rt", "sync", "macros", "time", "io-util", "fs"] }
rfd = {  version = "0.12", default-features = false, features = ["xdg-portal"] }
num-traits = "0.2"
alphanumeric-sort = "1.5.3"
image = { version = "0.24", default-features = false, features = ["jpeg", "png"] }
futures = "0.3"
once_cell = "1.16"
backtrace = "0.3"
dirs = "5.0"
webbrowser = "0.7"
bytemuck = { version = "1.0", features = ["derive"] }
wgpu = { version = "23.0", default-features = false }
chrono = { version = "0.4", features = ["clock"] }

[target.'cfg(not(target_os = "linux"))'.dependencies]
iced_custom = { package = "iced", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = [
    "image", "tokio", "svg", "lazy", "wgpu"
] }
iced_winit = { package = "iced_winit", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_wgpu = { package = "iced_wgpu", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_widget = { package = "iced_widget", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = ["wgpu"] }
iced_core = { package = "iced_core", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_runtime = { package = "iced_runtime", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_futures = { package = "iced_futures", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = ["tokio"] }
iced_graphics = { git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_aw = { package = "iced_aw", git = "https://github.com/ggand0/iced_aw.git", branch = "custom-iced-0.11.0", features = [
    "menu", "quad"
] }


[target.'cfg(target_os = "linux")'.dependencies]
# Debug setup with local iced
#iced_custom = { package = "iced", path = "../iced", features=["image", "tokio", "svg", "lazy", "wgpu", "advanced"] }
#iced_winit = { path = "../iced/winit" }
#iced_wgpu = { path = "../iced/wgpu", features = ["image"]}
#iced_widget = { path = "../iced/widget", features = ["wgpu", "image"] }
#iced_core = { path = "../iced/core" }
#iced_runtime = { path = "../iced/runtime" }
#iced_futures = { path = "../iced/futures", features = ["tokio"] }
#iced_aw = { path = "../iced_aw", features = ["menu", "quad"] }

# Use custom iced
iced_custom = { package = "iced", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = [
    "image", "tokio", "svg", "lazy", "wgpu"
] }
iced_winit = { package = "iced_winit", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_wgpu = { package = "iced_wgpu", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_widget = { package = "iced_widget", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = ["wgpu"] }
iced_core = { package = "iced_core", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_runtime = { package = "iced_runtime", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_futures = { package = "iced_futures", git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1", features = ["tokio"] }
iced_graphics = { git = "https://github.com/ggand0/iced.git", branch = "custom-winit-0.13.1" }
iced_aw = { package = "iced_aw", git = "https://github.com/ggand0/iced_aw.git", branch = "custom-iced-0.11.0", features = [
    "menu", "quad"
] }

[build-dependencies]
winres = "0.1.12"

[package.metadata.winres]
OriginalFilename = "view_skater.exe"
FileDescription = "A fast image viewer for browsing large collections of images."

[package.metadata.bundle]
name = "ViewSkater"
identifier = "com.ggando.viewskater"
icon = ["assets/icon_16.png", "assets/icon_32.png", "assets/icon_48.png", "assets/icon_128.png", "assets/icon_256.png"]
short_description = "A fast image viewer for browsing large collections of images."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions