Skip to content

dscan v0.8.0

Choose a tag to compare

@AhooraZen AhooraZen released this 08 Oct 15:18
· 7 commits to main since this release

dscan v0.8.0

Highlights

  • Desktop app migrated to Compose Multiplatform: Replaced the GPUI desktop interface with a unified Kotlin Compose UI backed by Skia and Rust JNI. The desktop and Android applications now share 100% of their UI components, layouts, and theme definitions.
  • Build speed: Nuked 150+ heavy C and graphics build dependencies from the Rust workspace. cargo test --workspace now finishes in 0.06 seconds instead of 90 seconds.
  • Zero-copy arena merge: Worker subtrees are grafted directly into the master DirArena, and recursive directory sizes are computed in a single reverse-array pass in under 5 milliseconds.
  • Container CPU quota scaling: dscan now reads Linux cgroup v1 and v2 bandwidth limits (/sys/fs/cgroup/cpu.max) to clamp worker threads to available vCPUs, eliminating CPU throttling on container platforms like Docker and Railway.
  • Multi-architecture ABI safety: Standardized Linux metadata retrieval on canonical 256-byte sys_statx structures, fixing block size accounting on ARM64 and Android.
  • Atomic work stealing: Upgraded Chase-Lev work-stealing queues to extract stolen batches in a single atomic compare-exchange, and replaced broadcast condvar wakeups with conditional single-worker notifications.

Changes

Core engine

  • Decomposed monolithic scanner.rs into buffer, linux, windows, rollup, and state submodules.
  • Replaced per-directory Vec<Vec<u8>> heap allocations with a reusable flat buffer (FlatSubdirBuf).
  • Replaced recursive PathBuf heap allocations during directory traversal with borrowed path slices.
  • Added cycle guards for Windows NTFS directory junctions and symlinks.

Desktop and Android

  • Implemented high-performance Skia Canvas cushion treemap with squarified layout, hover tooltips, click drilldown, and zoom breadcrumbs.
  • Added real-time search filtering (Ctrl+F) and native file manager reveal.
  • Added safe trash deletion with system path protection guards.
  • Updated Android build configuration with multi-ABI support (arm64-v8a, x86_64, armeabi-v7a) and R8 release minification.

Tooling and CI

  • Unified package metadata and dependency definitions across all workspace crates.
  • Added Gradle 8.10.2 wrapper and streamlined Android properties.
  • Automated multi-target CLI, desktop JAR, Android APK, and crates.io release publishing.