Skip to main content

Crate toolblox_lib

Crate toolblox_lib 

Source
Expand description

Toolblox native host.

Toolblox is a Tauri 2 desktop app for managing and launching Roblox accounts. This crate owns everything that touches secrets, the network, the file system, or other processes. The React interface receives display data and opaque IDs only.

Β§Modules

  • app_commands: the Tauri commands the interface calls, and the shared Runtime.
  • startup and update: the fail-closed update gate that runs before the app opens.
  • storage and models: validated, atomic JSON persistence for settings and accounts.
  • credentials: Roblox sessions in Windows Credential Manager or the macOS Keychain.
  • login: the isolated Roblox sign-in window.
  • roblox: Roblox web APIs for profiles, presence, games, and join tickets.
  • auto_rejoin: presence monitoring for drop notifications and auto-rejoin.
  • multi_instance: running several Roblox clients on Windows and macOS.
  • roblox_process: running Roblox client processes.
  • lifecycle: window, tray, and single-instance behavior.
  • logs: the rotating, redacted log file.
  • widgets, widget_protocol, widget_ipc, and widget_process: signed widget packages, their assets, permission-checked messages, and sidecar processes.

Β§Data

Data lives in the Toolblox data folder: %LOCALAPPDATA%\Toolblox on Windows and ~/Library/Application Support/Toolblox on macOS.

ModulesΒ§

app_commands πŸ”’
Tauri command boundary and frontend-safe application state.
auto_rejoin πŸ”’
Conservative presence monitor for opt-in auto-rejoin and drop notifications.
credentials πŸ”’
OS-backed Roblox session storage. Secrets stay inside the Rust host.
lifecycle πŸ”’
Window, tray, single-instance, and autostart lifecycle helpers.
login πŸ”’
Isolated Roblox login webview and secret handoff.
logs πŸ”’
Rotating, redacted log file shared by the host, the interface, and widgets.
models πŸ”’
Typed persisted data and frontend-safe account views.
multi_instance πŸ”’
Running several Roblox clients at once.
roblox πŸ”’
Roblox HTTP flows and strict launch-URI construction.
roblox_process πŸ”’
Running Roblox clients.
startup πŸ”’
Fail-closed release update gate shown before the main application state loads.
storage πŸ”’
Validated, atomic JSON persistence serialized by one application state.
theme πŸ”’
The custom theme, which is custom CSS. It’s applied after the theme tokens in src/theme.css, so a theme changes colors and radii by setting those tokens.
update πŸ”’
Fail-closed startup update decisions.
widget_ipc πŸ”’
Versioned, permission-checked messages exchanged with isolated widget frames.
widget_process πŸ”’
Lifecycle ownership for declared widget sidecar processes.
widget_protocol πŸ”’
Read-only custom protocol for installed widget web assets.
widgets πŸ”’
Permissioned widget manifests, signed catalogue data, and safe package installation.

ConstantsΒ§

SAFE_MODE_MARKER πŸ”’
Name of the marker file that requests safe mode for the next launch.

FunctionsΒ§

move_beta_data πŸ”’
Moves data that 0.2.0 beta saved in a v2 subfolder into the data folder.
run
Builds and runs the Tauri application.
set_safe_mode_marker
Records whether the next launch skips widgets. Failures only lose the one-time request.
take_safe_mode πŸ”’
Safe mode applies for this launch when requested with --safe-mode or by the marker, which is consumed so the following launch loads widgets again.
toolblox_data_root πŸ”’
Returns the Toolblox data folder.