- Add Docker-based build system for cross-compiling on Apple Silicon - Create Dockerfiles for Linux x86_64 and ARM64, Windows x86_64 - Add build-all.sh script for automated multi-platform builds - Configure cargo-deb and cargo-generate-rpm for Linux packaging - Update README with cross-compilation instructions Supported outputs: - Linux x86_64: .deb, .rpm, .tar.gz - Windows x86_64: .zip Note: Linux ARM64 disabled due to upstream zune-jpeg NEON bug
58 lines
1.2 KiB
TOML
58 lines
1.2 KiB
TOML
[package]
|
|
name = "avif-maker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Convert images and videos to AVIF format with a native GUI"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
# GUI
|
|
eframe = "0.30"
|
|
rfd = "0.15"
|
|
egui_extras = { version = "0.30", features = ["image"] }
|
|
|
|
# AVIF encoding (links to libavif C library)
|
|
libavif = "0.14"
|
|
|
|
# Image decoding (pure Rust)
|
|
image = "0.25"
|
|
gif = "0.14"
|
|
|
|
# Video decoding (runs ffmpeg as subprocess - no FFI issues)
|
|
ffmpeg-sidecar = "2"
|
|
|
|
# Async & utilities
|
|
tokio = { version = "1", features = ["rt-multi-thread", "sync", "macros"] }
|
|
directories = "5"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# Error handling
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
|
|
# Utilities
|
|
open = "5"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
|
|
[package.metadata.deb]
|
|
maintainer = "cottongin"
|
|
copyright = "2026"
|
|
depends = "ffmpeg"
|
|
section = "graphics"
|
|
# Note: cargo-deb auto-detects binary location when --target is specified
|
|
|
|
[package.metadata.generate-rpm]
|
|
assets = [
|
|
{ source = "target/x86_64-unknown-linux-gnu/release/avif-maker", dest = "/usr/bin/avif-maker", mode = "755" }
|
|
]
|
|
[package.metadata.generate-rpm.requires]
|
|
ffmpeg = "*"
|