The desktop crate gains the OS services the mobile hosts get from the
platform:
- beginKeepAwake/endKeepAwake: IOKit PreventUserIdleSystemSleep on macOS,
SetThreadExecutionState on a holder thread on Windows, a systemd-inhibit
idle:sleep lock on Linux.
- discordPresence* methods: Rich Presence over the Discord client's local
RPC IPC, reporting discordPresenceStatus inbound calls.
- watchLibraryFolders/unwatchLibraryFolders: notify watches library roots
and reports throttled libraryFolderChanged inbound calls.
- A panic hook appends to <app support>/logs/rust-panic.log.
Add portable OpenOptions and DirBuilder helpers in mornye-core. Unix keeps
the exact O_NOFOLLOW, O_NONBLOCK and mode bits; Windows opens a final
link with FILE_FLAG_OPEN_REPARSE_POINT so the existing regular-file checks
reject it, and inherits directory ACLs instead of modes.
Use them in the lyrics cache, extension manager, repository cache and
download stores, make rustix a Unix-only dependency, and enable rquickjs
bindgen only off Windows: rquickjs-sys ships bindings for x86_64 and
aarch64 Windows MSVC, so Windows builds need no libclang.
Add crates/desktop (mornye-desktop), a cdylib for dart:ffi that implements
the desktop FFI contract: mornye_init, mornye_call, mornye_cancel,
mornye_subscribe, mornye_unsubscribe and mornye_free.
- Port the mobile host dispatcher once into a single method table: every
CoreBackend.swift application method plus the Rust-backed AppDelegate
osMethods, with plain filesystem paths. Other methods answer
unimplemented.
- Run calls on an elastic worker pool; restore the $bytes_key binary
argument; acquire native data job leases synchronously.
- Push download progress (kind 10), library scan progress (kind 11),
inbound calls (kind 12) and log records (kind 13).
- Drain the backend FFmpeg command queue by spawning the configured
ffmpeg executable, keeping staging then rename and cancellation.
- Re-export the mobile types the desktop crate dispatches to.
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.
Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
Six writers repeated the same publication sequence: create a temporary file
in the target directory, write it, sync_all, optionally run a cancellation
check, then NamedTempFile::persist over the target. `core::fs::write_atomic`
runs exactly that order and optionally fsyncs the directory afterwards
(best effort, as extension storage did).
Each site keeps its temporary-file prefix (`.spotiflac-` for extension
storage, `.spotiflac-m3u-` for M3U export, tempfile's `.tmp` default,
exposed as `DEFAULT_TEMP_PREFIX`, for the registry cache, lyrics cache and
both network cover writers), its check placement between fsync and rename,
and its error text: `WriteAtomicError` displays a persist failure with
tempfile's own message, and converts to the underlying io::Error where the
site previously used `PersistError::error`.
Not converted, because their publication differs: playlist staging and
collection snapshots use persist_noclobber (collections also skips fsync),
the backup restore stages into a temporary directory, and the extension
package download maps each step to its own error context.
spotiflac-core now depends on the workspace `tempfile` already used by the
other crates; the lockfile only gains that edge.
Remove tokio from spotiflac-extensions and thiserror and the direct hyper
entry from spotiflac-network (hyper stays resolved through hyper-util).
Move roxmltree, rusqlite and libc into workspace.dependencies. libc already
resolves to 0.2.190, so the workspace pin uses that exact version. No
resolved version or enabled feature changes.
Add two keyless providers that serve Apple Music TTML: lrc.red, matched by
recording, and BetterLyrics, which answers songs it has already cached.
TTML is read into the first-party Apple line structure, so vocal sides,
backing groups, word timing, translations and romanization share one eLRC
formatter. The XML depth guard moves to core so both readers use it.
SpotiFLAC-Mobile Lyrics becomes its own provider instead of a fallback
inside Apple Music. New defaults are Apple Music, lrc.red, SpotiFLAC-Mobile
Lyrics, LyricsPlus and LRCLIB. Migration 13 moves untouched defaults to the
new list and keeps the former fallback right after Apple Music in custom
orders. Replace the dead LyricsPlus Workers mirror.
Introduce Android, iOS, and Dart worker dispatch with queued cancellation, binary inputs, and background JSON codecs. Move APK verification to streamed native SHA256 while retaining the isolated fallback.
Vendor the pinned Rustix package with an Android-only weak libc lookup so missing statx returns ENOSYS and uses the existing stat64 fallback. Add an isolated Android smoke test with a hidden symbol and a seccomp filter that kills raw statx probes.
Verified 177 workspace tests, host Clippy, and ARM64 Android sandbox smoke test. ARM32 cross-target Clippy passes with the existing needless_return warning in binary.rs exempted; physical Android 10 ARM32 validation remains required.
Introduce a per-file Hi-Res authenticity checker and optional auto re-download for flagged fake Hi-Res downloads. Adds Rust checker modules (fft, evidence, FLAC/WAV decoding, tests) and a mobile API (check_hires_authenticity). Wire platform bindings for Android/iOS and PlatformBridge. Add Dart HiResCheckService, UI HiResCheckCard, settings toggle (redownloadFakeHiRes) and integration in the download pipeline to quarantine and replace suspicious files with LOSSLESS when safe. Adds claxon FLAC dependency.
Replace the Go backend with the Rust workspace and route Android/iOS through
UniFFI bindings. Include the migrated extension runtime, network, providers,
media metadata, downloads and library operations, with version 5.0.0+147.
Remove Go sources, adapters, native build selection and CI dependencies.
Build Rust unconditionally and lock the iOS Rust pod using a relative path.
Retain legacy source and migration evidence in a local ignored archive.
Validation: Android Kotlin compile and 53 native tests; Swift Rust-branch
equivalence and syntax; CocoaPods install; workflow, shell, Ruby, plist and
diff checks. Reuse the preceding 100 Rust tests, fmt/Clippy and five-ABI
build checkpoint; no new APK or iOS application build for this cleanup.
Known follow-up: URL/URLSearchParams globals are missing from the Rust JS
runtime. A controlled extension replay confirms a URL-resolution regression;
this commit does not fix that runtime gap.