#applications #productivity #cross-platform #window #blocking #system #block

yanked desktop-app-blocker-api

A cross-platform Rust library for creating application blockers. Useful for productivity apps

4 releases

0.1.3 Oct 5, 2024
0.1.2 Oct 4, 2024
0.1.1 Oct 4, 2024
0.1.0 Sep 23, 2024

#12 in #blocking

Download history 151/week @ 2024-09-21 140/week @ 2024-09-28 230/week @ 2024-10-05 35/week @ 2024-10-12 2/week @ 2024-10-19

395 downloads per month

Apache-2.0

24KB
442 lines

Crates.io

Desktop App Blocker API

Desktop App Blocker API is a utility Rust crate for performing cross-platform "app blocking". Useful for productivity applications or parenting software.

This is a project I have built for my personal use. Therefore, I am being slightly selfish and putting more emphasis on the features that I need, even if that meant ignoring the greater good. 🍕

Features

  • Support for Windows and macOS
  • Detect/Block Task Manager or Activity Monitor
  • Detect/Block terminal applications
  • Detect/Block system settings
  • Detect/Block installers (Windows)
  • Block by window names
  • Block executables (Windows)
  • Block by bundle IDs (macOS)
  • Structs include support for serde, bincode and specta

Usage

desktop-app-blocker-api = "0.1.0"

Features

  • serde: Includes serde Serialize and Deserialize derives for types
  • specta: Includes Type derives for types
  • bincode: Includes Encode and Decode derives for types

Dependencies

~0–38MB
~582K SLoC